naive-ui/demo/documentation/components/dropdown/enUS/index.demo-entry.md
2020-10-28 01:00:55 +08:00

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>