docs: fix docs of Menu

This commit is contained in:
Benjy Cui 2016-09-18 15:59:43 +08:00
parent 7ce12fe36a
commit 2dce9e67fb

View File

@ -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 | - |