UNPKG

1.01 kBMarkdownView Raw
1## Dropdown 下拉框
2
3以条形菜单栏和菜单栏中每个菜单项的弹出菜单窗口两部分组成,一般作为应用系统的主菜单使用。
4
5## 代码演示
6
7### API
8
9|参数|说明|类型|默认值|
10|:--|:---|:----|:---|
11|transitionName|下拉显示动画|-|-|
12|trigger|触发的事件数组|array|['hover']|
13|placement|触发的位置|支持bottomLeft/bottomCenter/bottomRight/topLeft/topCenter/topRight|'bottomLeft'|
14|overlay|要显示的菜单|element/reactComponent|-|
15|animation|触发时的动画|string|-|
16|overlayClassName|传递给弹出菜单的className|string|''|
17|align|对齐方式|object|{}|
18|overlayStyle|传递给弹出菜单的style|object|{}|
19|onVisibleChange|下拉菜单显示与否的钩子函数|function|() => {}|
20|showAction|显示时的钩子函数数组|array|[]|
21|hideAction|隐藏时的钩子函数数组|array|[]|
22|getPopupContainer|获取要添加的容器|document.body|
23|getDocument|点击隐藏的document,适用于出现iframe的情况|function|document|
24