Browse Source
docs: fix menu API table (#36043)
* docs: fix menu API table
* Update index.en-US.md
pull/36042/head
afc163
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
components/menu/index.en-US.md
-
components/menu/index.zh-CN.md
|
@ -119,7 +119,7 @@ The legacy demo code for version `<4.20.0` could be found at [https://github.com |
|
|
#### SubMenuType |
|
|
#### SubMenuType |
|
|
|
|
|
|
|
|
| Param | Description | Type | Default value | Version | |
|
|
| Param | Description | Type | Default value | Version | |
|
|
| --- | --- | --- | --- | --- | --- | |
|
|
| --- | --- | --- | --- | --- | |
|
|
| children | Sub-menus or sub-menu items | [ItemType\[\]](#ItemType) | - | | |
|
|
| children | Sub-menus or sub-menu items | [ItemType\[\]](#ItemType) | - | | |
|
|
| disabled | Whether sub-menu is disabled | boolean | false | | |
|
|
| disabled | Whether sub-menu is disabled | boolean | false | | |
|
|
| icon | Icon of sub menu | ReactNode | - | | |
|
|
| icon | Icon of sub menu | ReactNode | - | | |
|
|
|
@ -120,7 +120,7 @@ return <Menu items={items} />; |
|
|
#### SubMenuType |
|
|
#### SubMenuType |
|
|
|
|
|
|
|
|
| 参数 | 说明 | 类型 | 默认值 | 版本 | |
|
|
| 参数 | 说明 | 类型 | 默认值 | 版本 | |
|
|
| --- | --- | --- | --- | --- | --- | |
|
|
| --- | --- | --- | --- | --- | |
|
|
| children | 子菜单的菜单项 | [ItemType\[\]](#ItemType) | - | | |
|
|
| children | 子菜单的菜单项 | [ItemType\[\]](#ItemType) | - | | |
|
|
| disabled | 是否禁用 | boolean | false | | |
|
|
| disabled | 是否禁用 | boolean | false | | |
|
|
| icon | 菜单图标 | ReactNode | - | | |
|
|
| icon | 菜单图标 | ReactNode | - | | |
|
|