document dropdown menu

This commit is contained in:
afc163 2017-10-11 17:42:36 +08:00
parent 43659752d2
commit 3f54dbd3d2
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ If there are too many operations to display, you can wrap them in a `Dropdown`.
| onVisibleChange | a callback function takes an argument: `visible`, is executed when the visible state is changed | Function(visible) | - |
| placement | placement of pop menu: `bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` |
You can get the menu list by `antd.Menu`, and set a callback function `onSelect` for it if you need. The menu items and the dividers are also available, by using `Menu.Item` and `Menu.Divider` respectively.
You should use [Menu](/components/menu/) as `overlay`. The menu items and dividers are also available by using `Menu.Item` and `Menu.Divider`.
> Warning: You must set a unique `key` for `Menu.Item`.

View File

@ -25,7 +25,7 @@ title: Dropdown
| onVisibleChange | 菜单显示状态改变时调用,参数为 visible | Function(visible) | - |
| placement | 菜单弹出位置:`bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` |
菜单可由 `antd.Menu` 取得,可设置 `onSelect` 回调,菜单还包括菜单项 `Menu.Item`,分割线 `Menu.Divider`
`overlay` 菜单使用 [Menu](/components/menu/)还包括菜单项 `Menu.Item`,分割线 `Menu.Divider`
> 注意: Menu.Item 必须设置唯一的 key 属性。