@@ -33,10 +33,10 @@ More layouts with navigation: [Layout](/components/layout).
33
33
| items | Menu item content | [ ItemType\[\] ] ( #ItemType ) | - | 4.20.0 |
34
34
| mode | type of the menu; ` vertical ` , ` horizontal ` , and ` inline ` modes are supported | ` vertical ` \| ` horizontal ` \| ` inline ` | ` vertical ` |
35
35
| 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) [ ] | |
37
37
| overflowedIndicator | Customized the ellipsis icon when menu is collapsed horizontally | slot | ` <EllipsisOutlined /> ` |
38
38
| 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) [ ] | |
40
40
| style | style of the root node | object | |
41
41
| subMenuCloseDelay | delay time to hide submenu when mouse leave, unit: second | number | 0.1 |
42
42
| subMenuOpenDelay | delay time to show submenu when mouse enter, unit: second | number | 0 |
@@ -49,15 +49,15 @@ More layouts with navigation: [Layout](/components/layout).
49
49
| --- | --- | --- |
50
50
| click | callback executed when a menu item is clicked | function({ item, key, keyPath }) |
51
51
| 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) [ ] ) |
53
53
| select | callback executed when a menu item is selected | function({ item, key, selectedKeys }) |
54
54
55
55
### Menu.Item
56
56
57
57
| Param | Description | Type | Default value |
58
58
| -------- | ------------------------------------ | -------------- | ------------- |
59
59
| 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 | |
61
61
| title | set display title for collapsed item | string \| slot | |
62
62
63
63
### ItemType
@@ -71,7 +71,7 @@ More layouts with navigation: [Layout](/components/layout).
71
71
| danger | Display the danger style | boolean | false | |
72
72
| disabled | Whether menu item is disabled | boolean | false | |
73
73
| 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 | - | |
75
75
| label | Menu label | VueNode | - | |
76
76
| title | Set display title for collapsed item | string | - | |
77
77
@@ -83,7 +83,7 @@ More layouts with navigation: [Layout](/components/layout).
83
83
| children | Sub-menus or sub-menu items | [ ItemType\[\] ] ( #ItemType ) | - | |
84
84
| disabled | Whether sub-menu is disabled | boolean | false | |
85
85
| 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 | - | |
87
87
| label | Menu label | VueNode | - | |
88
88
| popupClassName | Sub-menu class name, not working when ` mode="inline" ` | string | - | |
89
89
| popupOffset | Sub-menu offset, not working when ` mode="inline" ` | \[ number, number] | - | |
@@ -127,7 +127,7 @@ const dividerItem = {
127
127
| --- | --- | --- | --- | --- |
128
128
| disabled | whether sub menu is disabled or not | boolean | false | |
129
129
| 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 | | |
131
131
| popupClassName | Sub-menu class name | string | | 1.5.0 |
132
132
| popupOffset | Sub-menu offset, not working when ` mode="inline" ` | \[ number, number] | - | |
133
133
| title | title of the sub menu | string\| slot | | |
0 commit comments