@lazycatcloud/lzc-toolkit 0.0.108 → 0.0.110

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.umd.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(D,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(D=typeof globalThis<"u"?globalThis:D||self,e(D.ui={},D.Vue))})(this,function(D,e){"use strict";const ge={created(n,t){let o,l;function s(a){o=a.clientX,l=a.clientY}function i(a){if(o===void 0)return;const r=a.clientX,u=a.clientY,g=Math.abs(r-o),M=Math.abs(u-l);g>5||M>5||t.value&&t.value(a)}n.__mouse_down__=s,n.__mouse_up__=i,n.addEventListener("mousedown",s),n.addEventListener("mouseup",i)},unmounted(n){n.removeEventListener("mousedown",n.__mouse_down__),n.removeEventListener("mouseup",n.__mouse_up__)}},Se={created(n,t){const{fn:o,ms:l=1500}=t.value;let s=null;function i(a){s||(o(a),s=setTimeout(()=>{s=null},l))}n.addEventListener("click",i)}};var ye;const F=typeof window<"u",me=n=>typeof n=="function";F&&((ye=window?.navigator)==null?void 0:ye.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K(n){return typeof n=="function"?n():e.unref(n)}function Ne(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function _e(n,t={}){let o,l;return i=>{const a=K(n),r=K(t.maxWait);if(o&&clearTimeout(o),a<=0||r!==void 0&&r<=0)return l&&(clearTimeout(l),l=null),i();r&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,i()},r)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,i()},a)}}function ke(n,t=!0,o=!0){let l=0,s,i=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return u=>{const g=K(n),M=Date.now()-l;if(a(),g<=0)return l=Date.now(),u();M>g&&(o||!i)?(l=Date.now(),u()):t&&(s=setTimeout(()=>{l=Date.now(),i=!0,a(),u()},g)),!o&&!s&&(s=setTimeout(()=>i=!0,g)),i=!1}}function be(n){return n}function Qe(n,t){let o,l,s;const i=e.ref(!0),a=()=>{i.value=!0,s()};e.watch(n,a,{flush:"sync"});const r=me(t)?t:t.get,u=me(t)?void 0:t.set,g=e.customRef((M,d)=>(l=M,s=d,{get(){return i.value&&(o=r(),i.value=!1),l(),o},set(y){u?.(y)}}));return Object.isExtensible(g)&&(g.trigger=a),g}function De(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function he(n,t=200,o={}){return Ne(_e(t,o),n)}function pe(n,t=200,o=!1,l=!0){return Ne(ke(t,o,l),n)}function Te(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function we(n){var t;const o=K(n);return(t=o?.$el)!=null?t:o}const Be=F?window:void 0,Ue=F?window.document:void 0;F&&window.navigator,F&&window.location;function Ye(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),Te(l,t),o}const X=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__";X[J]=X[J]||{},X[J];function $e(){const n=e.getCurrentInstance(),t=Qe(()=>null,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var Ie=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,He=(n,t)=>{var o={};for(var l in n)Pe.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&Ie)for(var l of Ie(n))t.indexOf(l)<0&&Re.call(n,l)&&(o[l]=n[l]);return o};function Ve(n,t,o={}){const l=o,{window:s=Be}=l,i=He(l,["window"]);let a;const r=Ye(()=>s&&"ResizeObserver"in s),u=()=>{a&&(a.disconnect(),a=void 0)},g=e.watch(()=>we(n),d=>{u(),r.value&&s&&d&&(a=new ResizeObserver(t),a.observe(d,i))},{immediate:!0,flush:"post"}),M=()=>{u(),g()};return De(M),{isSupported:r,stop:M}}function Fe(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,s=e.ref(t.width),i=e.ref(t.height);return Ve(n,([a])=>{const r=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;r?(s.value=r.reduce((u,{inlineSize:g})=>u+g,0),i.value=r.reduce((u,{blockSize:g})=>u+g,0)):(s.value=a.contentRect.width,i.value=a.contentRect.height)},o),e.watch(()=>we(n),a=>{s.value=a?t.width:0,i.value=a?t.height:0}),{width:s,height:i}}var Ee;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(Ee||(Ee={}));let We=0;function q(n,t={}){const o=e.ref(!1),{document:l=Ue,immediate:s=!0,manual:i=!1,id:a=`vueuse_styletag_${++We}`}=t,r=e.ref(n);let u=()=>{};const g=()=>{if(!l)return;const d=l.getElementById(a)||l.createElement("style");d.type="text/css",d.id=a,t.media&&(d.media=t.media),l.head.appendChild(d),!o.value&&(u=e.watch(r,y=>{d.innerText=y},{immediate:!0}),o.value=!0)},M=()=>{!l||!o.value||(u(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return s&&!i&&Te(g),i||De(M),{id:a,css:r,unload:M,load:g,isLoaded:e.readonly(o)}}var Ke=Object.defineProperty,ze=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,je=(n,t,o)=>t in n?Ke(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,Xe=(n,t)=>{for(var o in t||(t={}))Ze.call(t,o)&&je(n,o,t[o]);if(ze)for(var o of ze(t))Ge.call(t,o)&&je(n,o,t[o]);return n};Xe({linear:be},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function Le(n,t){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=t,i=e.ref(null),a=Fe(i),r=e.ref(!0),u=he(U,100);let g;const M=e.shallowRef(n),d=e.ref(0),y=e.ref({start:0,end:10}),N=e.ref({start:0,end:s});let f=0;const I=e.ref([]),c=e.computed(()=>{let{sum:E,height:T}={sum:0,height:0};return M.value.map((O,x)=>(typeof l=="number"?T=l:T=l(x),E+=T,{height:T,sum:E}))}),m=e.computed(()=>$(y.value.start)),w=e.computed(()=>typeof l=="number"?c.value.length*l:c.value[c.value.length-1]?.sum||0),S=e.computed(()=>{const{start:E,end:T}=N.value;return I.value.slice(E,T)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(g)),e.watch(M,()=>{(a.width.value||a.height.value)&&v()},{deep:!0}),e.watch([a.width,a.height],([E,T])=>{(E||T)&&v()},{deep:!0}),e.watch(d,()=>{B(),u()});function B(){r.value=!1}function U(){r.value=!0,o?.()}function v(){cancelAnimationFrame(g),g=requestAnimationFrame(z)}function z(){if(i.value){d.value=i.value.scrollTop;let E=C(d.value);f=Y(E);let T=Math.max(0,E-s),O=Math.min(E+f+s,M.value.length);y.value={start:T,end:O},I.value=M.value.slice(T,O).map((x,L)=>({data:x,index:L+T})),N.value.start=E-T,N.value.end=N.value.start+f}}function C(E){let T=0,O=c.value.length-1,x=-1;for(;T<=O;){const L=Math.floor((T+O)/2);c.value[L].sum>=E?(x=L,O=L-1):T=L+1}return Math.max(0,x)}function Y(E){let T=0,O=0;for(let x=E;x<c.value.length&&(T++,O+=c.value[x].height,!(O>=a.height.value));x++);return T}function $(E){if(typeof l=="number")return E*l;let T=c.value[E];return T?T.sum-T.height:0}function k(E){return c.value[E]||{sum:0,height:0}}function R(E){if(i.value){const T=k(E);i.value.scrollTop=T.sum-T.height,z()}}const W=e.computed(()=>({style:{width:"100%",height:`${w.value}px`,pointerEvents:r.value?void 0:"none"}})),H=e.computed(()=>({style:{transform:`translate3d(0, ${m.value}px, 0)`,"will-change":"transform"}})),P={overflowY:"auto"};return{list:I,visiableList:S,getItemHeightData:k,getoffsetTopIndex:C,totalHeight:w,clientHeight:a.height,scrollTo:R,scrollTop:d,isScrollEnd:r,containerProps:{ref:i,onScroll:()=>{v()},style:P},wrapperProps:W,innerProps:H}}const ee=Symbol(),te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),Z=Symbol(),re=Symbol();function Je(n,t){const o=Object.keys(n),l=Object.keys(t);if(o.length!==l.length)return!1;for(let s of o){const i=n[s],a=t[s];if(i instanceof Date){if(i.getTime()!==a.getTime())return!1;continue}if(n[s]!==t[s])return!1}return!0}function qe(n,t,o){const l=n.reduce((M,d)=>(M.set(d[o],d),M),new Map),s=[],i=[],a=[],r=new Set,u=2500,g=Math.ceil(t.length/u);for(let M=0;M<g;M++){const d=M*u,y=d+u,N=t.slice(d,y);for(const f of N){const I=f[o],c=l.get(I);!c&&f?s.push(f):c&&!f?i.push(c):c&&f&&(Je(c,f)||a.push(f)),r.add(I),l.delete(I)}}for(const[M,d]of l)r.has(M)||i.push(d);return{added:s,removed:i,modified:a}}function et(){const{voidFn:n,boolFn:t,boolRef:o,numberRef:l,arrayRef:s}={voidFn:I=>{},boolFn:I=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},i=e.inject(oe,s),a=e.inject(ne,t),r=e.inject(ie,o),u=e.inject(te,n),g=e.inject(ee,n),M=e.inject(le,n),d=e.inject(se,n),y=e.inject(ae,n),N=e.inject(Z,n),f=e.inject(re,l);return{selected:i,isSelected:a,isAllSelected:r,toggle:u,toggleAll:g,select:M,selectAll:d,unselect:y,unselectAll:N,selectedCount:f}}function tt(n,t){const o=e.ref(!1),l=e.ref(new Set),s=e.ref(new Map);e.watch(n,c=>{s.value=c.reduce((m,w)=>(m.set(w[t],w),m),new Map)},{deep:!0,immediate:!0});const i=e.computed(()=>{let c=[];if(o.value!=null)o.value&&(c=Array.from(s.value.values()));else if(l.value.size){let m;l.value.forEach(w=>{m=s.value.get(w),m&&c.push(m)})}return c}),a=e.computed(()=>{let c=0;return o.value!=null?o.value&&(c=s.value.size):c=l.value.size,c}),r=e.computed(()=>{let c;if(o.value!=null)c=o.value;else{const m=l.value.size,w=s.value.size;c=m==w}return c});function u(){o.value=!0}function g(){o.value=!1}function M(c){N(()=>{c.forEach(m=>{l.value.add(m[t])})})}function d(c){N(()=>{c.forEach(m=>{l.value.delete(m[t])})})}function y(c){return o.value!=null?o.value:l.value.has(c[t])}function N(c){o.value!=null&&(o.value?l.value=new Set(Array.from(s.value.keys())):l.value=new Set),c(),l.value.size==0?o.value=!1:l.value.size==s.value.size?o.value=!0:o.value=null}function f(c){N(()=>{c.forEach(m=>{y(m)?l.value.delete(m[t]):l.value.add(m[t])})})}function I(){const{value:c}=r;c?g():u()}return e.provide(ee,I),e.provide(te,f),e.provide(ne,y),e.provide(oe,i),e.provide(le,M),e.provide(se,u),e.provide(ae,d),e.provide(ie,r),e.provide(Z,g),e.provide(Z,g),e.provide(re,a),{selected:i,select:M,selectAll:u,unselect:d,unselectAll:g,toggle:f,toggleAll:I,isSelected:y,isAllSelected:r,selectedCount:a}}function ce(n){return()=>{console.debug(`\u9ED8\u8BA4${n}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ue({attribute:n,selectWay:t="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=ce("\u9009\u62E9"),unselect:i=ce("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ce("\u53D6\u6D88\u5168\u9009")}=l();let r={};const u=e.computed(()=>pe(t==="colum"?Xt:Jt,50)),g=new Set,M=e.ref(!0),d=e.ref(),y=e.ref(!1),N=e.ref({x:0,y:0}),f=e.ref({x:0,y:0,scrollTop:0}),I=new ResizeObserver(h=>c.value=h[0].target.getBoundingClientRect()),c=e.ref({}),m=e.ref({top:0,height:0,sync(h=!1){m.value.top=d.value?.scrollTop||0,h&&(m.value.height=d.value?.scrollHeight||0)}}),w=e.computed(()=>y.value?{left:Math.min(N.value.x,f.value.x)-c.value.left,top:Math.min(N.value.y,f.value.y)-c.value.top,width:Math.abs(N.value.x-f.value.x),height:Math.abs(N.value.y-f.value.y)}:{left:0,top:0,width:0,height:0}),{margin:S=50,startSpeed:B=30,maxSpeed:U=30}=o;let v;const z=S,C=B,Y=U,$=h=>h**1;let k=0;function R(h){if(cancelAnimationFrame(v),k=W(h),k=Math.max(Math.min(k,Y),-Y),k!==0){const p=d.value;if(!p||!y.value)return;const _=m.value.height-c.value.height;let j=m.value.top+Number(k);j=Math.min(Math.max(0,j),_),p.scrollTop=j,P(),v=requestAnimationFrame(()=>R(h))}}function W(h){if(d.value){const _=c.value,j=_.bottom-h;if(j<z)return C*$(1-j/z);const b=h-_.top;if(b<z)return-C*$(1-b/z)}return 0}function H(h){const p={...w.value,right:0,bottom:0};return p.left+=c.value.left,p.top+=c.value.top-m.value.top,p.right=p.width+p.left,p.bottom=p.height+p.top,p.left<h.right&&p.right>h.left&&p.top<h.bottom&&p.bottom>h.top}function P(){m.value.sync();const{top:h,height:p}=m.value;f.value.y=Math.min(p+c.value.top,f.value.y+h-f.value.scrollTop),f.value.scrollTop=h}function E(h,p,_="dynamic-styles"){let j=document.getElementById(_);j||(j=document.createElement("style"),j.id=_,document.head.appendChild(j));const b=j.sheet.cssRules,V=b.length,en=`${h} { ${p} }`;for(let fe=0;fe<V;fe++){const xe=b[fe];if(xe.selectorText===h&&xe.style.cssText===p)return}j.sheet.insertRule(en,V)}function T(h,p){M.value=!0,y.value=!0,m.value.height?m.value.sync():m.value.sync(!0),N.value.x=h,N.value.y=p+m.value.top,f.value.x=N.value.x,f.value.y=N.value.y,d.value?.classList.add("disable-scroll-behavior"),g.clear()}function O(h,p,_){!y.value||(M.value&&t==="colum"&&!A()&&(a(),M.value=!1),_?.(),R(p),f.value.x=Math.max(h,c.value.left),f.value.y=Math.min(p+m.value.top,m.value.height+c.value.top),f.value.scrollTop=m.value.top,u.value())}function x(){y.value=!1,d.value?.classList.remove("disable-scroll-behavior")}function L(){!y.value||(k||P(),u.value())}function A(){if(!y.value)return!1;const{width:h,height:p}=w.value;return!(Math.max(h,p)>5)}function Me(){A()&&a()}function Xt(){A()||d.value?.querySelectorAll(`[${n}]`).forEach(h=>{r[`${n}`]=h.getAttribute(`${n}`),H(h.getBoundingClientRect())?s([r]):i([r])})}function Jt(){const h=[];let p=null,_=0;d.value?.querySelectorAll(`[${n}]`).forEach((j,b)=>{const V=j.getAttribute(`${n}`);h.push(V),H(j.getBoundingClientRect())?(p===null&&(p=b),p=Math.min(p,b),_=Math.max(_,b)):(r[`${n}`]=V,g.has(V)&&i([r]))});for(let j=p;j<_+1;j++)r[`${n}`]=h[j],s([r]),g.add(h[j])}function qt(h){return!h?.value||(d.value=h.value,!d?.value)?!1:(I.observe(d.value),E(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:qt,dragStart:T,dragMove:O,dragEnd:x,onScroll:L,isSingleClick:A,cancelSelectAllBySingleClick:Me,selectFn:u,selectRange:w,isPressing:y,containerEl:d,observer:I}}function nt(n){const t=ue(n),{observer:o,selectRange:l}=t,{onScroll:s,dragStart:i,dragMove:a,dragEnd:r,cancelSelectAllBySingleClick:u}=t,g=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:M}=q(`.drag-select-box {
1
+ (function(D,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(D=typeof globalThis<"u"?globalThis:D||self,e(D.ui={},D.Vue))})(this,function(D,e){"use strict";const ge={created(n,t){let o,l;function s(a){o=a.clientX,l=a.clientY}function i(a){if(o===void 0)return;const c=a.clientX,u=a.clientY,g=Math.abs(c-o),M=Math.abs(u-l);g>5||M>5||t.value&&t.value(a)}n.__mouse_down__=s,n.__mouse_up__=i,n.addEventListener("mousedown",s),n.addEventListener("mouseup",i)},unmounted(n){n.removeEventListener("mousedown",n.__mouse_down__),n.removeEventListener("mouseup",n.__mouse_up__)}},Se={created(n,t){const{fn:o,ms:l=1500}=t.value;let s=null;function i(a){s||(o(a),s=setTimeout(()=>{s=null},l))}n.addEventListener("click",i)}};var ye;const H=typeof window<"u",me=n=>typeof n=="function";H&&((ye=window?.navigator)==null?void 0:ye.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Z(n){return typeof n=="function"?n():e.unref(n)}function Ne(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function _e(n,t={}){let o,l;return i=>{const a=Z(n),c=Z(t.maxWait);if(o&&clearTimeout(o),a<=0||c!==void 0&&c<=0)return l&&(clearTimeout(l),l=null),i();c&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,i()},c)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,i()},a)}}function ke(n,t=!0,o=!0){let l=0,s,i=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return u=>{const g=Z(n),M=Date.now()-l;if(a(),g<=0)return l=Date.now(),u();M>g&&(o||!i)?(l=Date.now(),u()):t&&(s=setTimeout(()=>{l=Date.now(),i=!0,a(),u()},g)),!o&&!s&&(s=setTimeout(()=>i=!0,g)),i=!1}}function be(n){return n}function Qe(n,t){let o,l,s;const i=e.ref(!0),a=()=>{i.value=!0,s()};e.watch(n,a,{flush:"sync"});const c=me(t)?t:t.get,u=me(t)?void 0:t.set,g=e.customRef((M,d)=>(l=M,s=d,{get(){return i.value&&(o=c(),i.value=!1),l(),o},set(N){u?.(N)}}));return Object.isExtensible(g)&&(g.trigger=a),g}function De(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function he(n,t=200,o={}){return Ne(_e(t,o),n)}function pe(n,t=200,o=!1,l=!0){return Ne(ke(t,o,l),n)}function Te(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function we(n){var t;const o=Z(n);return(t=o?.$el)!=null?t:o}const Be=H?window:void 0,Ue=H?window.document:void 0;H&&window.navigator,H&&window.location;function Ye(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),Te(l,t),o}const X=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},q="__vueuse_ssr_handlers__";X[q]=X[q]||{},X[q];function Pe(){const n=e.getCurrentInstance(),t=Qe(()=>null,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var Ee=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Ve=(n,t)=>{var o={};for(var l in n)Re.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&Ee)for(var l of Ee(n))t.indexOf(l)<0&&$e.call(n,l)&&(o[l]=n[l]);return o};function Fe(n,t,o={}){const l=o,{window:s=Be}=l,i=Ve(l,["window"]);let a;const c=Ye(()=>s&&"ResizeObserver"in s),u=()=>{a&&(a.disconnect(),a=void 0)},g=e.watch(()=>we(n),d=>{u(),c.value&&s&&d&&(a=new ResizeObserver(t),a.observe(d,i))},{immediate:!0,flush:"post"}),M=()=>{u(),g()};return De(M),{isSupported:c,stop:M}}function He(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,s=e.ref(t.width),i=e.ref(t.height);return Fe(n,([a])=>{const c=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;c?(s.value=c.reduce((u,{inlineSize:g})=>u+g,0),i.value=c.reduce((u,{blockSize:g})=>u+g,0)):(s.value=a.contentRect.width,i.value=a.contentRect.height)},o),e.watch(()=>we(n),a=>{s.value=a?t.width:0,i.value=a?t.height:0}),{width:s,height:i}}var Ie;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(Ie||(Ie={}));let We=0;function J(n,t={}){const o=e.ref(!1),{document:l=Ue,immediate:s=!0,manual:i=!1,id:a=`vueuse_styletag_${++We}`}=t,c=e.ref(n);let u=()=>{};const g=()=>{if(!l)return;const d=l.getElementById(a)||l.createElement("style");d.type="text/css",d.id=a,t.media&&(d.media=t.media),l.head.appendChild(d),!o.value&&(u=e.watch(c,N=>{d.innerText=N},{immediate:!0}),o.value=!0)},M=()=>{!l||!o.value||(u(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return s&&!i&&Te(g),i||De(M),{id:a,css:c,unload:M,load:g,isLoaded:e.readonly(o)}}var Ze=Object.defineProperty,ze=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,je=(n,t,o)=>t in n?Ze(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,Xe=(n,t)=>{for(var o in t||(t={}))Ke.call(t,o)&&je(n,o,t[o]);if(ze)for(var o of ze(t))Ge.call(t,o)&&je(n,o,t[o]);return n};Xe({linear:be},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function Le(n,t){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=t,i=e.ref(null),a=He(i),c=e.ref(!0),u=he(U,100);let g;const M=e.shallowRef(n),d=e.ref(0),N=e.ref({start:0,end:10}),y=e.ref({start:0,end:s});let f=0;const E=e.ref([]),r=e.computed(()=>{let{sum:I,height:T}={sum:0,height:0};return M.value.map((x,O)=>(typeof l=="number"?T=l:T=l(O),I+=T,{height:T,sum:I}))}),m=e.computed(()=>P(N.value.start)),w=e.computed(()=>typeof l=="number"?r.value.length*l:r.value[r.value.length-1]?.sum||0),S=e.computed(()=>{const{start:I,end:T}=y.value;return E.value.slice(I,T)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(g)),e.watch(M,()=>{(a.width.value||a.height.value)&&A()},{deep:!0}),e.watch([a.width,a.height],([I,T])=>{(I||T)&&A()},{deep:!0}),e.watch(d,()=>{B(),u()});function B(){c.value=!1}function U(){c.value=!0,o?.()}function A(){cancelAnimationFrame(g),g=requestAnimationFrame(z)}function z(){if(i.value){d.value=i.value.scrollTop;let I=C(d.value);f=Y(I);let T=Math.max(0,I-s),x=Math.min(I+f+s,M.value.length);N.value={start:T,end:x},E.value=M.value.slice(T,x).map((O,L)=>({data:O,index:L+T})),y.value.start=I-T,y.value.end=y.value.start+f}}function C(I){let T=0,x=r.value.length-1,O=-1;for(;T<=x;){const L=Math.floor((T+x)/2);r.value[L].sum>=I?(O=L,x=L-1):T=L+1}return Math.max(0,O)}function Y(I){let T=0,x=0;for(let O=I;O<r.value.length&&(T++,x+=r.value[O].height,!(x>=a.height.value));O++);return T}function P(I){if(typeof l=="number")return I*l;let T=r.value[I];return T?T.sum-T.height:0}function k(I){return r.value[I]||{sum:0,height:0}}function $(I){if(i.value){const T=k(I);i.value.scrollTop=T.sum-T.height,z()}}const W=e.computed(()=>({style:{width:"100%",height:`${w.value}px`,pointerEvents:c.value?void 0:"none"}})),V=e.computed(()=>({style:{transform:`translate3d(0, ${m.value}px, 0)`,"will-change":"transform"}})),R={overflowY:"auto"};return{list:E,visiableList:S,getItemHeightData:k,getoffsetTopIndex:C,totalHeight:w,clientHeight:a.height,scrollTo:$,scrollTop:d,isScrollEnd:c,containerProps:{ref:i,onScroll:()=>{A()},style:R},wrapperProps:W,innerProps:V}}const ee=Symbol(),te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),K=Symbol(),ce=Symbol();function qe(n,t){const o=Object.keys(n),l=Object.keys(t);if(o.length!==l.length)return!1;for(let s of o){const i=n[s],a=t[s];if(i instanceof Date){if(i.getTime()!==a.getTime())return!1;continue}if(n[s]!==t[s])return!1}return!0}function Je(n,t,o){const l=n.reduce((M,d)=>(M.set(d[o],d),M),new Map),s=[],i=[],a=[],c=new Set,u=2500,g=Math.ceil(t.length/u);for(let M=0;M<g;M++){const d=M*u,N=d+u,y=t.slice(d,N);for(const f of y){const E=f[o],r=l.get(E);!r&&f?s.push(f):r&&!f?i.push(r):r&&f&&(qe(r,f)||a.push(f)),c.add(E),l.delete(E)}}for(const[M,d]of l)c.has(M)||i.push(d);return{added:s,removed:i,modified:a}}function et(){const{voidFn:n,boolFn:t,boolRef:o,numberRef:l,arrayRef:s}={voidFn:E=>{},boolFn:E=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},i=e.inject(oe,s),a=e.inject(ne,t),c=e.inject(ie,o),u=e.inject(te,n),g=e.inject(ee,n),M=e.inject(le,n),d=e.inject(se,n),N=e.inject(ae,n),y=e.inject(K,n),f=e.inject(ce,l);return{selected:i,isSelected:a,isAllSelected:c,toggle:u,toggleAll:g,select:M,selectAll:d,unselect:N,unselectAll:y,selectedCount:f}}function tt(n,t){const o=e.ref(!1),l=e.ref(new Set),s=e.ref(new Map);e.watch(n,r=>{s.value=r.reduce((m,w)=>(m.set(w[t],w),m),new Map)},{deep:!0,immediate:!0});const i=e.computed(()=>{let r=[];if(o.value!=null)o.value&&(r=Array.from(s.value.values()));else if(l.value.size){let m;l.value.forEach(w=>{m=s.value.get(w),m&&r.push(m)})}return r}),a=e.computed(()=>{let r=0;return o.value!=null?o.value&&(r=s.value.size):r=l.value.size,r}),c=e.computed(()=>{let r;if(o.value!=null)r=o.value;else{const m=l.value.size,w=s.value.size;r=m==w}return r});function u(){o.value=!0}function g(){o.value=!1}function M(r){y(()=>{r.forEach(m=>{l.value.add(m[t])})})}function d(r){y(()=>{r.forEach(m=>{l.value.delete(m[t])})})}function N(r){return o.value!=null?o.value:l.value.has(r[t])}function y(r){o.value!=null&&(o.value?l.value=new Set(Array.from(s.value.keys())):l.value=new Set),r(),l.value.size==0?o.value=!1:l.value.size==s.value.size?o.value=!0:o.value=null}function f(r){y(()=>{r.forEach(m=>{N(m)?l.value.delete(m[t]):l.value.add(m[t])})})}function E(){const{value:r}=c;r?g():u()}return e.provide(ee,E),e.provide(te,f),e.provide(ne,N),e.provide(oe,i),e.provide(le,M),e.provide(se,u),e.provide(ae,d),e.provide(ie,c),e.provide(K,g),e.provide(K,g),e.provide(ce,a),{selected:i,select:M,selectAll:u,unselect:d,unselectAll:g,toggle:f,toggleAll:E,isSelected:N,isAllSelected:c,selectedCount:a}}function re(n){return()=>{console.debug(`\u9ED8\u8BA4${n}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ue({attribute:n,selectWay:t="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=re("\u9009\u62E9"),unselect:i=re("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=re("\u53D6\u6D88\u5168\u9009")}=l();let c={};const u=e.computed(()=>pe(t==="colum"?nn:on,50)),g=new Set,M=e.ref(!0),d=e.ref(),N=e.ref(!1),y=e.ref({x:0,y:0}),f=e.ref({x:0,y:0,scrollTop:0}),E=new ResizeObserver(h=>r.value=h[0].target.getBoundingClientRect()),r=e.ref({}),m=e.ref({top:0,height:0,sync(h=!1){m.value.top=d.value?.scrollTop||0,h&&(m.value.height=d.value?.scrollHeight||0)}}),w=e.computed(()=>N.value?{left:Math.min(y.value.x,f.value.x)-r.value.left,top:Math.min(y.value.y,f.value.y)-r.value.top,width:Math.abs(y.value.x-f.value.x),height:Math.abs(y.value.y-f.value.y)}:{left:0,top:0,width:0,height:0}),{margin:S=50,startSpeed:B=30,maxSpeed:U=30}=o;let A;const z=S,C=B,Y=U,P=h=>h**1;let k=0;function $(h){if(cancelAnimationFrame(A),k=W(h),k=Math.max(Math.min(k,Y),-Y),k!==0){const p=d.value;if(!p||!N.value)return;const _=m.value.height-r.value.height;let j=m.value.top+Number(k);j=Math.min(Math.max(0,j),_),p.scrollTop=j,R(),A=requestAnimationFrame(()=>$(h))}}function W(h){if(d.value){const _=r.value,j=_.bottom-h;if(j<z)return C*P(1-j/z);const Q=h-_.top;if(Q<z)return-C*P(1-Q/z)}return 0}function V(h){const p={...w.value,right:0,bottom:0};return p.left+=r.value.left,p.top+=r.value.top-m.value.top,p.right=p.width+p.left,p.bottom=p.height+p.top,p.left<h.right&&p.right>h.left&&p.top<h.bottom&&p.bottom>h.top}function R(){m.value.sync();const{top:h,height:p}=m.value;f.value.y=Math.min(p+r.value.top,f.value.y+h-f.value.scrollTop),f.value.scrollTop=h}function I(h,p,_="dynamic-styles"){let j=document.getElementById(_);j||(j=document.createElement("style"),j.id=_,document.head.appendChild(j));const Q=j.sheet.cssRules,F=Q.length,sn=`${h} { ${p} }`;for(let fe=0;fe<F;fe++){const Oe=Q[fe];if(Oe.selectorText===h&&Oe.style.cssText===p)return}j.sheet.insertRule(sn,F)}function T(h,p){M.value=!0,N.value=!0,m.value.height?m.value.sync():m.value.sync(!0),y.value.x=h,y.value.y=p+m.value.top,f.value.x=y.value.x,f.value.y=y.value.y,d.value?.classList.add("disable-scroll-behavior"),g.clear()}function x(h,p,_){!N.value||(M.value&&t==="colum"&&!v()&&(a(),M.value=!1),_?.(),$(p),f.value.x=Math.max(h,r.value.left),f.value.y=Math.min(p+m.value.top,m.value.height+r.value.top),f.value.scrollTop=m.value.top,u.value())}function O(){N.value=!1,d.value?.classList.remove("disable-scroll-behavior")}function L(){!N.value||(k||R(),u.value())}function v(){if(!N.value)return!1;const{width:h,height:p}=w.value;return!(Math.max(h,p)>5)}function Me(){v()&&a()}function nn(){v()||d.value?.querySelectorAll(`[${n}]`).forEach(h=>{c[`${n}`]=h.getAttribute(`${n}`),V(h.getBoundingClientRect())?s([c]):i([c])})}function on(){const h=[];let p=null,_=0;d.value?.querySelectorAll(`[${n}]`).forEach((j,Q)=>{const F=j.getAttribute(`${n}`);h.push(F),V(j.getBoundingClientRect())?(p===null&&(p=Q),p=Math.min(p,Q),_=Math.max(_,Q)):(c[`${n}`]=F,g.has(F)&&i([c]))});for(let j=p;j<_+1;j++)c[`${n}`]=h[j],s([c]),g.add(h[j])}function ln(h){return!h?.value||(d.value=h.value,!d?.value)?!1:(E.observe(d.value),I(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:ln,dragStart:T,dragMove:x,dragEnd:O,onScroll:L,isSingleClick:v,cancelSelectAllBySingleClick:Me,selectFn:u,selectRange:w,isPressing:N,containerEl:d,observer:E}}function nt(n){const t=ue(n),{observer:o,selectRange:l}=t,{onScroll:s,dragStart:i,dragMove:a,dragEnd:c,cancelSelectAllBySingleClick:u}=t,g=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:M}=J(`.drag-select-box {
2
2
  position: absolute;
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}),d=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:g.value})}});function y(m){m.button===0&&i(m.x,m.y)}function N(m){a(m.x,m.y)}function f(m){m.composedPath().some(S=>S?.getAttribute?.(n.attribute))||u(),r()}function I(m){try{if(!t.init(m))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!t.containerEl?.value)return!1;e.render(e.h(d),t.containerEl.value),M(),t.containerEl.value?.addEventListener("scroll",s),t.containerEl.value?.addEventListener("mousedown",y),window.addEventListener("mousemove",N),window.addEventListener("mouseup",f)}catch(w){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",w)}}function c(){o.disconnect(),t.containerEl.value?.removeEventListener("scroll",s),t.containerEl.value?.removeEventListener("mousedown",y),window.removeEventListener("mousemove",N),window.removeEventListener("mouseup",f)}return{init:I,unMount:c}}function ot(n,t,o=600){const l=ue({...n,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:i,dragStart:a,dragMove:r,dragEnd:u}=l;let g;function M(){clearTimeout(g)}function d(c){M(),c.composedPath().some(w=>!!w?.getAttribute?.(n.attribute))&&(g=setTimeout(()=>{const{clientX:w,clientY:S}=c.targetTouches[0];a(w,S),t?.(),r(w,S,()=>c.preventDefault()),c.preventDefault()},o))}function y(c){M();const{clientX:m,clientY:w}=c.targetTouches[0];r(m,w,()=>c.preventDefault())}function N(){M(),u()}function f(c){try{if(!l.init(c))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",i),l.containerEl.value?.addEventListener("touchstart",d),l.containerEl.value?.addEventListener("touchmove",y),window.addEventListener("touchcancel",N),window.addEventListener("touchend",N)}catch(m){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",m)}}function I(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",i),l.containerEl.value?.removeEventListener("touchstart",d),l.containerEl.value?.removeEventListener("touchmove",y),window.removeEventListener("touchcancel",N),window.removeEventListener("touchEnd",N)}return{init:f,unMount:I}}const ve=Symbol(),lt={key:0,class:"lzc-modal"},st=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(n,{emit:t}){const o=n,l=()=>{o.closeOnClickOverlay&&t("update:visiable",!1)};return e.provide(ve,()=>t("update:visiable",!1)),(s,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[n.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",lt,[e.createElementVNode("div",{onMousedown:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",n.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)])),[[e.unref(ge),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),nn="",Q=(n,t)=>{const o=n.__vccOpts||n;for(const[l,s]of t)o[l]=s;return o},at=Q(st,[["__scopeId","data-v-4ff684af"]]);function it(n){function t(o,l){const s=document.createElement("div"),i={setup(){return()=>e.h(at,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...n},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(i),s),{close:()=>s?.remove()}}return{create:t}}function Ce({component:n,componentProps:t,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,i=`${o}ms`;return q(`@keyframes lzcDelayLoad {
6
+ }`,{id:"styletag_lzc_dragselect",manual:!0}),d=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:g.value})}});function N(m){m.button===0&&i(m.x,m.y)}function y(m){a(m.x,m.y)}function f(m){m.composedPath().some(S=>S?.getAttribute?.(n.attribute))||u(),c()}function E(m){try{if(!t.init(m))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!t.containerEl?.value)return!1;e.render(e.h(d),t.containerEl.value),M(),t.containerEl.value?.addEventListener("scroll",s),t.containerEl.value?.addEventListener("mousedown",N),window.addEventListener("mousemove",y),window.addEventListener("mouseup",f)}catch(w){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",w)}}function r(){o.disconnect(),t.containerEl.value?.removeEventListener("scroll",s),t.containerEl.value?.removeEventListener("mousedown",N),window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",f)}return{init:E,unMount:r}}function ot(n,t,o=600){const l=ue({...n,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:i,dragStart:a,dragMove:c,dragEnd:u}=l;let g;function M(){clearTimeout(g)}function d(r){M(),r.composedPath().some(w=>!!w?.getAttribute?.(n.attribute))&&(g=setTimeout(()=>{const{clientX:w,clientY:S}=r.targetTouches[0];a(w,S),t?.(),c(w,S,()=>r.preventDefault()),r.preventDefault()},o))}function N(r){M();const{clientX:m,clientY:w}=r.targetTouches[0];c(m,w,()=>r.preventDefault())}function y(){M(),u()}function f(r){try{if(!l.init(r))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",i),l.containerEl.value?.addEventListener("touchstart",d),l.containerEl.value?.addEventListener("touchmove",N),window.addEventListener("touchcancel",y),window.addEventListener("touchend",y)}catch(m){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",m)}}function E(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",i),l.containerEl.value?.removeEventListener("touchstart",d),l.containerEl.value?.removeEventListener("touchmove",N),window.removeEventListener("touchcancel",y),window.removeEventListener("touchEnd",y)}return{init:f,unMount:E}}const Ae=Symbol(),lt={key:0,class:"lzc-modal"},st=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(n,{emit:t}){const o=n,l=()=>{o.closeOnClickOverlay&&t("update:visiable",!1)};return e.provide(Ae,()=>t("update:visiable",!1)),(s,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[n.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",lt,[e.createElementVNode("div",{onMousedown:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",n.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)])),[[e.unref(ge),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),cn="",b=(n,t)=>{const o=n.__vccOpts||n;for(const[l,s]of t)o[l]=s;return o},at=b(st,[["__scopeId","data-v-4ff684af"]]);function it(n){function t(o,l){const s=document.createElement("div"),i={setup(){return()=>e.h(at,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...n},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(i),s),{close:()=>s?.remove()}}return{create:t}}function Ce({component:n,componentProps:t,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,i=`${o}ms`;return J(`@keyframes lzcDelayLoad {
7
7
  to {
8
8
  opacity: 1;
9
9
  }
@@ -11,10 +11,10 @@
11
11
  .${s} {
12
12
  opacity: 0;
13
13
  animation: lzcDelayLoad 0s ${i} forwards;
14
- }`),{LoadingComp:e.defineComponent({setup(){const r=$e();return e.onMounted(()=>{r.value.classList.add(s)}),()=>e.h(n,t)}})}}function rt({component:n,componentProps:t,delay:o=300}){const{LoadingComp:l}=Ce({component:n,componentProps:t,delay:o}),s=e.ref(!1);function i(){s.value=!0}function a(){s.value=!1}return{LoadingComp:l,loading:s,load:i,unload:a}}const ct=[(n=>(e.pushScopeId("data-v-d0ad7597"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],ut=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(n){return e.useCssVars(t=>({d8dfa9f0:n.width+"px","2941c2e5":n.height+"px"})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),ct,16))}}),sn="",dt=Q(ut,[["__scopeId","data-v-d0ad7597"]]);async function Mt(n){return new Promise(t=>setTimeout(()=>t(),n))}const ft="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MTQsMC4xMTc3NTIwMTEgQzExLjU4MjE0MjksLTAuMDEwNzA0NzIz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BDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",yt=["onClick"],mt=["onClick"],Nt=["src"],Dt=["src"],ht=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!0},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEvent:{type:Boolean,default:!1}},emits:["close"],setup(n,{emit:t}){const o=n,l="lzc-loading-toast",s=e.computed(()=>{let u={};return o.captureEvent&&(u.pointerEvents="none"),u}),i=e.computed(()=>{let u={};return o.width&&(u.width=o.width),o.maxWidth&&(u.maxWidth=o.maxWidth),o.overlayContentStyle&&(u={...u,...o.overlayContentStyle}),u});function a(){o.closeOnClickOverlay&&t("close")}function r(){o.closeOnClick&&t("close")}return(u,g)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${n.className}`),onClick:e.withModifiers(a,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(r,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(i))},[n.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(M=>t("close"),["stop"])),src:e.unref(ft),class:e.normalizeClass(`${l}-close`)},null,10,Nt)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(gt),class:e.normalizeClass(`${l}-icon`)},null,10,Dt)):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`)},e.toDisplayString(n.message),3)):e.createCommentVNode("",!0)],6)],10,mt)],10,yt),[[e.vShow,n.visible]])],4)]),_:1}))}}),an="",rn="",pt=Q(ht,[["__scopeId","data-v-cb2e1a90"]]);class G{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(t){this.options={...t,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=pt}async show(){const t=this.options,l={...t,onClose:function(){G.close(),t?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,t.duration!==0&&setTimeout(()=>{this.destory()},t.duration),await Mt(t.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(t=>{setTimeout(()=>{if(!this.el){t();return}document.body.removeChild(this.el),t()},this.animateDuration-10)}))}static close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Tt(n,t){const o=!!t?.debug,l=t?.printErrorLog!==!1,s=t?.loading!==!1,i=t?.autoClose!==!1,a=t?.delay!=null?t.delay:200;o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s options: %o",s,i,a,t);const r=e.ref(!1);let u=null;const g=new G(t);async function M(){if(o&&console.log(`useDelayAsync - handler - processing: ${r.value}`),!r.value){r.value=!0,u=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,r.value),s&&(!r.value||g.show())},a);try{o&&console.time("useDelayAsync - handler-execute-time"),await n(),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await d(i)}catch(y){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(y),await d(i),await t?.onError?.(y)}}}async function d(y=!0){o&&console.log("useDelayAsync - close - closeLoading: ",y),r.value=!1,u&&clearTimeout(u),u=null,y&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),d()}),{processing:r,handler:M,close:d}}const wt=["onClick"],It=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(n){const t=n,o=e.ref(),l=e.ref(),s=e.ref(),i=e.computed(()=>{switch(t.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),a=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${i.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),r=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function u(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(g,M)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(u,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(r))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],12,wt))}}),cn="",Et=Q(It,[["__scopeId","data-v-533e986b"]]),Ae={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class zt{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(Et),{...Ae,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Ae.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const t=this.container.querySelector("#toastWrapper");t.style.opacity="0",t.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const jt=["xlink:href","fill","color"],Lt=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(n){const t=n,o=e.computed(()=>`#${t.prefix}-${t.name}`),l=e.computed(()=>({width:`${t.width??t.height}px`,height:`${t.height??t.width}px`,aspectRatio:t.width&&t.height?void 0:"1/1"}));function s(i){const{style:a}=i;return typeof a=="object"?a:{}}return(i,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(i.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:n.color,color:n.color},null,8,jt)],4))}});function vt(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:a="classList"}=n,r=e.ref(!0),u=he($,100);let g,M="";const d=e.ref(0),y=e.ref(0),N=e.ref(0),f=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),I=e.ref({clientHeight:0}),c=e.computed(()=>!!y.value),m=e.computed(()=>f.value.scrollHeight>f.value.clientHeight),w=e.computed(()=>l?f.value.clientHeight-U.value:f.value.clientHeight-I.value.clientHeight),S=e.computed(()=>f.value.scrollHeight-f.value.clientHeight),B=e.computed(()=>Math.max(f.value.clientHeight/f.value.scrollHeight,.05)),U=e.computed(()=>B.value>i?0:B.value*f.value.clientHeight),v=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${N.value}px,0)`,height:l?`${U.value}px`:void 0}));function z(L){Y(),y.value=L.clientY-o.value.getBoundingClientRect().top||1,M=getComputedStyle(t.value).scrollBehavior,M==="smooth"&&(t.value.style.scrollBehavior="unset")}function C(){t.value.style.scrollBehavior=M,y.value=0,u()}function Y(){r.value=!1}function $(){c.value||(r.value=!0)}function k(L){if(!c.value)return;let A=L.clientY-f.value.top-y.value;A<0?N.value=0:A>=w.value?N.value=w.value:N.value=A,t.value.scrollTo({top:N.value/w.value*S.value})}function R(){c.value||W()}function W(){cancelAnimationFrame(g),g=requestAnimationFrame(H)}function H(){t.value&&(d.value=s.scrollTop?.value??t.value.scrollTop,N.value=d.value/S.value*w.value)}function P(L){let A="addEventListener";L==="add"?A="addEventListener":A="removeEventListener",o.value?.[A]("pointerdown",z,{passive:!0}),window[A]("pointermove",k,{passive:!0}),window[A]("pointerup",C,{passive:!0})}const E=new MutationObserver(L=>{(a=="classList"||L.map(Me=>Me.oldValue).join().includes("height"))&&T()});function T(){f.value.top=t.value?.getBoundingClientRect().top??0,f.value.scrollHeight=t.value?.scrollHeight??0,f.value.clientHeight=t.value?.clientHeight??0}function O(){Y(),setTimeout(()=>{I.value.clientHeight=o.value?.clientHeight??0,$()},150)}function x(){if(t.value&&o.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",R,{passive:!0}),P("add");const L={};a==="classList"?Object.assign(L,{subtree:!0,childList:!0}):Object.assign(L,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),E.observe(t.value,L),setTimeout(()=>{T()},100),O()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(d,()=>{Y(),u()}),{isScrollEnd:r,isDragSlider:c,offsetTop:N,scrollTop:d,scrollable:m,sliderPos:v,init:x,modifySliderEventListener:P}}const Ct=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),At=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(n,{expose:t}){const o=n,l=!!e.useSlots().default,s=e.ref(null),i=e.computed(()=>o.containerEl),a=vt({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:r,isScrollEnd:u,sliderPos:g}=a,M=e.ref(!1),d=o.autoHide?e.computed(()=>M.value||!u.value):e.computed(()=>r.value),{load:y}=q(`.hide-scrollbar {
14
+ }`),{LoadingComp:e.defineComponent({setup(){const c=Pe();return e.onMounted(()=>{c.value.classList.add(s)}),()=>e.h(n,t)}})}}function ct({component:n,componentProps:t,delay:o=300}){const{LoadingComp:l}=Ce({component:n,componentProps:t,delay:o}),s=e.ref(!1);function i(){s.value=!0}function a(){s.value=!1}return{LoadingComp:l,loading:s,load:i,unload:a}}const rt=[(n=>(e.pushScopeId("data-v-f86c8393"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],ut=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(n){return e.useCssVars(t=>({"226a081e":n.width+"px","35610f1c":n.height+"px"})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),rt,16))}}),dn="",dt=b(ut,[["__scopeId","data-v-f86c8393"]]),Mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0V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ZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",ft={class:"loading-wrap"},gt=["src"],yt=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"}},setup(n){return e.useCssVars(t=>({"8b276c48":n.delay})),(t,o)=>(e.openBlock(),e.createElementBlock("div",ft,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(Mt)},null,8,gt)]))}}),Mn="",mt=b(yt,[["__scopeId","data-v-2affe82a"]]);async function Nt(n){return new Promise(t=>setTimeout(()=>t(),n))}const Dt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1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QuODU4NTg5MywxNC4zMTUzOTIyIDE0LjU4Njk2NTUsMTQuNTg2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",pt=["onClick"],Tt=["onClick"],wt=["src"],Et=["src"],It=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!0},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEvent:{type:Boolean,default:!1}},emits:["close"],setup(n,{emit:t}){const o=n,l="lzc-loading-toast",s=e.computed(()=>{let u={};return o.captureEvent&&(u.pointerEvents="none"),u}),i=e.computed(()=>{let u={};return o.width&&(u.width=o.width),o.maxWidth&&(u.maxWidth=o.maxWidth),o.overlayContentStyle&&(u={...u,...o.overlayContentStyle}),u});function a(){o.closeOnClickOverlay&&t("close")}function c(){o.closeOnClick&&t("close")}return(u,g)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${n.className}`),onClick:e.withModifiers(a,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(c,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(i))},[n.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(M=>t("close"),["stop"])),src:e.unref(Dt),class:e.normalizeClass(`${l}-close`)},null,10,wt)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(ht),class:e.normalizeClass(`${l}-icon`)},null,10,Et)):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`)},e.toDisplayString(n.message),3)):e.createCommentVNode("",!0)],6)],10,Tt)],10,pt),[[e.vShow,n.visible]])],4)]),_:1}))}}),fn="",gn="",zt=b(It,[["__scopeId","data-v-cb2e1a90"]]);class G{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(t){this.options={...t,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=zt}async show(){const t=this.options,l={...t,onClose:function(){G.close(),t?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,t.duration!==0&&setTimeout(()=>{this.destory()},t.duration),await Nt(t.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(t=>{setTimeout(()=>{if(!this.el){t();return}document.body.removeChild(this.el),t()},this.animateDuration-10)}))}static close(){document.querySelector("#lzc-loading-toast")?.remove()}}function jt(n,t){const o=!!t?.debug,l=t?.printErrorLog!==!1,s=t?.loading!==!1,i=t?.autoClose!==!1,a=t?.delay!=null?t.delay:300;o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s options: %o",s,i,a,t);const c=e.ref(!1);let u=null;const g=new G(t);async function M(...N){if(o&&console.log(`useDelayAsync - handler - processing: ${c.value}`),!c.value){c.value=!0,u=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,c.value),s&&(!c.value||g.show())},a);try{o&&console.time("useDelayAsync - handler-execute-time"),await n(...N),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await d(i)}catch(y){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(y),await d(i),await t?.onError?.(y)}}}async function d(N=!0){o&&console.log("useDelayAsync - close - closeLoading: ",N),c.value=!1,u&&clearTimeout(u),u=null,N&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),d()}),{processing:c,handler:M,close:d}}const Lt=["onClick"],At=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(n){const t=n,o=e.ref(),l=e.ref(),s=e.ref(),i=e.computed(()=>{switch(t.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),a=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${i.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),c=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function u(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(g,M)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(u,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(c))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],12,Lt))}}),yn="",Ct=b(At,[["__scopeId","data-v-533e986b"]]),ve={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class vt{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(Ct),{...ve,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||ve.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const t=this.container.querySelector("#toastWrapper");t.style.opacity="0",t.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const xt=["xlink:href","fill","color"],Ot=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(n){const t=n,o=e.computed(()=>`#${t.prefix}-${t.name}`),l=e.computed(()=>({width:`${t.width??t.height}px`,height:`${t.height??t.width}px`,aspectRatio:t.width&&t.height?void 0:"1/1"}));function s(i){const{style:a}=i;return typeof a=="object"?a:{}}return(i,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(i.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:n.color,color:n.color},null,8,xt)],4))}});function St(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:a="classList"}=n,c=e.ref(!0),u=he(P,100);let g,M="";const d=e.ref(0),N=e.ref(0),y=e.ref(0),f=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),E=e.ref({clientHeight:0}),r=e.computed(()=>!!N.value),m=e.computed(()=>f.value.scrollHeight>f.value.clientHeight),w=e.computed(()=>l?f.value.clientHeight-U.value:f.value.clientHeight-E.value.clientHeight),S=e.computed(()=>f.value.scrollHeight-f.value.clientHeight),B=e.computed(()=>Math.max(f.value.clientHeight/f.value.scrollHeight,.05)),U=e.computed(()=>B.value>i?0:B.value*f.value.clientHeight),A=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${y.value}px,0)`,height:l?`${U.value}px`:void 0}));function z(L){Y(),N.value=L.clientY-o.value.getBoundingClientRect().top||1,M=getComputedStyle(t.value).scrollBehavior,M==="smooth"&&(t.value.style.scrollBehavior="unset")}function C(){t.value.style.scrollBehavior=M,N.value=0,u()}function Y(){c.value=!1}function P(){r.value||(c.value=!0)}function k(L){if(!r.value)return;let v=L.clientY-f.value.top-N.value;v<0?y.value=0:v>=w.value?y.value=w.value:y.value=v,t.value.scrollTo({top:y.value/w.value*S.value})}function $(){r.value||W()}function W(){cancelAnimationFrame(g),g=requestAnimationFrame(V)}function V(){t.value&&(d.value=s.scrollTop?.value??t.value.scrollTop,y.value=d.value/S.value*w.value)}function R(L){let v="addEventListener";L==="add"?v="addEventListener":v="removeEventListener",o.value?.[v]("pointerdown",z,{passive:!0}),window[v]("pointermove",k,{passive:!0}),window[v]("pointerup",C,{passive:!0})}const I=new MutationObserver(L=>{(a=="classList"||L.map(Me=>Me.oldValue).join().includes("height"))&&T()});function T(){f.value.top=t.value?.getBoundingClientRect().top??0,f.value.scrollHeight=t.value?.scrollHeight??0,f.value.clientHeight=t.value?.clientHeight??0}function x(){Y(),setTimeout(()=>{E.value.clientHeight=o.value?.clientHeight??0,P()},150)}function O(){if(t.value&&o.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",$,{passive:!0}),R("add");const L={};a==="classList"?Object.assign(L,{subtree:!0,childList:!0}):Object.assign(L,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),I.observe(t.value,L),setTimeout(()=>{T()},100),x()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(d,()=>{Y(),u()}),{isScrollEnd:c,isDragSlider:r,offsetTop:y,scrollTop:d,scrollable:m,sliderPos:A,init:O,modifySliderEventListener:R}}const _t=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),kt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(n,{expose:t}){const o=n,l=!!e.useSlots().default,s=e.ref(null),i=e.computed(()=>o.containerEl),a=St({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:c,isScrollEnd:u,sliderPos:g}=a,M=e.ref(!1),d=o.autoHide?e.computed(()=>M.value||!u.value):e.computed(()=>c.value),{load:N}=J(`.hide-scrollbar {
15
15
  scrollbar-width: none;
