props.js 898 B

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