You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2 KiB

4 months ago
  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. })