portal-layout
v0.1.14
Published
## Project setup ``` npm install ```
Downloads
14
Readme
portal-layout
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Lints and fixes files
npm run lint
发包命令
npm run lib
npm publish
门户菜单工程
属性说明
| 参数 | 说明 | 类型 | 默认值 | | ---------------- | ------------------------------ | ------- | ------ | | menuList | 菜单 | Array | [] | | userName | 用户名 | String | "" | | title | 标题 | String | "" | | hideSidebar | 第一个菜单打开tab签固定在第一位 | Boolean | true |
属性传值示例
menuList: [ { "index": "1", "title": "首页", "name": "home" }, { "index": "2", "title": "关于", "name": "about1" }, { "index": "3", "title": "列表", "name": "list" }, { "index": "4", "title": "登录", "name": "login" }, { "index": "5", "title": "Demo", "name": "demo22" } ]
回调函数说明
before-click,添加tab签前的回调函数 menu-click,点击menu,添加tab的回调函数