index.js 730 B

123456789101112131415161718192021222324
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var service = require('./src/service.js');
  4. var directive = require('./src/directive.js');
  5. const ElLoading = {
  6. install(app) {
  7. service["default"]._context = app._context;
  8. directive["default"]._context = app._context;
  9. app.directive("loading", directive["default"]);
  10. app.config.globalProperties.$loading = service["default"];
  11. },
  12. directive: directive["default"],
  13. service: service["default"]
  14. };
  15. exports.ElLoadingService = service["default"];
  16. exports.ElLoadingDirective = directive["default"];
  17. exports.vLoading = directive["default"];
  18. exports.ElLoading = ElLoading;
  19. exports["default"] = ElLoading;
  20. //# sourceMappingURL=index.js.map