1234567891011121314151617181920212223242526272829303132333435 |
- <template>
- <uni-shadow-root class="vant-panel-index"><view class="van-panel van-hairline--top-bottom custom-class">
- <van-cell v-if="title || desc || status" :title="title" :label="desc" :value="status" custom-class="header-class" value-class="van-panel__header-value"></van-cell>
- <slot v-else name="header"></slot>
-
- <view class="van-panel__content">
- <slot></slot>
- </view>
-
- <view v-if="useFooterSlot" class="van-panel__footer van-hairline--top footer-class">
- <slot name="footer"></slot>
- </view>
- </view></uni-shadow-root>
- </template>
-
- <script>
- import VanCell from '../cell/index.vue'
- global['__wxVueOptions'] = {components:{'van-cell': VanCell}}
-
- global['__wxRoute'] = 'vant/panel/index'
- import { VantComponent } from '../common/component';
- VantComponent({
- classes: ['header-class', 'footer-class'],
- props: {
- desc: String,
- title: String,
- status: String,
- useFooterSlot: Boolean
- }
- });
- export default global['__wxComponents']['vant/panel/index']
- </script>
- <style platform="mp-weixin">
- @import '../common/index.css';.van-panel{background:#fff}.van-panel__header-value{color:#f44}.van-panel__footer{padding:10px 15px}
- </style>
|