props.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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. fromRight: {
  31. type: Boolean,
  32. default: () => defProps.lineProgress.fromRight
  33. }
  34. }
  35. })