forked from vueComponent/ant-design-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdropdown.d.ts
62 lines (52 loc) · 1.55 KB
/
dropdown.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { Menu } from '../menu/menu';
import { DropdownButton } from './dropdown-button';
export declare class Dropdown extends AntdComponent {
static Button: typeof DropdownButton;
/**
* the trigger mode which executes the drop-down action
* @default ['hover']
* @type string[]
*/
trigger: Array<'click' | 'hover' | 'contextmenu'>;
/**
* the dropdown menu
* @type Menu
*/
overlay: Menu;
/**
* Class name of the dropdown root element
* @type string
*/
overlayClassName: string;
/**
* Style of the dropdown root element
* @type object
*/
overlayStyle: object;
/**
* whether the dropdown menu is visible
* @type boolean
*/
visible: boolean;
/**
* whether the dropdown menu is disabled
* @type boolean
*/
disabled: boolean;
/**
* to set the ontainer of the dropdown menu. The default is to create a div element in body, you can reset it to the scrolling area and make a relative reposition.
* @default () => document.body
* @type Function
*/
getPopupContainer: (triggerNode?: any) => HTMLElement;
/**
* placement of pop menu: bottomLeft bottomCenter bottomRight topLeft topCenter topRight
* @default 'bottomLeft'
* @type string
*/
placement: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
}