component.scheme.js 756 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. export const propsScheme = {
  2. value: {
  3. type: String,
  4. intro: '绑定值'
  5. },
  6. size: {
  7. type: String,
  8. default: 'default',
  9. intro: '大小',
  10. options: ['small', 'default', 'large']
  11. },
  12. maxHeight: {
  13. type: String,
  14. intro: '最大高度'
  15. },
  16. showCron: {
  17. type: Boolean,
  18. intro: '是否显示表达式'
  19. },
  20. showField: {
  21. type: Boolean,
  22. intro: '是否显示表达式字段'
  23. }
  24. }
  25. export const eventsScheme = {
  26. 'update:value': {
  27. intro: '',
  28. cbVar: 'value'
  29. },
  30. postChange: {
  31. intro: '点击确定按钮触发',
  32. cbVar: 'value'
  33. }
  34. }
  35. export const slotsScheme = {
  36. append: {
  37. intro: '组件后置内容'
  38. }
  39. }
  40. export const componentScheme = {
  41. propsScheme,
  42. eventsScheme,
  43. slotsScheme
  44. }