main.js
1.58 KB
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
57
58
59
60
61
62
63
64
// import Vue from 'vue'
// import App from './App.vue'
// import { GLExternal, GLButton, GLDialog, GLTable, Table, TableColumn,Popover } from './packages/index'
// import 'element-ui/lib/theme-chalk/index.css'
// import '../dist/glsx-components.css'
// Vue.use(GLExternal)
// Vue.use(GLDialog)
// Vue.use(GLTable)
// Vue.use(Table)
// Vue.use(TableColumn)
// Vue.use(Popover)
// 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.config.productionTip = false
// new Vue({
// render: h => h(App)
// }).$mount('#app')
/***
* new line
*/
import Vue from 'vue'
import App from './App.vue'
// 一次性注册所有的过滤器 本地测试
import filters from '@/filters'
// 一次性注册所有的自定义指令
// import directives from '@/directives'
// 注册全局过滤器(一次性注册)
Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key])
})
// // 注册全局自定义指令(一次性注册)
// Object.keys(directives).forEach(key => {
// Vue.directive(key, directives[key])
// })
// // element ui组件
// import '@/plugins/element.js'
// import '@/theme/theme.scss'
// // import '../dist/glsx-components.css'
// //开发完成后,本地测试使用我们第二次封装的组件
// import './index'
//开发完成后,打包后本地测试,我们第二次封装的组件
import './localtest/index'
Vue.config.productionTip = false
new Vue({
render: h => h(App)
}).$mount('#app')