Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

45 wiersze
1.2 KiB

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