mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
1.1 KiB
1.1 KiB
Dropdown
When you have some functions to trigger.
Demos
basic
trigger
cascade
placement
size
manual-position
Props
Name | Type | Default | Description |
---|---|---|---|
keyboard | boolean |
true |
Whether is supports keyboard operation. (Be careful about the potential conflicts with other components keyboard operations) |
options | Array<DropdownOption | DropdownDivider | DropdownSubmenu> |
[] |
|
size | 'small'|'medium'|'large'|'huge' |
medium |
|
on-select | (key: string | number) => any |
undefined |
For other props, see Popover Props. Note that arrow
, raw
is not available.
DropdownOption Type
Property | Type | Description |
---|---|---|
icon | () => VNode |
|
key | string | number |
Should be unique |
label | string |
DropdownDivider Type
Property | Type | Description |
---|---|---|
type | 'divider' |
|
key | string | number |
Should be unique |
DropdownSubmenu Type
Property | Type | Description |
---|---|---|
type | 'submenu' |
|
label | string |
|
icon | () => VNode |
|
key | string | number |
Should be unique |
children | Array<DropdownOption | DropdownDivider | DropdownSubmenu> |