dropdown.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { ElementUIComponent, ElementUIComponentSize } from './component'
  2. import { ButtonType } from './button'
  3. export type DropdownMenuAlignment = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end'
  4. export type DropdownMenuTrigger = 'hover' | 'click'
  5. /** Toggleable menu for displaying lists of links and actions */
  6. export declare class ElDropdown extends ElementUIComponent {
  7. /** Menu button type. only works when split-button is true */
  8. type: ButtonType
  9. /** Whether a button group is displayed */
  10. splitButton: boolean
  11. /** menu size, also works on the split button */
  12. size: ElementUIComponentSize
  13. /** Placement of the menu */
  14. placement: DropdownMenuAlignment
  15. /** How to trigger */
  16. trigger: DropdownMenuTrigger
  17. /** Whether to hide menu after clicking menu-item */
  18. hideOnClick: boolean
  19. /** Delay time before show a dropdown */
  20. showTimeout: number
  21. /** Delay time before hide a dropdown */
  22. hideTimeout: number
  23. /** Dropdown tabindex */
  24. tabindex: number
  25. /** Whether Dropdown is disabled */
  26. disabled: boolean
  27. }