2020-08-27 17:18:57 +08:00

27 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### RouteMenu props
| 属性 | 说明 | 类型 | 默认值 |
|:--------------|:--------------------------|:--------|:-----------------------------------------------------|
| menu | 菜单配置项 | Array | 无 |
| menu[i].title | 菜单标题 | String | 空
| menu[i].path | 菜单项点击后,跳转路径 | String | 空
| menu[i].subMenu | 子菜单每项也有path和title | Array | 空
### Menu props
| 属性 | 说明 | 类型 | 默认值 |
|:--------------|:--------------------------|:--------|:-----------------------------------------------------|
| width | 宽度 | Number/String | 100% |
| active-name | 激活菜单的 name 值 | Number/String | 空 |
### Menu events
| 事件名 | 说明 | 返回值 |
|:--------------|:--------------------------|:--------|
| on-select | 选择菜单Menu-item时触发 | name
### MenuGroup props
| 属性 | 说明 | 类型 | 默认值 |
|:--------------|:--------------------------|:--------|:-----------------------------------------------------|
| title | 分组标题 | String | 空 |
### MenuItem props
| 属性 | 说明 | 类型 | 默认值 |
|:--------------|:--------------------------|:--------|:-----------------------------------------------------|
| name | 必填,唯一标识 | Number/String | 空 |