props.js 670 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. export default {
  2. props: {
  3. // 排列方向
  4. direction: {
  5. type: String,
  6. default: 'row'
  7. },
  8. // 设置第几个步骤
  9. current: {
  10. type: [String, Number],
  11. default: 0
  12. },
  13. // 激活状态颜色
  14. activeColor: {
  15. type: String,
  16. default: '#3c9cff'
  17. },
  18. // 未激活状态颜色
  19. inactiveColor: {
  20. type: String,
  21. default: '#969799'
  22. },
  23. // 激活状态的图标
  24. activeIcon: {
  25. type: String,
  26. default: ''
  27. },
  28. // 未激活状态图标
  29. inactiveIcon: {
  30. type: String,
  31. default: ''
  32. },
  33. // 是否显示点类型
  34. dot: {
  35. type: Boolean,
  36. default: false
  37. },
  38. ...uni.$uv?.props?.steps
  39. }
  40. }