index.vue 756B

123456789101112131415161718192021222324252627
  1. <template>
  2. <uni-shadow-root class="vant-cell-group-index"><view v-if="title" class="van-cell-group__title">
  3. {{ title }}
  4. </view>
  5. <view :class="'custom-class van-cell-group '+(border ? 'van-hairline--top-bottom' : '')">
  6. <slot></slot>
  7. </view></uni-shadow-root>
  8. </template>
  9. <script>
  10. global['__wxRoute'] = 'vant/cell-group/index'
  11. import { VantComponent } from '../common/component';
  12. VantComponent({
  13. props: {
  14. title: String,
  15. border: {
  16. type: Boolean,
  17. value: true
  18. }
  19. }
  20. });
  21. export default global['__wxComponents']['vant/cell-group/index']
  22. </script>
  23. <style platform="mp-weixin">
  24. @import '../common/index.css';.van-cell-group__title{font-size:14px;padding:15px 15px 5px;color:#999;line-height:16px}
  25. </style>