Loading: fix export module

pull/1140/head
qingwei.li 2016-11-17 14:30:25 +08:00
parent 98c9cca24c
commit b090d3eafb
3 changed files with 7 additions and 4 deletions

View File

@ -39,8 +39,7 @@ module.exports = {
version: '{{version}}',
locale: locale.use,
install,
Loading: Loading.directive,
LoadingService: Loading.service,
Loading,
{{list}}
};
`;

View File

@ -1,6 +1,11 @@
import directive from './src/directive';
import service from './src/index';
export default {
install(Vue) {
Vue.use(directive);
Vue.prototype.$loading = service;
},
directive,
service
};

View File

@ -134,8 +134,7 @@ module.exports = {
version: '1.0.1',
locale: locale.use,
install,
Loading: Loading.directive,
LoadingService: Loading.service,
Loading,
Pagination,
Dialog,
Autocomplete,