component.scheme.js 715 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. export const propsScheme = {
  2. modelValue: {
  3. type: Number,
  4. intro: '值'
  5. },
  6. startVal: {
  7. type: Number,
  8. default: 0,
  9. intro: '起始值'
  10. },
  11. endVal: {
  12. type: Number,
  13. default: 0,
  14. intro: '结束值'
  15. },
  16. duration: {
  17. type: Number,
  18. default: 1,
  19. intro: '动画持续时间'
  20. },
  21. decimalPlaces: {
  22. type: Number,
  23. default: 0,
  24. intro: '小数展示几位'
  25. },
  26. prefix: {
  27. type: String,
  28. default: '',
  29. intro: '数字前缀'
  30. },
  31. suffix: {
  32. type: String,
  33. default: '',
  34. intro: '数字后缀'
  35. }
  36. }
  37. export const eventsScheme = {
  38. }
  39. export const slotsScheme = {
  40. }
  41. export const componentScheme = {
  42. propsScheme,
  43. slotsScheme,
  44. eventsScheme
  45. }