|
5 | 5 | import { AntdComponent } from '../component'; |
6 | 6 | import { Menu } from '../menu/menu'; |
7 | 7 | import { DropdownButton } from './dropdown-button'; |
| 8 | +import { CSSProperties } from 'vue'; |
8 | 9 |
|
9 | 10 | export declare class Dropdown extends AntdComponent { |
10 | 11 | static Button: typeof DropdownButton; |
| 12 | + $props: { |
| 13 | + /** |
| 14 | + * the trigger mode which executes the drop-down action |
| 15 | + * @default ['hover'] |
| 16 | + * @type string[] |
| 17 | + */ |
| 18 | + trigger?: Array<'click' | 'hover' | 'contextmenu'>; |
11 | 19 |
|
12 | | - /** |
13 | | - * the trigger mode which executes the drop-down action |
14 | | - * @default ['hover'] |
15 | | - * @type string[] |
16 | | - */ |
17 | | - trigger: Array<'click' | 'hover' | 'contextmenu'>; |
18 | | - |
19 | | - /** |
20 | | - * the dropdown menu |
21 | | - * @type () => Menu |
22 | | - */ |
23 | | - overlay: any; |
24 | | - |
25 | | - /** |
26 | | - * Class name of the dropdown root element |
27 | | - * @type string |
28 | | - */ |
29 | | - overlayClassName: string; |
30 | | - |
31 | | - /** |
32 | | - * Style of the dropdown root element |
33 | | - * @type object |
34 | | - */ |
35 | | - overlayStyle: object; |
36 | | - |
37 | | - /** |
38 | | - * whether the dropdown menu is visible |
39 | | - * @type boolean |
40 | | - */ |
41 | | - visible: boolean; |
42 | | - |
43 | | - /** |
44 | | - * whether the dropdown menu is disabled |
45 | | - * @type boolean |
46 | | - */ |
47 | | - disabled: boolean; |
48 | | - |
49 | | - /** |
50 | | - * 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. |
51 | | - * @default () => document.body |
52 | | - * @type Function |
53 | | - */ |
54 | | - getPopupContainer: (triggerNode?: any) => HTMLElement; |
55 | | - |
56 | | - /** |
57 | | - * placement of pop menu: bottomLeft bottomCenter bottomRight topLeft topCenter topRight |
58 | | - * @default 'bottomLeft' |
59 | | - * @type string |
60 | | - */ |
61 | | - placement: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight'; |
| 20 | + /** |
| 21 | + * the dropdown menu |
| 22 | + * @type () => Menu |
| 23 | + */ |
| 24 | + overlay?: () => Menu |
| 25 | + |
| 26 | + /** |
| 27 | + * Class name of the dropdown root element |
| 28 | + * @type string |
| 29 | + */ |
| 30 | + overlayClassName?: string; |
| 31 | + |
| 32 | + /** |
| 33 | + * Style of the dropdown root element |
| 34 | + * @type object |
| 35 | + */ |
| 36 | + overlayStyle?: CSSProperties; |
| 37 | + |
| 38 | + /** |
| 39 | + * whether the dropdown menu is visible |
| 40 | + * @type boolean |
| 41 | + */ |
| 42 | + visible?: boolean; |
| 43 | + |
| 44 | + /** |
| 45 | + * whether the dropdown menu is disabled |
| 46 | + * @type boolean |
| 47 | + */ |
| 48 | + disabled?: boolean; |
| 49 | + |
| 50 | + /** |
| 51 | + * 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. |
| 52 | + * @default () => document.body |
| 53 | + * @type Function |
| 54 | + */ |
| 55 | + getPopupContainer?: (triggerNode?: any) => HTMLElement; |
| 56 | + |
| 57 | + /** |
| 58 | + * placement of pop menu: bottomLeft bottomCenter bottomRight topLeft topCenter topRight |
| 59 | + * @default 'bottomLeft' |
| 60 | + * @type string |
| 61 | + */ |
| 62 | + placement?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight'; |
| 63 | + } |
62 | 64 | } |
0 commit comments