index.js
566 Bytes
/**
* 用本地打包后的组件 文件测试 umd
* 启动项目工程即可
*/
//创建的组件
import Vue from 'vue'
import {
GLExternal,
GLButton,
GLDialog,
GLTable,
GLFooter
} from '../../dist/glsx-components.umd.min.js'
import '../../dist/glsx-components.css'
const permissions = {
routes: [
{ path: '/', meta: { permissions: ['1-1-1-1', '2-1-1-1', '3-1-1-1'] } },
{ path: '/a', meta: {} }
],
routerBase: ''
}
Vue.use(GLButton, permissions)
Vue.use(GLExternal)
Vue.use(GLDialog)
Vue.use(GLTable)
Vue.use(GLFooter)