component.scheme.js 729 B

1234567891011121314151617181920212223242526272829303132
  1. export const propsScheme = {
  2. placement: {
  3. type: String,
  4. default: 'top',
  5. intro: 'Tooltip 组件出现的位置',
  6. options: ['top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'left', 'left-start', 'left-end', 'right', 'right-start', 'right-end'],
  7. validate: true
  8. },
  9. trigger: {
  10. type: String,
  11. default: 'hover',
  12. intro: '如何触发 tooltip (来显示)',
  13. options: ['click', 'focus', 'hover', 'manual'],
  14. validate: true
  15. },
  16. rowKey: {
  17. intro: '强制更新 rowKey改变后重新计算是否溢出'
  18. }
  19. }
  20. export const slotsScheme = {
  21. default: {
  22. intor: 'Tooltip 触发 & 引用的元素'
  23. }
  24. }
  25. export const componentScheme = {
  26. propsScheme,
  27. slotsScheme
  28. }