@@ -33,10 +33,10 @@ More layouts with navigation: [Layout](/components/layout).
3333| items | Menu item content | [ ItemType\[\] ] ( #ItemType ) | - | 4.20.0 |
3434| mode | type of the menu; ` vertical ` , ` horizontal ` , and ` inline ` modes are supported | ` vertical ` \| ` horizontal ` \| ` inline ` | ` vertical ` |
3535| multiple | Allow selection of multiple items | boolean | false |
36- | openKeys(v-model) | array with the keys of currently opened sub menus | string\ [] | |
36+ | openKeys(v-model) | array with the keys of currently opened sub menus | ( string \| number) [ ] | |
3737| overflowedIndicator | Customized the ellipsis icon when menu is collapsed horizontally | slot | ` <EllipsisOutlined /> ` |
3838| selectable | allow selecting menu items | boolean | true |
39- | selectedKeys(v-model) | array with the keys of currently selected menu items | string\ [] | |
39+ | selectedKeys(v-model) | array with the keys of currently selected menu items | ( string \| number) [ ] | |
4040| style | style of the root node | object | |
4141| subMenuCloseDelay | delay time to hide submenu when mouse leave, unit: second | number | 0.1 |
4242| subMenuOpenDelay | delay time to show submenu when mouse enter, unit: second | number | 0 |
@@ -49,15 +49,15 @@ More layouts with navigation: [Layout](/components/layout).
4949| --- | --- | --- |
5050| click | callback executed when a menu item is clicked | function({ item, key, keyPath }) |
5151| deselect | callback executed when a menu item is deselected, only supported for multiple mode | function({ item, key, selectedKeys }) |
52- | openChange | called when open/close sub menu | function(openKeys: string\ [] ) |
52+ | openChange | called when open/close sub menu | function(openKeys: ( string \| number) [ ] ) |
5353| select | callback executed when a menu item is selected | function({ item, key, selectedKeys }) |
5454
5555### Menu.Item
5656
5757| Param | Description | Type | Default value |
5858| -------- | ------------------------------------ | -------------- | ------------- |
5959| disabled | whether menu item is disabled or not | boolean | false |
60- | key | unique id of the menu item | string | |
60+ | key | unique id of the menu item | string \| number | |
6161| title | set display title for collapsed item | string \| slot | |
6262
6363### ItemType
@@ -71,7 +71,7 @@ More layouts with navigation: [Layout](/components/layout).
7171| danger | Display the danger style | boolean | false | |
7272| disabled | Whether menu item is disabled | boolean | false | |
7373| icon | The icon of the menu item | VueNode \| (item: MenuItemType) => VNode | - | |
74- | key | Unique ID of the menu item | string | - | |
74+ | key | Unique ID of the menu item | string \| number | - | |
7575| label | Menu label | VueNode | - | |
7676| title | Set display title for collapsed item | string | - | |
7777
@@ -83,7 +83,7 @@ More layouts with navigation: [Layout](/components/layout).
8383| children | Sub-menus or sub-menu items | [ ItemType\[\] ] ( #ItemType ) | - | |
8484| disabled | Whether sub-menu is disabled | boolean | false | |
8585| icon | Icon of sub menu | VueNode \| (item: SubMenuType) => VueNode | - | |
86- | key | Unique ID of the sub-menu | string | - | |
86+ | key | Unique ID of the sub-menu | string \| number | - | |
8787| label | Menu label | VueNode | - | |
8888| popupClassName | Sub-menu class name, not working when ` mode="inline" ` | string | - | |
8989| popupOffset | Sub-menu offset, not working when ` mode="inline" ` | \[ number, number] | - | |
@@ -127,7 +127,7 @@ const dividerItem = {
127127| --- | --- | --- | --- | --- |
128128| disabled | whether sub menu is disabled or not | boolean | false | |
129129| expandIcon | Customized expandIcon | slot | arrow icon | | |
130- | key | Unique ID of the sub menu, required | string | | |
130+ | key | Unique ID of the sub menu, required | string \| number | | |
131131| popupClassName | Sub-menu class name | string | | 1.5.0 |
132132| popupOffset | Sub-menu offset, not working when ` mode="inline" ` | \[ number, number] | - | |
133133| title | title of the sub menu | string\| slot | | |
0 commit comments