提交 c38d6ba3 编写于 作者: fxy060608's avatar fxy060608

add showLoading,hideLoading

上级 29d27d3b
...@@ -2429,6 +2429,14 @@ let waitingTimeout; ...@@ -2429,6 +2429,14 @@ let waitingTimeout;
let toast = false; let toast = false;
let toastTimeout; let toastTimeout;
function showLoading$1 (args) {
return showToast$1(args).replace('showToast', 'showLoading')
}
function hideLoading () {
return hideToast().replace('hideToast', 'hideLoading')
}
function showToast$1 ({ function showToast$1 ({
title = '', title = '',
icon = 'success', icon = 'success',
...@@ -2594,6 +2602,8 @@ function showActionSheet$1 ({ ...@@ -2594,6 +2602,8 @@ function showActionSheet$1 ({
} }
var require_context_module_0_0 = /*#__PURE__*/Object.freeze({ var require_context_module_0_0 = /*#__PURE__*/Object.freeze({
showLoading: showLoading$1,
hideLoading: hideLoading,
showToast: showToast$1, showToast: showToast$1,
hideToast: hideToast, hideToast: hideToast,
showModal: showModal$1, showModal: showModal$1,
......
...@@ -7,6 +7,14 @@ let waitingTimeout ...@@ -7,6 +7,14 @@ let waitingTimeout
let toast = false let toast = false
let toastTimeout let toastTimeout
export function showLoading (args) {
return showToast(args).replace('showToast', 'showLoading')
}
export function hideLoading () {
return hideToast().replace('hideToast', 'hideLoading')
}
export function showToast ({ export function showToast ({
title = '', title = '',
icon = 'success', icon = 'success',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册