Skip to content

Commit 4fc0fea

Browse files
authored
docs(menu): update type definition (#5466)
* docs(menu): update type definition * docs(menu): update type definition
1 parent 6e9cb0b commit 4fc0fea

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

components/menu/index.en-US.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ More layouts with navigation: [Layout](/components/layout).
4949
| style | style of the root node | object | |
5050
| subMenuCloseDelay | delay time to hide submenu when mouse leave, unit: second | number | 0.1 |
5151
| subMenuOpenDelay | delay time to show submenu when mouse enter, unit: second | number | 0 |
52-
| theme | color theme of the menu | string: `light` `dark` | `light` |
52+
| theme | color theme of the menu | `light` \| `dark` | `light` |
5353
| triggerSubMenuAction | method of trigger submenu | `click` \| `hover` | `hover` |
5454

5555
### Menu Events
@@ -63,11 +63,11 @@ More layouts with navigation: [Layout](/components/layout).
6363

6464
### Menu.Item
6565

66-
| Param | Description | Type | Default value |
67-
| -------- | ------------------------------------ | ------- | ------------- |
68-
| disabled | whether menu item is disabled or not | boolean | false |
69-
| key | unique id of the menu item | string | |
70-
| title | set display title for collapsed item | string | |
66+
| Param | Description | Type | Default value |
67+
| -------- | ------------------------------------ | -------------- | ------------- |
68+
| disabled | whether menu item is disabled or not | boolean | false |
69+
| key | unique id of the menu item | string | |
70+
| title | set display title for collapsed item | string \| slot | |
7171

7272
### Menu.SubMenu
7373

components/menu/index.zh-CN.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/3XZcjGpvK/Menu.svg
4949
| selectedKeys(v-model) | 当前选中的菜单项 key 数组 | string\[] | |
5050
| subMenuCloseDelay | 用户鼠标离开子菜单后关闭延时,单位:秒 | number | 0.1 |
5151
| subMenuOpenDelay | 用户鼠标进入子菜单后开启延时,单位:秒 | number | 0 |
52-
| theme | 主题颜色 | string: `light` `dark` | `light` |
52+
| theme | 主题颜色 | `light` \| `dark` | `light` |
5353
| triggerSubMenuAction | 修改 Menu 子菜单的触发方式 | `click` \| `hover` | `hover` |
5454

5555
### Menu 事件
@@ -63,12 +63,12 @@ cover: https://gw.alipayobjects.com/zos/alicdn/3XZcjGpvK/Menu.svg
6363

6464
### Menu.Item
6565

66-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
67-
| -------- | ------------------------ | ----------- | ------ | ----- |
68-
| disabled | 是否禁用 | boolean | false | |
69-
| icon | 菜单图标 | slot | | 2.8.0 |
70-
| key | item 的唯一标志 | string | | |
71-
| title | 设置收缩时展示的悬浮标题 | string/slot | | |
66+
| 参数 | 说明 | 类型 | 默认值 | 版本 |
67+
| -------- | ------------------------ | -------------- | ------ | ----- |
68+
| disabled | 是否禁用 | boolean | false | |
69+
| icon | 菜单图标 | slot | | 2.8.0 |
70+
| key | item 的唯一标志 | string | | |
71+
| title | 设置收缩时展示的悬浮标题 | string \| slot | | |
7272

7373
### Menu.SubMenu
7474

@@ -94,9 +94,9 @@ Menu.SubMenu 的子元素必须是 `MenuItem` 或者 `SubMenu`.
9494

9595
### Menu.ItemGroup
9696

97-
| 参数 | 说明 | 类型 | 默认值 |
98-
| ----- | -------- | ------------------------ | ------ |
99-
| title | 分组标题 | string\|\|function\|slot | |
97+
| 参数 | 说明 | 类型 | 默认值 |
98+
| ----- | -------- | ------------ | ------ |
99+
| title | 分组标题 | string\|slot | |
100100

101101
Menu.ItemGroup 的子元素必须是 `MenuItem`.
102102

0 commit comments

Comments
 (0)