1.0.2 • Published 6 years ago

nut-mgt v1.0.2

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
6 years ago

使用方法

1. npm install nut-mgt --save
2. main.js中 import nutMgt from 'nut-mg'
   Vue.use(nutMgt)
3. 初始化组件:
    ①:初始页面结构组件
    app.vue中或其他路由容器中
    <nut-init-page :sliders="sliders" userName="lmr">
        <router-view />
    </nut-init-page>
    props参数:
    1. sliders【导航列表】注:path字段为路由路径 required: true(必须)
    2. userName 登录后用户名 登录之前可不传 required: false(非必须)
    例如:sliders: [
        {
          name: '首页',
          child: [
            {
              name: '首页-1',
              path: '/index-1' 
            },
            {
              name: '首页-2',
              child: [
                {
                  name: '首页-2-1',
                  path: '/index-2-2'
                }
              ]
            }
          ]
        },
        {
          name: '用户',
          child: [
            {
              name: '用户-1',
              path: '/user-1'
            }
          ]
        },
        {
          name: '管理',
          path: '/manage-1'
        },
        {
          name: '数据',
          path: '/data-1'
        }
    ]
    ②:开发中:xxx组件

For detailed explanation on how things work, consult the docs for vue-loader.

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago