props.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import { defineMixin } from '../../libs/vue'
  2. import defProps from '../../libs/config/props.js'
  3. export const props = defineMixin({
  4. props: {
  5. // 指示器的整体宽度
  6. indicatorWidth: {
  7. type: [String, Number],
  8. default: () => defProps.scrollList.indicatorWidth
  9. },
  10. // 滑块的宽度
  11. indicatorBarWidth: {
  12. type: [String, Number],
  13. default: () => defProps.scrollList.indicatorBarWidth
  14. },
  15. // 是否显示面板指示器
  16. indicator: {
  17. type: Boolean,
  18. default: () => defProps.scrollList.indicator
  19. },
  20. // 指示器非激活颜色
  21. indicatorColor: {
  22. type: String,
  23. default: () => defProps.scrollList.indicatorColor
  24. },
  25. // 指示器的激活颜色
  26. indicatorActiveColor: {
  27. type: String,
  28. default: () => defProps.scrollList.indicatorActiveColor
  29. },
  30. // 指示器样式,可通过bottom,left,right进行定位
  31. indicatorStyle: {
  32. type: [String, Object],
  33. default: () => defProps.scrollList.indicatorStyle
  34. }
  35. }
  36. })