diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..6ad5069 --- /dev/null +++ b/.babelrc @@ -0,0 +1,11 @@ +{ + "plugins": [ + [ + "component", + { + "libraryName": "element-ui", + "styleLibraryName": "theme-chalk" + } + ] + ] +} diff --git a/package-lock.json b/package-lock.json index 1c18f7f..94d2138 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2288,7 +2288,7 @@ }, "@babel/types": { "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=", "dev": true, "requires": { diff --git a/src/main.js b/src/main.js index 5bea464..b1d091b 100644 --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,6 @@ import Vue from "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/notification.css"; import "element-ui/lib/theme-chalk/loading.css"; @@ -25,7 +25,7 @@ document.write( ); Vue.config.productionTip = false; Vue.prototype.$cdnpath = cdnpath; -Vue.use(ElementUI); +Vue.use(Loading); Vue.use(VueAxios, axios); Vue.use(VueClipboard); Vue.use(VueLazyload, {