mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 12:18:46 +08:00
27 lines
841 B
TypeScript
27 lines
841 B
TypeScript
import { ElementUIComponent, ElementUIComponentSize } from './component'
|
|
import { ButtonType } from './button'
|
|
|
|
export type DropdownMenuAlignment = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end'
|
|
export type DropdownMenuTrigger = 'hover' | 'click'
|
|
|
|
/** Toggleable menu for displaying lists of links and actions */
|
|
export declare class ElDropdown extends ElementUIComponent {
|
|
/** Menu button type. only works when split-button is true */
|
|
type: ButtonType
|
|
|
|
/** Whether a button group is displayed */
|
|
splitButton: boolean
|
|
|
|
/** menu size, also works on the split button */
|
|
size: ElementUIComponentSize
|
|
|
|
/** Placement of the menu */
|
|
placement: DropdownMenuAlignment
|
|
|
|
/** How to trigger */
|
|
trigger: DropdownMenuTrigger
|
|
|
|
/** Whether to hide menu after clicking menu-item */
|
|
hideOnClick: boolean
|
|
}
|