tooltip.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { ElementUIComponent } from './component'
  2. import { PopoverPlacement } from './popover'
  3. export type TooltipEffect = 'dark' | 'light'
  4. /** Tooltip Component */
  5. export declare class ElTooltip extends ElementUIComponent {
  6. /** Tooltip theme */
  7. effect: TooltipEffect
  8. /** Display content, can be overridden by slot#content */
  9. content: String
  10. /** Position of Tooltip */
  11. placement: PopoverPlacement
  12. /** Visibility of Tooltip */
  13. value: boolean
  14. /** Whether Tooltip is disabled */
  15. disabled: boolean
  16. /** Offset of the Tooltip */
  17. offset: number
  18. /** Animation name */
  19. transition: string
  20. /** Whether an arrow is displayed. For more information, check Vue-popper page */
  21. visibleArrow: boolean
  22. /** Popper.js parameters */
  23. popperOptions: object
  24. /** Delay of appearance, in millisecond */
  25. openDelay: number
  26. /** Whether to control Tooltip manually. mouseenter and mouseleave won't have effects if set to true */
  27. manual: boolean
  28. /** Custom class name for Tooltip's popper */
  29. popperClass: string
  30. /** Whether the mouse can enter the tooltip */
  31. enterable: string
  32. /** Timeout in milliseconds to hide tooltip */
  33. hideAfter: string
  34. /** Tooltip tabindex */
  35. tabindex: number
  36. }