tab.scheme.js 647 B

1234567891011121314151617181920212223242526272829303132333435
  1. export const propsScheme = {
  2. label: {
  3. type: String,
  4. intro: '选项卡标题'
  5. },
  6. name: {
  7. type: [String, Number],
  8. intro: '与选项卡绑定值 value 对应的标识符,表示选项卡别名'
  9. },
  10. disabled: {
  11. type: Boolean,
  12. default: false,
  13. intro: '是否禁用'
  14. },
  15. closable: {
  16. type: Boolean,
  17. default: false,
  18. intro: '标签是否可关闭'
  19. },
  20. lazy: {
  21. type: Boolean,
  22. default: false,
  23. intro: '标签是否延迟渲染'
  24. }
  25. }
  26. export const slotsScheme = {
  27. default: {},
  28. label: { intro: 'tab-pane的标题内容' }
  29. }
  30. export const componentScheme = {
  31. propsScheme,
  32. slotsScheme
  33. }