props.js 836 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { defineProps } from '../../libs/util/props';
  2. import theme from '../../libs/config/theme.js'
  3. export default defineProps('steps', {
  4. // 排列方向
  5. direction: {
  6. type: String,
  7. default: 'row'
  8. },
  9. // 设置第几个步骤
  10. current: {
  11. type: [String, Number],
  12. default: 0
  13. },
  14. // 激活状态颜色
  15. activeColor: {
  16. type: String,
  17. default: theme.primary
  18. },
  19. // 未激活状态颜色
  20. inactiveColor: {
  21. type: String,
  22. default: theme.lightColor
  23. },
  24. // 激活状态的图标
  25. activeIcon: {
  26. type: String,
  27. default: ''
  28. },
  29. // 未激活状态图标
  30. inactiveIcon: {
  31. type: String,
  32. default: ''
  33. },
  34. // 是否显示点类型
  35. dot: {
  36. type: Boolean,
  37. default: false
  38. }
  39. })