mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
docs: fix docs of Menu
This commit is contained in:
parent
7ce12fe36a
commit
2dce9e67fb
@ -34,8 +34,7 @@ More layout and samples: [layout](/docs/spec/layout).
|
||||
| defaultSelectedKeys | array with the keys of default selected menu items | Array | |
|
||||
| openKeys | array with the keys of currently opened sub menus | Array | |
|
||||
| defaultOpenKeys | array with the keys of default opened sub menus | | |
|
||||
| onOpen | callback of the opened sub menu | Function({ key, item, keyPath }) | |
|
||||
| onClose | callback of the closed sub menu | Function({ key, item, keyPath }) | |
|
||||
| onOpenChange | called when open/close sub menu | Function(openKeys: string[]) | noop |
|
||||
| onSelect | callback of the selected item | Function({ item, key, selectedKeys }) | none |
|
||||
| onDeselect | callback of the deselected item, only supported for multiple mode | Function({ item, key, selectedKeys }) | - |
|
||||
| onClick | callback of the clicked menu item, params: {item, key, keyPath} | function | - |
|
||||
|
Loading…
Reference in New Issue
Block a user