mirror of https://github.com/ElemeFE/element
Loading: fix export module
parent
7b263b89ae
commit
3003aaa426
|
@ -39,8 +39,7 @@ module.exports = {
|
||||||
version: '{{version}}',
|
version: '{{version}}',
|
||||||
locale: locale.use,
|
locale: locale.use,
|
||||||
install,
|
install,
|
||||||
Loading: Loading.directive,
|
Loading,
|
||||||
LoadingService: Loading.service,
|
|
||||||
{{list}}
|
{{list}}
|
||||||
};
|
};
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
import directive from './src/directive';
|
import directive from './src/directive';
|
||||||
import service from './src/index';
|
import service from './src/index';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
install(Vue) {
|
||||||
|
Vue.use(directive);
|
||||||
|
Vue.prototype.$loading = service;
|
||||||
|
},
|
||||||
directive,
|
directive,
|
||||||
service
|
service
|
||||||
};
|
};
|
||||||
|
|
|
@ -134,8 +134,7 @@ module.exports = {
|
||||||
version: '1.0.1',
|
version: '1.0.1',
|
||||||
locale: locale.use,
|
locale: locale.use,
|
||||||
install,
|
install,
|
||||||
Loading: Loading.directive,
|
Loading,
|
||||||
LoadingService: Loading.service,
|
|
||||||
Pagination,
|
Pagination,
|
||||||
Dialog,
|
Dialog,
|
||||||
Autocomplete,
|
Autocomplete,
|
||||||
|
|
Loading…
Reference in New Issue