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.
 
 
 

35 lines
966 B

  1. import { defineMixin } from '../../libs/vue'
  2. import StepsItemDefaultProps from './stepsItem'
  3. import { registerComponentProps } from '../../libs/config/props.js'
  4. const defProps = registerComponentProps(StepsItemDefaultProps)
  5. export const props = defineMixin({
  6. props: {
  7. // 标题
  8. title: {
  9. type: [String, Number],
  10. default: () => defProps.stepsItem.title
  11. },
  12. // 描述文本
  13. desc: {
  14. type: [String, Number],
  15. default: () => defProps.stepsItem.desc
  16. },
  17. // 图标大小
  18. iconSize: {
  19. type: [String, Number],
  20. default: () => defProps.stepsItem.iconSize
  21. },
  22. // 当前步骤是否处于失败状态
  23. error: {
  24. type: Boolean,
  25. default: () => defProps.stepsItem.error
  26. },
  27. // 自定义样式
  28. itemStyle: {
  29. type: [Object],
  30. default: {}
  31. },
  32. }
  33. })