forked from Happy-Coding-Clans/vue-easytable
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.js
54 lines (39 loc) · 1.24 KB
/
app.js
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
import Vue from 'vue'
import APP from './comp/app.vue'
import router from './router'
import NProgress from 'nprogress'; // Progress 进度条
import './css/index.css'
import './css/custom.css'
// Progress 进度条 样式
import 'nprogress/nprogress.css';
// highlight theme
import 'highlight.js/styles/color-brewer.css';
import demoBox from './comp/demo-box.vue'
import anchor from './comp/anchor.vue'
Vue.component('demo-box', demoBox);
Vue.component('anchor', anchor);
// product
import '../libs/themes-base/index.css'
import {VTable,VPagination,VCheckbox,VCheckboxGroup,VSelect,VDropdown} from '../libs/index.js'
// dev
/*import '../packages/themes-base/index.css'
import {VTable,VPagination,VCheckbox,VCheckboxGroup,VSelect,VDropdown} from '../packages/index.js'*/
Vue.component(VTable.name, VTable)
Vue.component(VPagination.name, VPagination)
Vue.component(VCheckbox.name, VCheckbox)
Vue.component(VCheckboxGroup.name, VCheckboxGroup)
Vue.component(VSelect.name, VSelect)
Vue.component(VDropdown.name, VDropdown)
router.beforeEach((to, from, next) => {
NProgress.start();
next();
NProgress.done();
})
router.afterEach(() => {
NProgress.done(); // 结束Progress
});
new Vue({
el: '#app',
router,
render: h => h(APP)
})