🎨Optimization introduces only part of the ElementUI components
This commit is contained in:
parent
1223646b7b
commit
1bdbf46020
11
.babelrc
Normal file
11
.babelrc
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"plugins": [
|
||||||
|
[
|
||||||
|
"component",
|
||||||
|
{
|
||||||
|
"libraryName": "element-ui",
|
||||||
|
"styleLibraryName": "theme-chalk"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -2288,7 +2288,7 @@
|
|||||||
},
|
},
|
||||||
"@babel/types": {
|
"@babel/types": {
|
||||||
"version": "7.0.0-beta.35",
|
"version": "7.0.0-beta.35",
|
||||||
"resolved": "https://registry.npm.taobao.org/@babel/types/download/@babel/types-7.0.0-beta.35.tgz?cache=0&sync_timestamp=1588185770735&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Ftypes%2Fdownload%2F%40babel%2Ftypes-7.0.0-beta.35.tgz",
|
"resolved": "https://registry.npm.taobao.org/@babel/types/download/@babel/types-7.0.0-beta.35.tgz?cache=0&sync_timestamp=1593521074992&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Ftypes%2Fdownload%2F%40babel%2Ftypes-7.0.0-beta.35.tgz",
|
||||||
"integrity": "sha1-z5M6mpo4SEynJLM1uI2Dcm1auWA=",
|
"integrity": "sha1-z5M6mpo4SEynJLM1uI2Dcm1auWA=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import Vue from "vue";
|
import Vue from "vue";
|
||||||
import App from "./App.vue";
|
import App from "./App.vue";
|
||||||
import ElementUI from "element-ui";
|
import { Loading } from "element-ui";
|
||||||
import "element-ui/lib/theme-chalk/icon.css";
|
import "element-ui/lib/theme-chalk/icon.css";
|
||||||
import "element-ui/lib/theme-chalk/notification.css";
|
import "element-ui/lib/theme-chalk/notification.css";
|
||||||
import "element-ui/lib/theme-chalk/loading.css";
|
import "element-ui/lib/theme-chalk/loading.css";
|
||||||
@ -25,7 +25,7 @@ document.write(
|
|||||||
);
|
);
|
||||||
Vue.config.productionTip = false;
|
Vue.config.productionTip = false;
|
||||||
Vue.prototype.$cdnpath = cdnpath;
|
Vue.prototype.$cdnpath = cdnpath;
|
||||||
Vue.use(ElementUI);
|
Vue.use(Loading);
|
||||||
Vue.use(VueAxios, axios);
|
Vue.use(VueAxios, axios);
|
||||||
Vue.use(VueClipboard);
|
Vue.use(VueClipboard);
|
||||||
Vue.use(VueLazyload, {
|
Vue.use(VueLazyload, {
|
||||||
|
Loading…
Reference in New Issue
Block a user