props.js 673 B

1234567891011121314151617181920212223242526272829303132
  1. export default {
  2. props: {
  3. // 激活部分的颜色
  4. activeColor: {
  5. type: String,
  6. default: uni.$u.props.lineProgress.activeColor
  7. },
  8. inactiveColor: {
  9. type: String,
  10. default: uni.$u.props.lineProgress.color
  11. },
  12. // 进度百分比,数值
  13. percentage: {
  14. type: [String, Number],
  15. default: uni.$u.props.lineProgress.inactiveColor
  16. },
  17. // 是否在进度条内部显示百分比的值
  18. showText: {
  19. type: Boolean,
  20. default: uni.$u.props.lineProgress.showText
  21. },
  22. text: {
  23. type: String,
  24. default: '已读'
  25. },
  26. // 进度条的高度,单位px
  27. height: {
  28. type: [String, Number],
  29. default: uni.$u.props.lineProgress.height
  30. }
  31. }
  32. }