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.

41 lines
1.1 KiB

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. direction: {
  7. type: String,
  8. default: () => defProps.steps.direction
  9. },
  10. // 设置第几个步骤
  11. current: {
  12. type: [String, Number],
  13. default: () => defProps.steps.current
  14. },
  15. // 激活状态颜色
  16. activeColor: {
  17. type: String,
  18. default: () => defProps.steps.activeColor
  19. },
  20. // 未激活状态颜色
  21. inactiveColor: {
  22. type: String,
  23. default: () => defProps.steps.inactiveColor
  24. },
  25. // 激活状态的图标
  26. activeIcon: {
  27. type: String,
  28. default: () => defProps.steps.activeIcon
  29. },
  30. // 未激活状态图标
  31. inactiveIcon: {
  32. type: String,
  33. default: () => defProps.steps.inactiveIcon
  34. },
  35. // 是否显示点类型
  36. dot: {
  37. type: Boolean,
  38. default: () => defProps.steps.dot
  39. }
  40. }
  41. })