mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +08:00
docs: update doc of dropdown component
This commit is contained in:
parent
de7c8d09bd
commit
2493182039
@ -8,7 +8,7 @@ title:
|
||||
## zh-CN
|
||||
|
||||
左边是按钮,右边是额外的相关功能菜单。
|
||||
可以设置 icon 属性 来修改右边的 icon
|
||||
可设置 `icon` 属性来修改右边的图标。
|
||||
|
||||
## en-US
|
||||
|
||||
|
@ -34,7 +34,7 @@ You should use [Menu](/components/menu/) as `overlay`. The menu items and divide
|
||||
|
||||
### Dropdown.Button
|
||||
|
||||
| Property | Description | Type | Default | Version|
|
||||
| Property | Description | Type | Default | Version |
|
||||
| -------- | ----------- | ---- | ------- |------- |
|
||||
| disabled | whether the dropdown menu is disabled | boolean | - ||
|
||||
| overlay | the dropdown menu | [Menu](/components/menu) | - ||
|
||||
|
@ -35,7 +35,7 @@ title: Dropdown
|
||||
|
||||
### Dropdown.Button
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |版本|
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| --- | --- | --- | --- |
|
||||
| disabled | 菜单是否禁用 | boolean | - |||
|
||||
| overlay | 菜单 | [Menu](/components/menu/) | - ||
|
||||
@ -46,4 +46,4 @@ title: Dropdown
|
||||
| visible | 菜单是否显示 | boolean | - ||
|
||||
| onClick | 点击左侧按钮的回调,和 [Button](/components/button/) 一致 | Function | - ||
|
||||
| onVisibleChange | 菜单显示状态改变时调用,参数为 visible | Function | - ||
|
||||
| icon | 右侧的 icon | ReactNode | - |3.17.0|
|
||||
| icon | 右侧的 icon | ReactNode | - | 3.17.0 |
|
Loading…
Reference in New Issue
Block a user