1.0.17 • Published 4 years ago

ihr-portal-layout v1.0.17

Weekly downloads
4
License
ISC
Repository
gitlab
Last release
4 years ago

base-portal-layout

base portal common layout

Build Setup

# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

门户菜单工程

属性说明

参数说明类型默认值
navMenuData顶部导航数据Array[]
navActiveName顶部导航选中项String——
hideSidebar是否隐藏侧边栏菜单Booleanfalse
menuData左侧边栏菜单列表Array[]
currentRoutePath当前路由路径,路由变化时需重新赋值String——
accountInfo用户信息Array[]

属性传值示例

navMenuData

let navMenuData = [
  {
    menuid: '2',
    menuname: 'xxx中心',
    url: '/test1',
    iconprev: '',
    children: []
  }
]

menuData

// 有一级菜
let menuData = [
  {
    menuid: '500',
    menuname: '测试管理',
    url: '',
    iconprev: 'book-multiple',
    children: []
  }
]
// 有二级菜单
let menuData = [
  {
    menuid: '500',
    menuname: '测试管理',
    url: '',
    iconprev: 'book-multiple',
    children: [
      {
        menuid: '600',
        menuname: '客服类',
        url: '',
        iconprev: '',
        children: []
      },
      {
        menuid: '601',
        menuname: '服务类',
        url: '/test3',
        iconprev: '',
        children: []
      }
    ]
  }
]
// 有三级菜单
let menuData = [
  {
    menuid: '500',
    menuname: '测试管理',
    url: '',
    iconprev: 'book-multiple',
    children: [
      {
        menuid: '600',
        menuname: '客服类',
        url: '',
        iconprev: '',
        children: [
          {
            menuid: '700',
            menuname: '测试1',
            url: '/test1',
            iconprev: '',
            children: []
          },
          {
            menuid: '701',
            menuname: '测试2',
            url: '/test2',
            iconprev: '',
            children: []
          }
        ]
      },
      {
        menuid: '601',
        menuname: '服务类',
        url: '/test3',
        iconprev: '',
        children: []
      }
    ]
  }
]

事件说明

事件名说明参数
jumpRouter侧边栏路由跳转侧边栏菜单项对应 URL
logout注销——
1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago