2019-10-22 13:48:51 +08:00
|
|
|
# Dropdown
|
2020-01-27 17:09:09 +08:00
|
|
|
When you have some functions to trigger.
|
|
|
|
|
|
|
|
## Demos
|
2019-10-22 13:48:51 +08:00
|
|
|
```demo
|
|
|
|
basic
|
|
|
|
trigger
|
|
|
|
cascade
|
2020-01-27 17:09:09 +08:00
|
|
|
placement
|
2019-12-03 20:00:29 +08:00
|
|
|
width
|
2019-12-02 20:57:09 +08:00
|
|
|
size
|
2019-12-03 18:36:21 +08:00
|
|
|
manual-position
|
2020-01-27 17:09:09 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
## Props
|
|
|
|
|Name|Type|Default|Description|
|
|
|
|
|-|-|-|-|
|
|
|
|
|size|`'small'\|'medium'\|'large'\|'huge'`|`large`||
|
|
|
|
|default-focus|`boolean`|`false`||
|
|
|
|
|options|`Array`|`[]`||
|
|
|
|
|trigger|`'hover' \| 'trigger' \| 'manual'`|`'hover'`||
|
|
|
|
|delay|`number`|`0`||
|
|
|
|
|duration|`number`|`300`||
|
|
|
|
|placement|`'top-start' \| 'top' \| 'top-end' \| 'right-start' \| 'right' \| 'right-end' \| 'bottom-start' \| 'bottom' \| 'bottom-end' \| 'left-start' \| 'left' \| 'left-end' \| `|`'bottom'`||
|
|
|
|
|arrow|`boolean`|`false`||
|
|
|
|
|disabled|`boolean`|`false`||
|
|
|
|
|manuallyPositioned|`boolean`|`false`||
|
|
|
|
|x|`number`|`null`||
|
|
|
|
|y|`number`|`null`||
|
|
|
|
|filp|`boolean`|`true`||
|
|
|
|
|controller|`object`|`null`||
|
|
|
|
|
|
|
|
## Events
|
|
|
|
|Name|Parameters|
|
|
|
|
|-|-|
|
|
|
|
|select|(selectedKey)|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|