@lazycatcloud/lzc-toolkit 0.0.156 → 0.0.158
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -910,7 +910,8 @@ const qt = Symbol(), Jt = /* @__PURE__ */ q({
|
|
|
910
910
|
visiable: { type: Boolean, default: !1 },
|
|
911
911
|
closeOnClickOverlay: { type: Boolean, default: !0 },
|
|
912
912
|
hiddenOverlay: { type: Boolean },
|
|
913
|
-
dialogClass: { default: "" }
|
|
913
|
+
dialogClass: { default: "" },
|
|
914
|
+
modalClass: { default: "" }
|
|
914
915
|
},
|
|
915
916
|
emits: ["update:visiable"],
|
|
916
917
|
setup(e, { emit: t }) {
|
|
@@ -921,7 +922,7 @@ const qt = Symbol(), Jt = /* @__PURE__ */ q({
|
|
|
921
922
|
default: Be(() => [
|
|
922
923
|
e.visiable ? ve((b(), U("div", {
|
|
923
924
|
key: 0,
|
|
924
|
-
class: oe(e.hiddenOverlay ? "no-overlay-modal" : "lzc-modal")
|
|
925
|
+
class: oe([e.hiddenOverlay ? "no-overlay-modal" : "lzc-modal", e.modalClass])
|
|
925
926
|
}, [
|
|
926
927
|
O("div", {
|
|
927
928
|
onMousedown: s[0] || (s[0] = he(() => {
|
|
@@ -943,7 +944,7 @@ const ee = (e, t) => {
|
|
|
943
944
|
for (const [o, l] of t)
|
|
944
945
|
n[o] = l;
|
|
945
946
|
return n;
|
|
946
|
-
}, en = /* @__PURE__ */ ee(Jt, [["__scopeId", "data-v-
|
|
947
|
+
}, en = /* @__PURE__ */ ee(Jt, [["__scopeId", "data-v-783a5618"]]);
|
|
947
948
|
function zo(e) {
|
|
948
949
|
function t(n, o) {
|
|
949
950
|
const l = document.createElement("div"), s = {
|
package/dist/index.umd.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
z-index: 99999;
|
|
4
4
|
background-color: rgb(191 219 254);
|
|
5
5
|
opacity: 0.5;
|
|
6
|
-
}`,{id:"styletag_lzc_dragselect",manual:!0}),c=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:M.value})}});function h(d){d.button===0&&a(d.x,d.y)}function m(d){i(d.x,d.y)}function u(d){d.composedPath().some(j=>j?.getAttribute?.(t.attribute))||r(),f()}function N(d){try{if(!n.init(d))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(c),n.containerEl.value),g(),n.containerEl.value?.addEventListener("scroll",s),n.containerEl.value?.addEventListener("mousedown",h),window.addEventListener("mousemove",m),window.addEventListener("mouseup",u)}catch(y){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",y)}}function p(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",s),n.containerEl.value?.removeEventListener("mousedown",h),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",u)}return{init:N,unMount:p}}function ut(t,n,o=600){const l=De({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:a,dragStart:i,dragMove:f,dragEnd:r}=l;let M;function g(){clearTimeout(M)}function c(p){g(),p.composedPath().some(y=>!!y?.getAttribute?.(t.attribute))&&(M=setTimeout(()=>{const{clientX:y,clientY:j}=p.targetTouches[0];i(y,j),n?.(),f(y,j,()=>p.preventDefault()),p.preventDefault()},o))}function h(p){g();const{clientX:d,clientY:y}=p.targetTouches[0];f(d,y,()=>p.preventDefault())}function m(){g(),r()}function u(p){try{if(!l.init(p))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",a),l.containerEl.value?.addEventListener("touchstart",c),l.containerEl.value?.addEventListener("touchmove",h),window.addEventListener("touchcancel",m),window.addEventListener("touchend",m)}catch(d){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",d)}}function N(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",a),l.containerEl.value?.removeEventListener("touchstart",c),l.containerEl.value?.removeEventListener("touchmove",h),window.removeEventListener("touchcancel",m),window.removeEventListener("touchEnd",m)}return{init:u,unMount:N}}const Se=Symbol(),dt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},hiddenOverlay:{type:Boolean},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Se,()=>n("update:visiable",!1)),(s,a)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.hiddenOverlay?"no-overlay-modal":"lzc-modal")},[e.createElementVNode("div",{onMousedown:a[0]||(a[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)],2)),[[e.unref(Ie),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),Qn="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,s]of n)o[l]=s;return o},ft=V(dt,[["__scopeId","data-v-
|
|
6
|
+
}`,{id:"styletag_lzc_dragselect",manual:!0}),c=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:M.value})}});function h(d){d.button===0&&a(d.x,d.y)}function m(d){i(d.x,d.y)}function u(d){d.composedPath().some(j=>j?.getAttribute?.(t.attribute))||r(),f()}function N(d){try{if(!n.init(d))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(c),n.containerEl.value),g(),n.containerEl.value?.addEventListener("scroll",s),n.containerEl.value?.addEventListener("mousedown",h),window.addEventListener("mousemove",m),window.addEventListener("mouseup",u)}catch(y){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",y)}}function p(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",s),n.containerEl.value?.removeEventListener("mousedown",h),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",u)}return{init:N,unMount:p}}function ut(t,n,o=600){const l=De({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:a,dragStart:i,dragMove:f,dragEnd:r}=l;let M;function g(){clearTimeout(M)}function c(p){g(),p.composedPath().some(y=>!!y?.getAttribute?.(t.attribute))&&(M=setTimeout(()=>{const{clientX:y,clientY:j}=p.targetTouches[0];i(y,j),n?.(),f(y,j,()=>p.preventDefault()),p.preventDefault()},o))}function h(p){g();const{clientX:d,clientY:y}=p.targetTouches[0];f(d,y,()=>p.preventDefault())}function m(){g(),r()}function u(p){try{if(!l.init(p))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",a),l.containerEl.value?.addEventListener("touchstart",c),l.containerEl.value?.addEventListener("touchmove",h),window.addEventListener("touchcancel",m),window.addEventListener("touchend",m)}catch(d){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",d)}}function N(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",a),l.containerEl.value?.removeEventListener("touchstart",c),l.containerEl.value?.removeEventListener("touchmove",h),window.removeEventListener("touchcancel",m),window.removeEventListener("touchEnd",m)}return{init:u,unMount:N}}const Se=Symbol(),dt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},hiddenOverlay:{type:Boolean},dialogClass:{default:""},modalClass:{default:""}},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Se,()=>n("update:visiable",!1)),(s,a)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([t.hiddenOverlay?"no-overlay-modal":"lzc-modal",t.modalClass])},[e.createElementVNode("div",{onMousedown:a[0]||(a[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)],2)),[[e.unref(Ie),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),Qn="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,s]of n)o[l]=s;return o},ft=V(dt,[["__scopeId","data-v-783a5618"]]);function Mt(t){function n(o,l){const s=document.createElement("div"),a={setup(){return()=>e.h(ft,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(a),s),{close:()=>s?.remove()}}return{create:n}}function Te({component:t,componentProps:n,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,a=`${o}ms`;return pe(`@keyframes lzcDelayLoad {
|
|
7
7
|
to {
|
|
8
8
|
opacity: 1;
|
|
9
9
|
}
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.no-overlay-modal[data-v-
|
|
1
|
+
.no-overlay-modal[data-v-783a5618]{position:absolute;inset:0;display:flex;z-index:999}.lzc-modal[data-v-783a5618]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-783a5618]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-92a1804d]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-92a1804d]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--4e4a9ce4);height:var(--e56fe5c2);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-92a1804d .7s linear infinite}@keyframes ldio-mm5gwljcryb-92a1804d{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-92a1804d]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-3c54972f]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-3c54972f]{opacity:0;animation:loading-spin-3c54972f .8s var(--b1cf73a8) linear infinite}@keyframes loading-spin-3c54972f{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-0947d1e3]{display:flex;position:fixed;top:0;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-0947d1e3]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]>:not([hidden])~:not([hidden]){margin-top:4px;margin-bottom:0}.lzc-loading-toast-close[data-v-0947d1e3]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-0947d1e3]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-0947d1e3 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-0947d1e3]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;box-sizing:border-box;white-space:pre-wrap;line-height:26px}@keyframes lzc-spin-0947d1e3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lzc-fade-in{0%{opacity:0}to{opacity:1}}.lzc-animate-fade-in{animation:lzc-fade-in 1s linear 1}.lzc-animate-duration-300{animation-duration:.3s}@keyframes lzc-fade-out{0%{opacity:1}to{opacity:0}}.lzc-animate-fade-out{animation:lzc-fade-out 1s linear 1}@keyframes slide-25d39b90{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-25d39b90]{animation:slide-25d39b90 .3s linear}.v-leave-active[data-v-405c22cf]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-405c22cf]{opacity:0}.slider-wrapper[data-v-405c22cf]{position:absolute;right:0;touch-action:none}.default-slider[data-v-405c22cf]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-df5da876]{position:relative}.pull-refresh-box[data-v-df5da876]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-df5da876]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-df5da876]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-df5da876 3s infinite linear forwards}@keyframes boxs-df5da876{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-df5da876]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-df5da876 3s infinite linear forwards}@keyframes pr1A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-df5da876]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-df5da876 3s infinite linear forwards}@keyframes pr2A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-df5da876]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-df5da876]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-df5da876]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-df5da876]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-df5da876]{opacity:1}.left-item[data-v-df5da876]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-df5da876]{color:#e93b3d}.virtualList[data-v-dfe60586]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-dfe60586]{width:100%;height:100%;position:relative}@keyframes loading-rotate-33519afd{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-33519afd]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-33519afd var(--312487ac) linear infinite}.v-enter-active[data-v-774cb54a],.v-leave-active[data-v-774cb54a]{transition:opacity .6s ease}.v-enter-from[data-v-774cb54a],.v-leave-to[data-v-774cb54a]{opacity:0}.tip[data-v-774cb54a]{font-size:14px;color:#aeaeae}.tip-wrap[data-v-774cb54a]{display:flex;flex-direction:column;align-items:center;justify-content:center}.no-support-icon[data-v-774cb54a]{width:162px;height:134px}.bad-image[data-v-774cb54a]{width:92px;height:92px}.src-class[data-v-774cb54a]{width:unset!important;height:unset!important;max-width:none!important;max-height:none!important;transform:scale(0);opacity:.00001}@keyframes fadeIn-774cb54a{0%{opacity:0}to{opacity:1}}.showing[data-v-774cb54a]{animation:fadeIn-774cb54a .35s linear}img[data-v-774cb54a]{user-select:none;pointer-events:none}img[data-v-5a7af152]{pointer-events:none}.icon-wrap[data-v-5a7af152]{display:flex;align-items:center;justify-content:center}.icon[data-v-5a7af152]{width:100%;height:100%}
|
|
@@ -3,6 +3,7 @@ export interface DialogProps {
|
|
|
3
3
|
closeOnClickOverlay?: boolean;
|
|
4
4
|
hiddenOverlay?: boolean;
|
|
5
5
|
dialogClass?: string | string[] | object;
|
|
6
|
+
modalClass?: string | string[] | object;
|
|
6
7
|
}
|
|
7
8
|
declare const _default: {
|
|
8
9
|
new (...args: any[]): {
|
|
@@ -12,13 +13,15 @@ declare const _default: {
|
|
|
12
13
|
visiable: boolean;
|
|
13
14
|
closeOnClickOverlay: boolean;
|
|
14
15
|
dialogClass: string | object | string[];
|
|
16
|
+
modalClass: string | object | string[];
|
|
15
17
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DialogProps>, {
|
|
16
18
|
visiable: boolean;
|
|
17
19
|
closeOnClickOverlay: boolean;
|
|
18
20
|
dialogClass: string;
|
|
21
|
+
modalClass: string;
|
|
19
22
|
}>>> & {
|
|
20
23
|
"onUpdate:visiable"?: ((...args: any[]) => any) | undefined;
|
|
21
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visiable" | "closeOnClickOverlay" | "dialogClass">;
|
|
24
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visiable" | "closeOnClickOverlay" | "dialogClass" | "modalClass">;
|
|
22
25
|
$attrs: {
|
|
23
26
|
[x: string]: unknown;
|
|
24
27
|
};
|
|
@@ -36,12 +39,14 @@ declare const _default: {
|
|
|
36
39
|
visiable: boolean;
|
|
37
40
|
closeOnClickOverlay: boolean;
|
|
38
41
|
dialogClass: string;
|
|
42
|
+
modalClass: string;
|
|
39
43
|
}>>> & {
|
|
40
44
|
"onUpdate:visiable"?: ((...args: any[]) => any) | undefined;
|
|
41
45
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visiable"[], string, {
|
|
42
46
|
visiable: boolean;
|
|
43
47
|
closeOnClickOverlay: boolean;
|
|
44
48
|
dialogClass: string | object | string[];
|
|
49
|
+
modalClass: string | object | string[];
|
|
45
50
|
}> & {
|
|
46
51
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
47
52
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -66,6 +71,7 @@ declare const _default: {
|
|
|
66
71
|
visiable: boolean;
|
|
67
72
|
closeOnClickOverlay: boolean;
|
|
68
73
|
dialogClass: string;
|
|
74
|
+
modalClass: string;
|
|
69
75
|
}>>> & {
|
|
70
76
|
"onUpdate:visiable"?: ((...args: any[]) => any) | undefined;
|
|
71
77
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
@@ -76,12 +82,14 @@ declare const _default: {
|
|
|
76
82
|
visiable: boolean;
|
|
77
83
|
closeOnClickOverlay: boolean;
|
|
78
84
|
dialogClass: string;
|
|
85
|
+
modalClass: string;
|
|
79
86
|
}>>> & {
|
|
80
87
|
"onUpdate:visiable"?: ((...args: any[]) => any) | undefined;
|
|
81
88
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visiable"[], "update:visiable", {
|
|
82
89
|
visiable: boolean;
|
|
83
90
|
closeOnClickOverlay: boolean;
|
|
84
91
|
dialogClass: string | object | string[];
|
|
92
|
+
modalClass: string | object | string[];
|
|
85
93
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
86
94
|
$slots: {
|
|
87
95
|
default: (_: {}) => any;
|
|
@@ -12,9 +12,9 @@ export interface UseDelayAsyncOptions extends LoadingToastOptions {
|
|
|
12
12
|
/** 当 error 错误时是否打印错误日志,默认开启 */
|
|
13
13
|
printErrorLog?: boolean;
|
|
14
14
|
/** 当execute函数执行完成后执行该回调函数 */
|
|
15
|
-
onSuccess?: ((res
|
|
15
|
+
onSuccess?: (() => void) | (() => Promise<void>) | ((res: any) => void) | ((res: any) => Promise<void>) | ((res: any, params: any[]) => void) | ((res: any, params: any[]) => Promise<void>);
|
|
16
16
|
/** 抛出捕获到的错误 */
|
|
17
|
-
onError?: ((err
|
|
17
|
+
onError?: (() => void) | (() => Promise<void>) | ((err: any) => void) | ((err: any) => Promise<void>) | ((err: any, params: any[]) => void) | ((err: any, params: any[]) => Promise<void>);
|
|
18
18
|
}
|
|
19
19
|
export declare type UseDelayAsyncExpose = {
|
|
20
20
|
/** 是否在执行中 */
|