dropdown.d.ts 841 B

1234567891011121314151617181920212223242526
  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. }