index.js
989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
* 用本地打包后的组件 文件测试 umd
* 启动项目工程即可
*/
//创建的组件
import Vue from 'vue'
import {
// 基础
GLExternal,
GLButton,
GLDialog,
GLTable,
GLFooter,
GLSearch,
GLSearchItem,
GLCombiForm,
GLTableButton,
GLTabs,
GLTableOption,
GLImage,
GLDrawer,
GLVideo,
// 业务
GLProvince,
GLBcTest,
GLEditor,
GLFull
} 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)
Vue.use(GLSearch)
Vue.use(GLSearchItem)
Vue.use(GLCombiForm)
Vue.use(GLTableButton)
Vue.use(GLProvince)
Vue.use(GLBcTest)
Vue.use(GLEditor)
Vue.use(GLFull)
Vue.use(GLTabs)
Vue.use(GLTableOption)
Vue.use(GLImage)
Vue.use(GLDrawer)
Vue.use(GLVideo)