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.

30 lines
925 B

2 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. activeColor: {
  7. type: String,
  8. default: () => defProps.lineProgress.activeColor
  9. },
  10. inactiveColor: {
  11. type: String,
  12. default: () => defProps.lineProgress.color
  13. },
  14. // 进度百分比,数值
  15. percentage: {
  16. type: [String, Number],
  17. default: () => defProps.lineProgress.inactiveColor
  18. },
  19. // 是否在进度条内部显示百分比的值
  20. showText: {
  21. type: Boolean,
  22. default: () => defProps.lineProgress.showText
  23. },
  24. // 进度条的高度,单位px
  25. height: {
  26. type: [String, Number],
  27. default: () => defProps.lineProgress.height
  28. }
  29. }
  30. })