Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c4bef471
authored
May 18, 2021
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
x
parent
321f2fac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/ajax/loading.js
view/js/app.js
src/ajax/loading.js
View file @
c4bef471
import
Vue
from
'vue'
;
import
{
Loading
}
from
'element-ui'
;
Vue
.
use
(
Loading
)
let
loadingCount
=
0
;
let
loading
;
...
...
view/js/app.js
View file @
c4bef471
...
...
@@ -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\n
let 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?"
);
/***/
}),
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment