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.

31 lines
994 B

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. length: {
  7. type: [String, Number],
  8. default: () => defProps.swiperIndicator.length
  9. },
  10. // 当前处于活动状态的轮播的索引
  11. current: {
  12. type: [String, Number],
  13. default: () => defProps.swiperIndicator.current
  14. },
  15. // 指示器非激活颜色
  16. indicatorActiveColor: {
  17. type: String,
  18. default: () => defProps.swiperIndicator.indicatorActiveColor
  19. },
  20. // 指示器的激活颜色
  21. indicatorInactiveColor: {
  22. type: String,
  23. default: () => defProps.swiperIndicator.indicatorInactiveColor
  24. },
  25. // 指示器模式,line-线型,dot-点型
  26. indicatorMode: {
  27. type: String,
  28. default: () => defProps.swiperIndicator.indicatorMode
  29. }
  30. }
  31. })