element-plus
Version:
A Component Library for Vue 3
17 lines (14 loc) • 491 B
JavaScript
import Loading from './src/service.mjs';
import vLoading from './src/directive.mjs';
const ElLoading = {
install(app) {
Loading._context = app._context;
vLoading._context = app._context;
app.directive("loading", vLoading);
app.config.globalProperties.$loading = Loading;
},
directive: vLoading,
service: Loading
};
export { ElLoading, vLoading as ElLoadingDirective, Loading as ElLoadingService, ElLoading as default, vLoading };
//# sourceMappingURL=index.mjs.map