props.js 889 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { defineProps } from '../../libs/util/props';
  2. export default defineProps('scrollList', {
  3. // 指示器的整体宽度
  4. indicatorWidth: {
  5. type: [String, Number],
  6. default: 50
  7. },
  8. // 滑块的宽度
  9. indicatorBarWidth: {
  10. type: [String, Number],
  11. default: 20
  12. },
  13. // 是否允许滚动
  14. scroll: {
  15. type: Boolean,
  16. default: true
  17. },
  18. // 是否显示面板指示器
  19. indicator: {
  20. type: Boolean,
  21. default: true
  22. },
  23. // 指示器非激活颜色
  24. indicatorColor: {
  25. type: String,
  26. default: '#f2f2f2'
  27. },
  28. // 指示器的激活颜色
  29. indicatorActiveColor: {
  30. type: String,
  31. default: '#3c9cff'
  32. },
  33. // 指示器样式,可通过bottom,left,right进行定位
  34. indicatorStyle: {
  35. type: [String, Object],
  36. default: ''
  37. }
  38. })