16
16
  -ms-overflow-style: none;
17
17
  }
18
18
  .hide-scrollbar::-webkit-scrollbar {
19
19
  display: none;
20
- }`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{y(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function N(){M.value=!0}function f(){M.value=!1}return t({uScrollBarReturn:a}),(I,c)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:N,onMouseleave:f,style:e.normalizeStyle(e.unref(g))},[e.renderSlot(I.$slots,"default",{},()=>[Ct],!0)],36),[[e.vShow,e.unref(d)]])]),_:3}))}}),dn="",Ot=Q(At,[["__scopeId","data-v-efefe52c"]]),xt=n=>(e.pushScopeId("data-v-18377f18"),n=n(),e.popScopeId(),n),St={class:"pull-refresh"},_t={key:0,class:"pull-arrow-circle"},kt={key:0,class:"box-load"},bt={class:"left-load"},Qt={class:"right-load"},Bt=xt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Ut={class:"pull-arrow"},Yt={key:1},$t=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(n){const t=n,o=.7,l="#2EC1CC",s=e.ref(-999),i=e.ref(1),a=e.ref(0),r=e.ref(.3),u=e.ref(!1),g=e.ref(0),M=e.ref(0),d=e.ref(0),y=e.ref(0),N=e.ref(0),f=e.ref(),I=e.computed(()=>t.scrollTop),c=e.computed(()=>({transition:`${y.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),m=e.computed(()=>({borderColor:l,transition:y.value,transform:`rotate(${100+a.value}deg)`,opacity:r.value}));e.watch(N,z=>{z===0&&(s.value=-50,r.value=.3)}),e.watch(M,z=>{if(N.value===2)return;const C=Math.pow(z,o);C===0&&(s.value=-50),C<=50&&C>0&&(s.value=C-45,a.value=Math.pow(C,1.5),C>15?u.value=!0:u.value=!1),C>50&&(s.value=5,r.value=1,N.value)});const w=e.ref(0),S=z=>{w.value=z.touches[0].pageY},B=z=>{const C=z.touches[0].pageY-w.value;w.value=z.touches[0].pageY,!t.refreshOff&&(!t?.refresh||N.value!==2&&I.value===0&&(g.value===0&&(g.value=z.touches[0].pageY),d.value=0,v.value.style.transition=`${d.value}ms`,y.value=0,M.value=z.touches[0].pageY-g.value,v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,C>0&&z.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||N.value===2)return;g.value=0,d.value=300;const z=Math.pow(M.value,o);v.value.style.transition=`${d.value}ms`,z>50?(N.value=2,M.value=Math.pow(50,1/o),v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,y.value=300,t?.refresh&&t?.refresh().then(()=>{f.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{f.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{N.value=0,M.value=0,v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,setTimeout(()=>{f.value=void 0},y.value)},600)})):(M.value=0,v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`)},v=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(v.value=document.querySelector(t.pullRefreshContainer),v.value?.addEventListener("touchstart",S),v.value?.addEventListener("touchmove",B),v.value?.addEventListener("touchend",U))}),(z,C)=>(e.openBlock(),e.createElementBlock("div",St,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(c))},[f.value?(e.openBlock(),e.createElementBlock("div",Yt,e.toDisplayString(f.value),1)):(e.openBlock(),e.createElementBlock("div",_t,[N.value==2?(e.openBlock(),e.createElementBlock("div",kt,[e.createElementVNode("div",bt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Qt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Bt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(m))},[e.createElementVNode("div",Ut,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:u.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Mn="",Oe=Q($t,[["__scopeId","data-v-18377f18"]]),Pt={inheritAttrs:!1},Rt=e.defineComponent({...Pt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(n,{expose:t,emit:o}){const l=n,s=Le(e.toRef(l,"data"),{itemHeight:y=>l.itemHeight(l.data[y]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:i,containerProps:a,wrapperProps:r,innerProps:u,getItemHeightData:g,scrollTop:M}=s;t({vListReturn:s});const d="virtualListWrapper"+new Date().getTime();return(y,N)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:n.refresh,refreshOff:n.refreshOff,scrollTop:e.unref(M),pullRefreshContainer:"#"+d},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:d},[e.createElementVNode("div",e.mergeProps({onScrollPassive:N[0]||(N[0]=(...f)=>e.unref(a).onScroll&&e.unref(a).onScroll(...f)),ref:e.unref(a).ref,class:"virtualList"},y.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(r))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({index:f,data:I})=>(e.openBlock(),e.createElementBlock("div",{key:f,style:e.normalizeStyle({height:`${e.unref(g)(f).height}px`,display:"flex"})},[e.renderSlot(y.$slots,"default",{data:I,index:f},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),fn="",Ht=Q(Rt,[["__scopeId","data-v-e0fb787f"]]),de=n=>(e.pushScopeId("data-v-c986249d"),n=n(),e.popScopeId(),n),Vt={style:{position:"absolute"}},Ft=de(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Wt=["width","height"],Kt=[de(()=>e.createElementVNode("title",null,"logo",-1)),de(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],Zt=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(n){const t=n;e.useCssVars(l=>({"5e400569":o}));const o=`${t.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",Vt,[Ft,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:n.width,height:n.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Kt,8,Wt))]))}}),mn="",Gt=Q(Zt,[["__scopeId","data-v-c986249d"]]);D.DefaultLoading=dt,D.Loading=Gt,D.LoadingToast=G,D.PullRefresh=Oe,D.ScrollBar=Ot,D.SvgIcon=Lt,D.ToastCreator=zt,D.VirtualList=Ht,D.allSelectedKey=oe,D.closeDialogKey=ve,D.dialogController=it,D.diff=qe,D.isAllSelectedKey=ie,D.isSelectedKey=ne,D.selectAllKey=se,D.selectKey=le,D.selectedCountKey=re,D.toggleAllKey=ee,D.toggleKey=te,D.unselectAllKey=Z,D.unselectKey=ae,D.useDelayAsync=Tt,D.useDelayLoad=rt,D.useDelayLoadComp=Ce,D.useDragSelect=ue,D.useDragSelectByMobile=ot,D.useDragSelectByPc=nt,D.useSelectable=tt,D.useSelectableInjectors=et,D.useVirtualList=Le,D.vDebounceClick=Se,D.vSingleClick=ge,Object.defineProperties(D,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
20
+ }`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{N(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function y(){M.value=!0}function f(){M.value=!1}return t({uScrollBarReturn:a}),(E,r)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:y,onMouseleave:f,style:e.normalizeStyle(e.unref(g))},[e.renderSlot(E.$slots,"default",{},()=>[_t],!0)],36),[[e.vShow,e.unref(d)]])]),_:3}))}}),Nn="",bt=b(kt,[["__scopeId","data-v-efefe52c"]]),Qt=n=>(e.pushScopeId("data-v-18377f18"),n=n(),e.popScopeId(),n),Bt={class:"pull-refresh"},Ut={key:0,class:"pull-arrow-circle"},Yt={key:0,class:"box-load"},Pt={class:"left-load"},Rt={class:"right-load"},$t=Qt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Vt={class:"pull-arrow"},Ft={key:1},Ht=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(n){const t=n,o=.7,l="#2EC1CC",s=e.ref(-999),i=e.ref(1),a=e.ref(0),c=e.ref(.3),u=e.ref(!1),g=e.ref(0),M=e.ref(0),d=e.ref(0),N=e.ref(0),y=e.ref(0),f=e.ref(),E=e.computed(()=>t.scrollTop),r=e.computed(()=>({transition:`${N.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),m=e.computed(()=>({borderColor:l,transition:N.value,transform:`rotate(${100+a.value}deg)`,opacity:c.value}));e.watch(y,z=>{z===0&&(s.value=-50,c.value=.3)}),e.watch(M,z=>{if(y.value===2)return;const C=Math.pow(z,o);C===0&&(s.value=-50),C<=50&&C>0&&(s.value=C-45,a.value=Math.pow(C,1.5),C>15?u.value=!0:u.value=!1),C>50&&(s.value=5,c.value=1,y.value)});const w=e.ref(0),S=z=>{w.value=z.touches[0].pageY},B=z=>{const C=z.touches[0].pageY-w.value;w.value=z.touches[0].pageY,!t.refreshOff&&(!t?.refresh||y.value!==2&&E.value===0&&(g.value===0&&(g.value=z.touches[0].pageY),d.value=0,A.value.style.transition=`${d.value}ms`,N.value=0,M.value=z.touches[0].pageY-g.value,A.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,C>0&&z.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||y.value===2)return;g.value=0,d.value=300;const z=Math.pow(M.value,o);A.value.style.transition=`${d.value}ms`,z>50?(y.value=2,M.value=Math.pow(50,1/o),A.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,N.value=300,t?.refresh&&t?.refresh().then(()=>{f.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{f.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{y.value=0,M.value=0,A.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,setTimeout(()=>{f.value=void 0},N.value)},600)})):(M.value=0,A.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`)},A=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(A.value=document.querySelector(t.pullRefreshContainer),A.value?.addEventListener("touchstart",S),A.value?.addEventListener("touchmove",B),A.value?.addEventListener("touchend",U))}),(z,C)=>(e.openBlock(),e.createElementBlock("div",Bt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(r))},[f.value?(e.openBlock(),e.createElementBlock("div",Ft,e.toDisplayString(f.value),1)):(e.openBlock(),e.createElementBlock("div",Ut,[y.value==2?(e.openBlock(),e.createElementBlock("div",Yt,[e.createElementVNode("div",Pt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Rt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),$t])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(m))},[e.createElementVNode("div",Vt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:u.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Dn="",xe=b(Ht,[["__scopeId","data-v-18377f18"]]),Wt={inheritAttrs:!1},Zt=e.defineComponent({...Wt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(n,{expose:t,emit:o}){const l=n,s=Le(e.toRef(l,"data"),{itemHeight:N=>l.itemHeight(l.data[N]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:i,containerProps:a,wrapperProps:c,innerProps:u,getItemHeightData:g,scrollTop:M}=s;t({vListReturn:s});const d="virtualListWrapper"+new Date().getTime();return(N,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(xe,{refresh:n.refresh,refreshOff:n.refreshOff,scrollTop:e.unref(M),pullRefreshContainer:"#"+d},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:d},[e.createElementVNode("div",e.mergeProps({onScrollPassive:y[0]||(y[0]=(...f)=>e.unref(a).onScroll&&e.unref(a).onScroll(...f)),ref:e.unref(a).ref,class:"virtualList"},N.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(c))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({index:f,data:E})=>(e.openBlock(),e.createElementBlock("div",{key:f,style:e.normalizeStyle({height:`${e.unref(g)(f).height}px`,display:"flex"})},[e.renderSlot(N.$slots,"default",{data:E,index:f},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),hn="",Kt=b(Zt,[["__scopeId","data-v-e0fb787f"]]),de=n=>(e.pushScopeId("data-v-c986249d"),n=n(),e.popScopeId(),n),Gt={style:{position:"absolute"}},Xt=de(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),qt=["width","height"],Jt=[de(()=>e.createElementVNode("title",null,"logo",-1)),de(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],en=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(n){const t=n;e.useCssVars(l=>({"5e400569":o}));const o=`${t.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",Gt,[Xt,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:n.width,height:n.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Jt,8,qt))]))}}),wn="",tn=b(en,[["__scopeId","data-v-c986249d"]]);D.DefaultLoading=dt,D.Loading=tn,D.LoadingToast=G,D.PageLoading=mt,D.PullRefresh=xe,D.ScrollBar=bt,D.SvgIcon=Ot,D.ToastCreator=vt,D.VirtualList=Kt,D.allSelectedKey=oe,D.closeDialogKey=Ae,D.dialogController=it,D.diff=Je,D.isAllSelectedKey=ie,D.isSelectedKey=ne,D.selectAllKey=se,D.selectKey=le,D.selectedCountKey=ce,D.toggleAllKey=ee,D.toggleKey=te,D.unselectAllKey=K,D.unselectKey=ae,D.useDelayAsync=jt,D.useDelayLoad=ct,D.useDelayLoadComp=Ce,D.useDragSelect=ue,D.useDragSelectByMobile=ot,D.useDragSelectByPc=nt,D.useSelectable=tt,D.useSelectableInjectors=et,D.useVirtualList=Le,D.vDebounceClick=Se,D.vSingleClick=ge,Object.defineProperties(D,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .lzc-modal[data-v-4ff684af]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-4ff684af]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-d0ad7597]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-d0ad7597]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--d8dfa9f0);height:var(--2941c2e5);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-d0ad7597 .7s linear infinite}@keyframes ldio-mm5gwljcryb-d0ad7597{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-d0ad7597]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.lzc-loading-toast[data-v-cb2e1a90]{display:flex;position:fixed;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-cb2e1a90]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-cb2e1a90]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;padding:20px;box-sizing:border-box}.lzc-loading-toast-close[data-v-cb2e1a90]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-cb2e1a90]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-cb2e1a90 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-cb2e1a90]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;margin-top:4px;box-sizing:border-box;white-space:pre-wrap}@keyframes lzc-spin-cb2e1a90{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-533e986b{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-533e986b]{animation:slide-533e986b .3s linear}.v-leave-active[data-v-efefe52c]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-efefe52c]{opacity:0}.slider-wrapper[data-v-efefe52c]{position:absolute;right:0;touch-action:none}.default-slider[data-v-efefe52c]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-18377f18]{position:relative}.pull-refresh-box[data-v-18377f18]{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-18377f18]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-18377f18]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-18377f18 3s infinite linear forwards}@keyframes boxs-18377f18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-18377f18]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-18377f18 3s infinite linear forwards}@keyframes pr1A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-18377f18]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-18377f18 3s infinite linear forwards}@keyframes pr2A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-18377f18]{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-18377f18]{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-18377f18]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-18377f18]{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-18377f18]{opacity:1}.left-item[data-v-18377f18]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-18377f18]{color:#e93b3d}.virtualList[data-v-e0fb787f]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-e0fb787f]{width:100%;height:100%;position:relative}@keyframes loading-rotate-c986249d{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-c986249d]{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-c986249d var(--5e400569) linear infinite}
1
+ .lzc-modal[data-v-4ff684af]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-4ff684af]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-f86c8393]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-f86c8393]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--226a081e);height:var(--35610f1c);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-f86c8393 .7s linear infinite}@keyframes ldio-mm5gwljcryb-f86c8393{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-f86c8393]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-2affe82a]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-2affe82a]{width:22px;height:22px;opacity:0;animation:loading-spin-2affe82a .8s var(--8b276c48) linear infinite}@keyframes loading-spin-2affe82a{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-cb2e1a90]{display:flex;position:fixed;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-cb2e1a90]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-cb2e1a90]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;padding:20px;box-sizing:border-box}.lzc-loading-toast-close[data-v-cb2e1a90]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-cb2e1a90]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-cb2e1a90 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-cb2e1a90]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;margin-top:4px;box-sizing:border-box;white-space:pre-wrap}@keyframes lzc-spin-cb2e1a90{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-533e986b{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-533e986b]{animation:slide-533e986b .3s linear}.v-leave-active[data-v-efefe52c]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-efefe52c]{opacity:0}.slider-wrapper[data-v-efefe52c]{position:absolute;right:0;touch-action:none}.default-slider[data-v-efefe52c]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-18377f18]{position:relative}.pull-refresh-box[data-v-18377f18]{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-18377f18]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-18377f18]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-18377f18 3s infinite linear forwards}@keyframes boxs-18377f18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-18377f18]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-18377f18 3s infinite linear forwards}@keyframes pr1A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-18377f18]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-18377f18 3s infinite linear forwards}@keyframes pr2A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-18377f18]{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-18377f18]{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-18377f18]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-18377f18]{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-18377f18]{opacity:1}.left-item[data-v-18377f18]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-18377f18]{color:#e93b3d}.virtualList[data-v-e0fb787f]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-e0fb787f]{width:100%;height:100%;position:relative}@keyframes loading-rotate-c986249d{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-c986249d]{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-c986249d var(--5e400569) linear infinite}
@@ -1,12 +1,12 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- width: number;
3
- height: number;
2
+ width?: number | undefined;
3
+ height?: number | undefined;
4
4
  }>, {
5
5
  width: number;
6
6
  height: number;
7
7
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
- width: number;
9
- height: number;
8
+ width?: number | undefined;
9
+ height?: number | undefined;
10
10
  }>, {
11
11
  width: number;
12
12
  height: number;
@@ -0,0 +1,26 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ delay?: string | undefined;
3
+ }>, {
4
+ delay: string;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
+ delay?: string | undefined;
7
+ }>, {
8
+ delay: string;
9
+ }>>>, {
10
+ delay: string;
11
+ }>;
12
+ export default _default;
13
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
22
+ declare type __VLS_WithDefaults<P, D> = {
23
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
24
+ default: D[K];
25
+ } : P[K];
26
+ };
@@ -1 +1,2 @@
1
1
  export { default as DefaultLoading } from "./DefaultLoading.vue";
2
+ export { default as PageLoading } from "./PageLoading.vue";
@@ -18,11 +18,10 @@ export declare type UseDelayAsyncExpose = {
18
18
  /** 是否在执行中 */
19
19
  processing: Ref<boolean>;
20
20
  /** 执行函数 */
21
- handler: () => Promise<void>;
21
+ handler: ExecuteFunction;
22
22
  /** 清理Loading和内部定时器 */
23
23
  close: () => Promise<void>;
24
24
  };
25
- /** 需要执行的函数 */
26
- export declare type ExecuteFunction = () => void | Promise<void>;
25
+ export declare type ExecuteFunction = (...args: any[]) => any;
27
26
  export declare function useDelayAsync(execute: ExecuteFunction, options?: UseDelayAsyncOptions): UseDelayAsyncExpose;
28
27
  export default useDelayAsync;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.108",
3
+ "version": "0.0.110",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",