Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

35 строки
1.1 KiB

  1. import { defineMixin } from '../../libs/vue'
  2. import SwiperIndicatorDefaultProps from './swipterIndicator'
  3. import { registerComponentProps } from '../../libs/config/props.js'
  4. const defProps = registerComponentProps(SwiperIndicatorDefaultProps)
  5. export const props = defineMixin({
  6. props: {
  7. // 轮播的长度
  8. length: {
  9. type: [String, Number],
  10. default: () => defProps.swiperIndicator.length
  11. },
  12. // 当前处于活动状态的轮播的索引
  13. current: {
  14. type: [String, Number],
  15. default: () => defProps.swiperIndicator.current
  16. },
  17. // 指示器非激活颜色
  18. indicatorActiveColor: {
  19. type: String,
  20. default: () => defProps.swiperIndicator.indicatorActiveColor
  21. },
  22. // 指示器的激活颜色
  23. indicatorInactiveColor: {
  24. type: String,
  25. default: () => defProps.swiperIndicator.indicatorInactiveColor
  26. },
  27. // 指示器模式,line-线型,dot-点型
  28. indicatorMode: {
  29. type: String,
  30. default: () => defProps.swiperIndicator.indicatorMode
  31. }
  32. }
  33. })