UNPKG

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