component.scheme.js 579 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. export const propsScheme = {
  2. modelValue: {
  3. type: String,
  4. intro: '绑定值'
  5. },
  6. loading: {
  7. type: Boolean,
  8. intro: '加载状态'
  9. },
  10. buttonText: {
  11. type: String,
  12. intro: '按钮文字'
  13. }
  14. }
  15. export const eventsScheme = {
  16. 'update:modelValue': {
  17. intro: '',
  18. cbVar: 'value'
  19. },
  20. search: {
  21. intro: '点击搜索按钮触发'
  22. }
  23. }
  24. export const slotsScheme = {
  25. buttonText: {
  26. intro: '按钮文字'
  27. },
  28. append: {
  29. intro: '组件后置内容'
  30. }
  31. }
  32. export const componentScheme = {
  33. propsScheme,
  34. eventsScheme,
  35. slotsScheme
  36. }