cl-list.vue 627 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <view class="cl-list">
  3. <slot></slot>
  4. </view>
  5. </template>
  6. <script>
  7. /**
  8. * list 列表
  9. * @description 列表
  10. * @tutorial https://docs.cool-js.com/uni/components/layout/list.html
  11. * @property {String} justify 水平布局方式
  12. * @property {Boolean} disabled 是否禁用
  13. * @property {Boolean} border 是否带有下边框,默认true
  14. * @example 见教程
  15. */
  16. export default {
  17. name: "cl-list",
  18. componentName: "ClList",
  19. props: {
  20. // 水平布局方式
  21. justify: String,
  22. // 是否禁用
  23. disabled: Boolean,
  24. // 是否带有下边框
  25. border: {
  26. type: Boolean,
  27. default: true
  28. }
  29. }
  30. };
  31. </script>