forked from geekskai/vue3-jd-h5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
executable file
·85 lines (82 loc) · 1.99 KB
/
main.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
* @version: v 1.0.0
* @Github: https://github.com/GitHubGanKai
* @Author: GitHubGanKai
* @Date: 2019-09-20 18:25:50
* @LastEditors: gankai
* @LastEditTime: 2020-03-22 19:55:01
* @FilePath: /vue-jd-h5/src/main.js
*/
import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import store from './store/index'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
import './components'
import 'amfe-flexible'
import axios from './plugins/axios'
import '@/icons' // icon
import EventBus from './utils/eventBus'
import VueClipboard from 'vue-clipboard2'
import './utils/validator.js'
import {
Swipe,
Toast,
SwipeCell,
Sku,
SwipeItem,
Button,
RadioGroup,
Radio,
Tabbar,
Tab,
Tabs,
CountDown,
Loading,
Switch,
TabbarItem,
NavBar,
GoodsAction,
GoodsActionIcon,
GoodsActionButton,
Search,
Lazyload,
Card,
Popup,
Dialog,
Picker,
Checkbox,
Area,
CheckboxGroup,
ActionSheet,
Field,
Uploader,
Cell,
Step,
Steps,
IndexBar,
IndexAnchor,
Tag,
CellGroup,
SubmitBar,
Stepper,
Collapse,
CollapseItem,
Divider,
Icon
} from 'vant'
Vue.use(VueAwesomeSwiper)
Vue.use(axios)
Vue.use(EventBus)
Vue.use(VueClipboard)
Vue.use(Tabbar).use(TabbarItem).use(Button).use(NavBar).use(Search).use(Icon).use(Picker).use(ActionSheet).use(Field).use(Cell).use(CellGroup)
.use(Swipe).use(SwipeItem).use(Lazyload).use(GoodsAction).use(GoodsActionIcon).use(GoodsActionButton).use(Popup).use(Uploader).use(Dialog).use(Checkbox).use(CheckboxGroup)
.use(Switch).use(Step).use(Steps).use(Card).use(Stepper).use(SubmitBar).use(Tag).use(Toast).use(Area).use(IndexBar).use(IndexAnchor).use(Loading)
.use(Collapse).use(CollapseItem).use(Radio).use(RadioGroup).use(Tab).use(Tabs).use(Divider).use(CountDown).use(Sku).use(SwipeCell)
Vue.config.productionTip = false
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')