docs: update menu doc, add triggerSubMenuAction description (#5202)

pull/5223/head
chaegumi 2022-01-25 09:31:37 +08:00 committed by GitHub
parent 6d4248d046
commit 4846bd0f65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,7 @@ More layouts with navigation: [Layout](/components/layout).
| subMenuOpenDelay | delay time to show submenu when mouse enter, unit: second | number | 0 | | subMenuOpenDelay | delay time to show submenu when mouse enter, unit: second | number | 0 |
| theme | color theme of the menu | string: `light` `dark` | `light` | | theme | color theme of the menu | string: `light` `dark` | `light` |
| overflowedIndicator | Customized icon when menu is collapsed | DOM | `<span>···</span>` | | overflowedIndicator | Customized icon when menu is collapsed | DOM | `<span>···</span>` |
| triggerSubMenuAction | method of trigger submenu | `click` \| `hover` | `hover` |
### Menu Events ### Menu Events

View File

@ -44,6 +44,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/3XZcjGpvK/Menu.svg
| subMenuOpenDelay | 用户鼠标进入子菜单后开启延时,单位:秒 | number | 0 | | subMenuOpenDelay | 用户鼠标进入子菜单后开启延时,单位:秒 | number | 0 |
| theme | 主题颜色 | string: `light` `dark` | `light` | | theme | 主题颜色 | string: `light` `dark` | `light` |
| overflowedIndicator | 自定义 Menu 折叠时的图标 | DOM | `<span>···</span>` | | overflowedIndicator | 自定义 Menu 折叠时的图标 | DOM | `<span>···</span>` |
| triggerSubMenuAction | 修改 Menu 子菜单的触发方式 | `click` \| `hover` | `hover` |
### Menu 事件 ### Menu 事件