index.vue 959 B

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{padding:16px 16px 8px;padding:var(--cell-group-title-padding,16px 16px 8px);font-size:14px;font-size:var(--cell-group-title-font-size,14px);line-height:16px;line-height:var(--cell-group-title-line-height,16px);color:#969799;color:var(--cell-group-title-color,#969799)}
  25. </style>