props.js 671 B

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