0.0.5 • Published 5 years ago
@wallejs/hanclouds-console-aside v0.0.5
说明
Copyright © 2020 hanclouds all rights reserved
使用技术
- Vue
- Vue-Router
- Element UI
- npm
配置参数
Attributes
| 参数 | 类型 | 说明 |
|---|---|---|
| title | String | 菜单标题(不填不显示) |
| menus | Array | 菜单列表 |
| defaultActive | String | 激活菜单(与menus中path对应) |
| customEvent | String | 自定义菜单项点击事件名称 |
menus配置
| 参数 | 类型 | 说明 |
|---|---|---|
| name | String | 名称 |
| path | String | 路径或者全链接(子菜单的父菜单可以不填) |
| icon | String | 图标 |
| children | Array | 子菜单(最多三层菜单) |
Events
| 事件 | 说明 |
|---|---|
| --- | 自定义事件与自定义customEvent对应 |
备注
2, 定义了自定义点击事件则不执行路径跳转,自定义事件定义是除了配置customEvent,需在组件上手动写同名事件