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
86
87
88
89
90
91
92
| import Vue from "vue";
| import App from "./App.vue";
| import router from "./router";
| import store from "./store";
| import { i18n } from "./lang/index";
| import * as filter from "@/utils/filter";
|
| // 按需引入
| import {
| Button,
| Dropdown,
| DropdownMenu,
| DropdownItem,
| FormItem,
| Input,
| Message,
| Alert,
| Table,
| MessageBox,
| TableColumn,
| Pagination,
| Loading,
| Tag,
| Tabs,
| TabPane,
| Dialog,
| Form,
| Radio,
| RadioGroup,
| RadioButton,
| Select,
| Option,
| Drawer,
| Upload,
| Popconfirm,
| Row,
| Col,
| Empty,
| InputNumber,
| Slider,
| } from "element-ui";
| import "element-ui/lib/theme-chalk/index.css";
| // Vue.component(Button.name, Button);
| Vue.use(Slider);
| Vue.use(InputNumber);
| Vue.use(Empty);
| Vue.use(Dropdown);
| Vue.use(DropdownMenu);
| Vue.use(DropdownItem);
| Vue.use(Button);
| Vue.use(FormItem);
| Vue.use(Input);
| Vue.use(Table);
| Vue.use(TableColumn);
| Vue.use(Pagination);
| Vue.use(Tag);
| Vue.use(Tabs);
| Vue.use(TabPane);
| Vue.use(Dialog);
| Vue.use(Form);
| Vue.use(Radio);
| Vue.use(RadioGroup);
| Vue.use(RadioButton);
| Vue.use(Select);
| Vue.use(Option);
| Vue.use(Drawer);
| Vue.use(Upload);
| Vue.use(Popconfirm);
| Vue.use(Row);
| Vue.use(Col);
| Vue.use(Alert);
| Vue.use(Loading.directive);
| // Message组件需要全局挂载
| Vue.prototype.$message = Message;
| Vue.prototype.$msgbox = MessageBox;
| Vue.prototype.$alert = MessageBox.alert;
| Vue.prototype.$confirm = MessageBox.confirm;
| import "./assets/style/variables.scss";
|
| Vue.config.productionTip = false;
| Vue.prototype.$store = store;
|
| Object.keys(filter).forEach((key) => {
| Vue.filter(key, filter[key]);
| });
|
| new Vue({
| router,
| store,
| i18n,
| render: (h) => h(App),
| }).$mount("#app");
|
|