Commit c4bef471 by 肖康

x

parent 321f2fac
Showing with 2 additions and 2 deletions
import Vue from 'vue';
import { Loading } from 'element-ui';
Vue.use(Loading)
let loadingCount = 0;
let loading;
......
......@@ -10440,7 +10440,7 @@ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@b
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hideLoading = exports.showLoading = void 0;\n\nvar _loading = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/loading.css */ \"./node_modules/element-ui/lib/theme-chalk/loading.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _loading2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/loading */ \"./node_modules/element-ui/lib/loading.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\n_vue.default.use(_loading2.default);\n\nlet loadingCount = 0;\nlet loading;\n\nconst startLoading = () => {\n loading = _Loading.service({\n lock: true,\n // text: '加载中……',\n background: 'rgba(255, 255, 255, 0)'\n });\n};\n\nconst endLoading = () => {\n loading.close();\n};\n\nconst showLoading = () => {\n if (loadingCount === 0) {\n startLoading();\n }\n\n loadingCount += 1;\n};\n\nexports.showLoading = showLoading;\n\nconst hideLoading = () => {\n if (loadingCount <= 0) {\n return;\n }\n\n loadingCount -= 1;\n\n if (loadingCount === 0) {\n endLoading();\n }\n};\n\nexports.hideLoading = hideLoading;\n\n//# sourceURL=webpack:///./src/ajax/loading.js?");
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hideLoading = exports.showLoading = void 0;\n\nvar _loading = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/loading.css */ \"./node_modules/element-ui/lib/theme-chalk/loading.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _loading2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/loading */ \"./node_modules/element-ui/lib/loading.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nlet loadingCount = 0;\nlet loading;\n\nconst startLoading = () => {\n loading = _loading2.default.service({\n lock: true,\n // text: '加载中……',\n background: 'rgba(255, 255, 255, 0)'\n });\n};\n\nconst endLoading = () => {\n loading.close();\n};\n\nconst showLoading = () => {\n if (loadingCount === 0) {\n startLoading();\n }\n\n loadingCount += 1;\n};\n\nexports.showLoading = showLoading;\n\nconst hideLoading = () => {\n if (loadingCount <= 0) {\n return;\n }\n\n loadingCount -= 1;\n\n if (loadingCount === 0) {\n endLoading();\n }\n};\n\nexports.hideLoading = hideLoading;\n\n//# sourceURL=webpack:///./src/ajax/loading.js?");
/***/ }),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment