@lazycatcloud/lzc-toolkit 0.0.100 → 0.0.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +14 -7
- package/dist/index.umd.js +4 -4
- package/dist/types/useSelectable/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -382,9 +382,15 @@ function Un() {
|
|
|
382
382
|
}
|
|
383
383
|
function Bn(t, e) {
|
|
384
384
|
const l = N(!1), n = N(/* @__PURE__ */ new Set()), o = N(/* @__PURE__ */ new Map());
|
|
385
|
-
Et(
|
|
386
|
-
|
|
387
|
-
|
|
385
|
+
Et(
|
|
386
|
+
t,
|
|
387
|
+
(i, g, m, S) => {
|
|
388
|
+
S?.forEach((U) => o.value.delete(U[e])), m.forEach((U) => o.value.set(U[e], U));
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
immediate: !0
|
|
392
|
+
}
|
|
393
|
+
);
|
|
388
394
|
const a = T(() => {
|
|
389
395
|
let i = [];
|
|
390
396
|
if (l.value != null)
|
|
@@ -410,10 +416,10 @@ function Bn(t, e) {
|
|
|
410
416
|
return i;
|
|
411
417
|
});
|
|
412
418
|
function c() {
|
|
413
|
-
|
|
419
|
+
l.value = !0;
|
|
414
420
|
}
|
|
415
421
|
function M() {
|
|
416
|
-
|
|
422
|
+
l.value = !1;
|
|
417
423
|
}
|
|
418
424
|
function r(i) {
|
|
419
425
|
D(() => {
|
|
@@ -444,7 +450,7 @@ function Bn(t, e) {
|
|
|
444
450
|
}
|
|
445
451
|
function z() {
|
|
446
452
|
const { value: i } = u;
|
|
447
|
-
i ?
|
|
453
|
+
i ? M() : c();
|
|
448
454
|
}
|
|
449
455
|
return Y(Ve, z), Y(Xe, v), Y(Je, f), Y(qe, a), Y(et, r), Y(tt, c), Y(nt, d), Y(lt, u), Y(Te, M), Y(Te, M), Y(ot, s), {
|
|
450
456
|
selected: a,
|
|
@@ -455,7 +461,8 @@ function Bn(t, e) {
|
|
|
455
461
|
toggle: v,
|
|
456
462
|
toggleAll: z,
|
|
457
463
|
isSelected: f,
|
|
458
|
-
isAllSelected: u
|
|
464
|
+
isAllSelected: u,
|
|
465
|
+
selectedCount: s
|
|
459
466
|
};
|
|
460
467
|
}
|
|
461
468
|
function fe(t) {
|
package/dist/index.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.ui={},h.Vue))})(this,function(h,e){"use strict";const ge={created(n,t){let l,o;function s(a){l=a.clientX,o=a.clientY}function i(a){if(l===void 0)return;const r=a.clientX,d=a.clientY,M=Math.abs(r-l),u=Math.abs(d-o);M>5||u>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:l,ms:o=1500}=t.value;let s=null;function i(a){s||(l(a),s=setTimeout(()=>{s=null},o))}n.addEventListener("click",i)}};var me;const F=typeof window<"u",Ne=n=>typeof n=="function";F&&((me=window?.navigator)==null?void 0:me.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K(n){return typeof n=="function"?n():e.unref(n)}function ye(n,t){function l(...o){n(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})}return l}function _e(n,t={}){let l,o;return i=>{const a=K(n),r=K(t.maxWait);if(l&&clearTimeout(l),a<=0||r!==void 0&&r<=0)return o&&(clearTimeout(o),o=null),i();r&&!o&&(o=setTimeout(()=>{l&&clearTimeout(l),o=null,i()},r)),l=setTimeout(()=>{o&&clearTimeout(o),o=null,i()},a)}}function ke(n,t=!0,l=!0){let o=0,s,i=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return d=>{const M=K(n),u=Date.now()-o;if(a(),M<=0)return o=Date.now(),d();u>M&&(l||!i)?(o=Date.now(),d()):t&&(s=setTimeout(()=>{o=Date.now(),i=!0,a(),d()},M)),!l&&!s&&(s=setTimeout(()=>i=!0,M)),i=!1}}function be(n){return n}function Qe(n,t){let l,o,s;const i=e.ref(!0),a=()=>{i.value=!0,s()};e.watch(n,a,{flush:"sync"});const r=Ne(t)?t:t.get,d=Ne(t)?void 0:t.set,M=e.customRef((u,f)=>(o=u,s=f,{get(){return i.value&&(l=r(),i.value=!1),o(),l},set(m){d?.(m)}}));return Object.isExtensible(M)&&(M.trigger=a),M}function De(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function he(n,t=200,l={}){return ye(_e(t,l),n)}function Te(n,t=200,l=!1,o=!0){return ye(ke(t,l,o),n)}function pe(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function Be(n,t,l){let o=l?.immediate?[]:[...n instanceof Function?n():Array.isArray(n)?n:e.unref(n)];return e.watch(n,(s,i,a)=>{const r=new Array(o.length),d=[];for(const u of s){let f=!1;for(let m=0;m<o.length;m++)if(!r[m]&&u===o[m]){r[m]=!0,f=!0;break}f||d.push(u)}const M=o.filter((u,f)=>!r[f]);t(s,o,d,M,a),o=[...s]},l)}function we(n){var t;const l=K(n);return(t=l?.$el)!=null?t:l}const Ue=F?window:void 0,Ye=F?window.document:void 0;F&&window.navigator,F&&window.location;function $e(n,t=!1){const l=e.ref(),o=()=>l.value=Boolean(n());return o(),pe(o,t),l}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 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,He=Object.prototype.propertyIsEnumerable,Ve=(n,t)=>{var l={};for(var o in n)Re.call(n,o)&&t.indexOf(o)<0&&(l[o]=n[o]);if(n!=null&&Ee)for(var o of Ee(n))t.indexOf(o)<0&&He.call(n,o)&&(l[o]=n[o]);return l};function Fe(n,t,l={}){const o=l,{window:s=Ue}=o,i=Ve(o,["window"]);let a;const r=$e(()=>s&&"ResizeObserver"in s),d=()=>{a&&(a.disconnect(),a=void 0)},M=e.watch(()=>we(n),f=>{d(),r.value&&s&&f&&(a=new ResizeObserver(t),a.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{d(),M()};return De(u),{isSupported:r,stop:u}}function We(n,t={width:0,height:0},l={}){const{box:o="content-box"}=l,s=e.ref(t.width),i=e.ref(t.height);return Fe(n,([a])=>{const r=o==="border-box"?a.borderBoxSize:o==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;r?(s.value=r.reduce((d,{inlineSize:M})=>d+M,0),i.value=r.reduce((d,{blockSize:M})=>d+M,0)):(s.value=a.contentRect.width,i.value=a.contentRect.height)},l),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 Ke=0;function q(n,t={}){const l=e.ref(!1),{document:o=Ye,immediate:s=!0,manual:i=!1,id:a=`vueuse_styletag_${++Ke}`}=t,r=e.ref(n);let d=()=>{};const M=()=>{if(!o)return;const f=o.getElementById(a)||o.createElement("style");f.type="text/css",f.id=a,t.media&&(f.media=t.media),o.head.appendChild(f),!l.value&&(d=e.watch(r,m=>{f.innerText=m},{immediate:!0}),l.value=!0)},u=()=>{!o||!l.value||(d(),o.head.removeChild(o.getElementById(a)),l.value=!1)};return s&&!i&&pe(M),i||De(u),{id:a,css:r,unload:u,load:M,isLoaded:e.readonly(l)}}var Ze=Object.defineProperty,ze=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,je=(n,t,l)=>t in n?Ze(n,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[t]=l,Je=(n,t)=>{for(var l in t||(t={}))Ge.call(t,l)&&je(n,l,t[l]);if(ze)for(var l of ze(t))Xe.call(t,l)&&je(n,l,t[l]);return n};Je({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 ve(n,t){const{scrollEndHook:l,itemHeight:o,overscan:s=5}=t,i=e.ref(null),a=We(i),r=e.ref(!0),d=he(U,100);let M;const u=e.shallowRef(n),f=e.ref(0),m=e.ref({start:0,end:10}),y=e.ref({start:0,end:s});let g=0;const I=e.ref([]),c=e.computed(()=>{let{sum:E,height:p}={sum:0,height:0};return u.value.map((x,S)=>(typeof o=="number"?p=o:p=o(S),E+=p,{height:p,sum:E}))}),N=e.computed(()=>$(m.value.start)),w=e.computed(()=>typeof o=="number"?c.value.length*o:c.value[c.value.length-1]?.sum||0),A=e.computed(()=>{const{start:E,end:p}=y.value;return I.value.slice(E,p)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(M)),e.watch(u,()=>{(a.width.value||a.height.value)&&C()},{deep:!0}),e.watch([a.width,a.height],([E,p])=>{(E||p)&&C()},{deep:!0}),e.watch(f,()=>{_(),d()});function _(){r.value=!1}function U(){r.value=!0,l?.()}function C(){cancelAnimationFrame(M),M=requestAnimationFrame(z)}function z(){if(i.value){f.value=i.value.scrollTop;let E=L(f.value);g=Y(E);let p=Math.max(0,E-s),x=Math.min(E+g+s,u.value.length);m.value={start:p,end:x},I.value=u.value.slice(p,x).map((S,v)=>({data:S,index:v+p})),y.value.start=E-p,y.value.end=y.value.start+g}}function L(E){let p=0,x=c.value.length-1,S=-1;for(;p<=x;){const v=Math.floor((p+x)/2);c.value[v].sum>=E?(S=v,x=v-1):p=v+1}return Math.max(0,S)}function Y(E){let p=0,x=0;for(let S=E;S<c.value.length&&(p++,x+=c.value[S].height,!(x>=a.height.value));S++);return p}function $(E){if(typeof o=="number")return E*o;let p=c.value[E];return p?p.sum-p.height:0}function b(E){return c.value[E]||{sum:0,height:0}}function R(E){if(i.value){const p=b(E);i.value.scrollTop=p.sum-p.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, ${N.value}px, 0)`,"will-change":"transform"}})),P={overflowY:"auto"};return{list:I,visiableList:A,getItemHeightData:b,getoffsetTopIndex:L,totalHeight:w,clientHeight:a.height,scrollTo:R,scrollTop:f,isScrollEnd:r,containerProps:{ref:i,onScroll:()=>{C()},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 qe(){const{voidFn:n,boolFn:t,boolRef:l,numberRef:o,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,l),d=e.inject(te,n),M=e.inject(ee,n),u=e.inject(le,n),f=e.inject(se,n),m=e.inject(ae,n),y=e.inject(Z,n),g=e.inject(re,o);return{selected:i,isSelected:a,isAllSelected:r,toggle:d,toggleAll:M,select:u,selectAll:f,unselect:m,unselectAll:y,selectedCount:g}}function et(n,t){const l=e.ref(!1),o=e.ref(new Set),s=e.ref(new Map);Be(n,(c,N,w,A)=>{A.forEach(_=>s.value.delete(_[t])),w.forEach(_=>s.value.set(_[t],_))});const i=e.computed(()=>{let c=[];if(l.value!=null)l.value&&(c=Array.from(s.value.values()));else if(o.value.size){let N;o.value.forEach(w=>{N=s.value.get(w),N&&c.push(N)})}return c}),a=e.computed(()=>{let c=0;return l.value!=null?l.value&&(c=s.value.size):c=o.value.size,c}),r=e.computed(()=>{let c;if(l.value!=null)c=l.value;else{const N=o.value.size,w=s.value.size;c=N==w}return c});function d(){o.value=new Set(Array.from(s.value.keys())),l.value=null}function M(){o.value=new Set,l.value=null}function u(c){y(()=>{c.forEach(N=>{o.value.add(N[t])})})}function f(c){y(()=>{c.forEach(N=>{o.value.delete(N[t])})})}function m(c){return l.value!=null?l.value:o.value.has(c[t])}function y(c){l.value!=null&&(l.value?o.value=new Set(Array.from(s.value.keys())):o.value=new Set),c(),o.value.size==0?l.value=!1:o.value.size==s.value.size?l.value=!0:l.value=null}function g(c){y(()=>{c.forEach(N=>{m(N)?o.value.delete(N[t]):o.value.add(N[t])})})}function I(){const{value:c}=r;c?l.value=!1:l.value=!0}return e.provide(ee,I),e.provide(te,g),e.provide(ne,m),e.provide(oe,i),e.provide(le,u),e.provide(se,d),e.provide(ae,f),e.provide(ie,r),e.provide(Z,M),e.provide(Z,M),e.provide(re,a),{selected:i,select:u,selectAll:d,unselect:f,unselectAll:M,toggle:g,toggleAll:I,isSelected:m,isAllSelected:r}}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:l={},getSelectMap:o=()=>({})}){const{select:s=ce("\u9009\u62E9"),unselect:i=ce("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ce("\u53D6\u6D88\u5168\u9009")}=o();let r={};const d=e.computed(()=>Te(t==="colum"?Gt:Xt,50)),M=new Set,u=e.ref(!0),f=e.ref(),m=e.ref(!1),y=e.ref({x:0,y:0}),g=e.ref({x:0,y:0,scrollTop:0}),I=new ResizeObserver(D=>c.value=D[0].target.getBoundingClientRect()),c=e.ref({}),N=e.ref({top:0,height:0,sync(D=!1){N.value.top=f.value?.scrollTop||0,D&&(N.value.height=f.value?.scrollHeight||0)}}),w=e.computed(()=>m.value?{left:Math.min(y.value.x,g.value.x)-c.value.left,top:Math.min(y.value.y,g.value.y)-c.value.top,width:Math.abs(y.value.x-g.value.x),height:Math.abs(y.value.y-g.value.y)}:{left:0,top:0,width:0,height:0}),{margin:A=50,startSpeed:_=30,maxSpeed:U=30}=l;let C;const z=A,L=_,Y=U,$=D=>D**1;let b=0;function R(D){if(cancelAnimationFrame(C),b=W(D),b=Math.max(Math.min(b,Y),-Y),b!==0){const T=f.value;if(!T||!m.value)return;const k=N.value.height-c.value.height;let j=N.value.top+Number(b);j=Math.min(Math.max(0,j),k),T.scrollTop=j,P(),C=requestAnimationFrame(()=>R(D))}}function W(D){if(f.value){const k=c.value,j=k.bottom-D;if(j<z)return L*$(1-j/z);const Q=D-k.top;if(Q<z)return-L*$(1-Q/z)}return 0}function H(D){const T={...w.value,right:0,bottom:0};return T.left+=c.value.left,T.top+=c.value.top-N.value.top,T.right=T.width+T.left,T.bottom=T.height+T.top,T.left<D.right&&T.right>D.left&&T.top<D.bottom&&T.bottom>D.top}function P(){N.value.sync();const{top:D,height:T}=N.value;g.value.y=Math.min(T+c.value.top,g.value.y+D-g.value.scrollTop),g.value.scrollTop=D}function E(D,T,k="dynamic-styles"){let j=document.getElementById(k);j||(j=document.createElement("style"),j.id=k,document.head.appendChild(j));const Q=j.sheet.cssRules,V=Q.length,qt=`${D} { ${T} }`;for(let fe=0;fe<V;fe++){const xe=Q[fe];if(xe.selectorText===D&&xe.style.cssText===T)return}j.sheet.insertRule(qt,V)}function p(D,T){u.value=!0,m.value=!0,N.value.height?N.value.sync():N.value.sync(!0),y.value.x=D,y.value.y=T+N.value.top,g.value.x=y.value.x,g.value.y=y.value.y,f.value?.classList.add("disable-scroll-behavior"),M.clear()}function x(D,T,k){!m.value||(u.value&&t==="colum"&&!O()&&(a(),u.value=!1),k?.(),R(T),g.value.x=Math.max(D,c.value.left),g.value.y=Math.min(T+N.value.top,N.value.height+c.value.top),g.value.scrollTop=N.value.top,d.value())}function S(){m.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function v(){!m.value||(b||P(),d.value())}function O(){if(!m.value)return!1;const{width:D,height:T}=w.value;return!(Math.max(D,T)>5)}function Me(){O()&&a()}function Gt(){O()||f.value?.querySelectorAll(`[${n}]`).forEach(D=>{r[`${n}`]=D.getAttribute(`${n}`),H(D.getBoundingClientRect())?s([r]):i([r])})}function Xt(){const D=[];let T=null,k=0;f.value?.querySelectorAll(`[${n}]`).forEach((j,Q)=>{const V=j.getAttribute(`${n}`);D.push(V),H(j.getBoundingClientRect())?(T===null&&(T=Q),T=Math.min(T,Q),k=Math.max(k,Q)):(r[`${n}`]=V,M.has(V)&&i([r]))});for(let j=T;j<k+1;j++)r[`${n}`]=D[j],s([r]),M.add(D[j])}function Jt(D){return!D?.value||(f.value=D.value,!f?.value)?!1:(I.observe(f.value),E(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Jt,dragStart:p,dragMove:x,dragEnd:S,onScroll:v,isSingleClick:O,cancelSelectAllBySingleClick:Me,selectFn:d,selectRange:w,isPressing:m,containerEl:f,observer:I}}function tt(n){const t=ue(n),{observer:l,selectRange:o}=t,{onScroll:s,dragStart:i,dragMove:a,dragEnd:r,cancelSelectAllBySingleClick:d}=t,M=e.computed(()=>({left:`${o.value.left}px`,top:`${o.value.top}px`,width:`${o.value.width}px`,height:`${o.value.height}px`})),{load:u}=q(`.drag-select-box {
|
|
1
|
+
(function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.ui={},h.Vue))})(this,function(h,e){"use strict";const ge={created(n,t){let l,o;function s(a){l=a.clientX,o=a.clientY}function i(a){if(l===void 0)return;const r=a.clientX,d=a.clientY,M=Math.abs(r-l),u=Math.abs(d-o);M>5||u>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:l,ms:o=1500}=t.value;let s=null;function i(a){s||(l(a),s=setTimeout(()=>{s=null},o))}n.addEventListener("click",i)}};var me;const F=typeof window<"u",Ne=n=>typeof n=="function";F&&((me=window?.navigator)==null?void 0:me.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K(n){return typeof n=="function"?n():e.unref(n)}function ye(n,t){function l(...o){n(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})}return l}function _e(n,t={}){let l,o;return i=>{const a=K(n),r=K(t.maxWait);if(l&&clearTimeout(l),a<=0||r!==void 0&&r<=0)return o&&(clearTimeout(o),o=null),i();r&&!o&&(o=setTimeout(()=>{l&&clearTimeout(l),o=null,i()},r)),l=setTimeout(()=>{o&&clearTimeout(o),o=null,i()},a)}}function ke(n,t=!0,l=!0){let o=0,s,i=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return d=>{const M=K(n),u=Date.now()-o;if(a(),M<=0)return o=Date.now(),d();u>M&&(l||!i)?(o=Date.now(),d()):t&&(s=setTimeout(()=>{o=Date.now(),i=!0,a(),d()},M)),!l&&!s&&(s=setTimeout(()=>i=!0,M)),i=!1}}function be(n){return n}function Qe(n,t){let l,o,s;const i=e.ref(!0),a=()=>{i.value=!0,s()};e.watch(n,a,{flush:"sync"});const r=Ne(t)?t:t.get,d=Ne(t)?void 0:t.set,M=e.customRef((u,f)=>(o=u,s=f,{get(){return i.value&&(l=r(),i.value=!1),o(),l},set(m){d?.(m)}}));return Object.isExtensible(M)&&(M.trigger=a),M}function De(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function he(n,t=200,l={}){return ye(_e(t,l),n)}function Te(n,t=200,l=!1,o=!0){return ye(ke(t,l,o),n)}function pe(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function Be(n,t,l){let o=l?.immediate?[]:[...n instanceof Function?n():Array.isArray(n)?n:e.unref(n)];return e.watch(n,(s,i,a)=>{const r=new Array(o.length),d=[];for(const u of s){let f=!1;for(let m=0;m<o.length;m++)if(!r[m]&&u===o[m]){r[m]=!0,f=!0;break}f||d.push(u)}const M=o.filter((u,f)=>!r[f]);t(s,o,d,M,a),o=[...s]},l)}function we(n){var t;const l=K(n);return(t=l?.$el)!=null?t:l}const Ue=F?window:void 0,Ye=F?window.document:void 0;F&&window.navigator,F&&window.location;function $e(n,t=!1){const l=e.ref(),o=()=>l.value=Boolean(n());return o(),pe(o,t),l}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 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,He=Object.prototype.propertyIsEnumerable,Ve=(n,t)=>{var l={};for(var o in n)Re.call(n,o)&&t.indexOf(o)<0&&(l[o]=n[o]);if(n!=null&&Ee)for(var o of Ee(n))t.indexOf(o)<0&&He.call(n,o)&&(l[o]=n[o]);return l};function Fe(n,t,l={}){const o=l,{window:s=Ue}=o,i=Ve(o,["window"]);let a;const r=$e(()=>s&&"ResizeObserver"in s),d=()=>{a&&(a.disconnect(),a=void 0)},M=e.watch(()=>we(n),f=>{d(),r.value&&s&&f&&(a=new ResizeObserver(t),a.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{d(),M()};return De(u),{isSupported:r,stop:u}}function We(n,t={width:0,height:0},l={}){const{box:o="content-box"}=l,s=e.ref(t.width),i=e.ref(t.height);return Fe(n,([a])=>{const r=o==="border-box"?a.borderBoxSize:o==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;r?(s.value=r.reduce((d,{inlineSize:M})=>d+M,0),i.value=r.reduce((d,{blockSize:M})=>d+M,0)):(s.value=a.contentRect.width,i.value=a.contentRect.height)},l),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 Ke=0;function q(n,t={}){const l=e.ref(!1),{document:o=Ye,immediate:s=!0,manual:i=!1,id:a=`vueuse_styletag_${++Ke}`}=t,r=e.ref(n);let d=()=>{};const M=()=>{if(!o)return;const f=o.getElementById(a)||o.createElement("style");f.type="text/css",f.id=a,t.media&&(f.media=t.media),o.head.appendChild(f),!l.value&&(d=e.watch(r,m=>{f.innerText=m},{immediate:!0}),l.value=!0)},u=()=>{!o||!l.value||(d(),o.head.removeChild(o.getElementById(a)),l.value=!1)};return s&&!i&&pe(M),i||De(u),{id:a,css:r,unload:u,load:M,isLoaded:e.readonly(l)}}var Ze=Object.defineProperty,ze=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,je=(n,t,l)=>t in n?Ze(n,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[t]=l,Je=(n,t)=>{for(var l in t||(t={}))Ge.call(t,l)&&je(n,l,t[l]);if(ze)for(var l of ze(t))Xe.call(t,l)&&je(n,l,t[l]);return n};Je({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 Ce(n,t){const{scrollEndHook:l,itemHeight:o,overscan:s=5}=t,i=e.ref(null),a=We(i),r=e.ref(!0),d=he(U,100);let M;const u=e.shallowRef(n),f=e.ref(0),m=e.ref({start:0,end:10}),y=e.ref({start:0,end:s});let g=0;const I=e.ref([]),c=e.computed(()=>{let{sum:E,height:p}={sum:0,height:0};return u.value.map((x,S)=>(typeof o=="number"?p=o:p=o(S),E+=p,{height:p,sum:E}))}),N=e.computed(()=>$(m.value.start)),w=e.computed(()=>typeof o=="number"?c.value.length*o:c.value[c.value.length-1]?.sum||0),A=e.computed(()=>{const{start:E,end:p}=y.value;return I.value.slice(E,p)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(M)),e.watch(u,()=>{(a.width.value||a.height.value)&&v()},{deep:!0}),e.watch([a.width,a.height],([E,p])=>{(E||p)&&v()},{deep:!0}),e.watch(f,()=>{_(),d()});function _(){r.value=!1}function U(){r.value=!0,l?.()}function v(){cancelAnimationFrame(M),M=requestAnimationFrame(z)}function z(){if(i.value){f.value=i.value.scrollTop;let E=L(f.value);g=Y(E);let p=Math.max(0,E-s),x=Math.min(E+g+s,u.value.length);m.value={start:p,end:x},I.value=u.value.slice(p,x).map((S,C)=>({data:S,index:C+p})),y.value.start=E-p,y.value.end=y.value.start+g}}function L(E){let p=0,x=c.value.length-1,S=-1;for(;p<=x;){const C=Math.floor((p+x)/2);c.value[C].sum>=E?(S=C,x=C-1):p=C+1}return Math.max(0,S)}function Y(E){let p=0,x=0;for(let S=E;S<c.value.length&&(p++,x+=c.value[S].height,!(x>=a.height.value));S++);return p}function $(E){if(typeof o=="number")return E*o;let p=c.value[E];return p?p.sum-p.height:0}function b(E){return c.value[E]||{sum:0,height:0}}function R(E){if(i.value){const p=b(E);i.value.scrollTop=p.sum-p.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, ${N.value}px, 0)`,"will-change":"transform"}})),P={overflowY:"auto"};return{list:I,visiableList:A,getItemHeightData:b,getoffsetTopIndex:L,totalHeight:w,clientHeight:a.height,scrollTo:R,scrollTop:f,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 qe(){const{voidFn:n,boolFn:t,boolRef:l,numberRef:o,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,l),d=e.inject(te,n),M=e.inject(ee,n),u=e.inject(le,n),f=e.inject(se,n),m=e.inject(ae,n),y=e.inject(Z,n),g=e.inject(re,o);return{selected:i,isSelected:a,isAllSelected:r,toggle:d,toggleAll:M,select:u,selectAll:f,unselect:m,unselectAll:y,selectedCount:g}}function et(n,t){const l=e.ref(!1),o=e.ref(new Set),s=e.ref(new Map);Be(n,(c,N,w,A)=>{A?.forEach(_=>s.value.delete(_[t])),w.forEach(_=>s.value.set(_[t],_))},{immediate:!0});const i=e.computed(()=>{let c=[];if(l.value!=null)l.value&&(c=Array.from(s.value.values()));else if(o.value.size){let N;o.value.forEach(w=>{N=s.value.get(w),N&&c.push(N)})}return c}),a=e.computed(()=>{let c=0;return l.value!=null?l.value&&(c=s.value.size):c=o.value.size,c}),r=e.computed(()=>{let c;if(l.value!=null)c=l.value;else{const N=o.value.size,w=s.value.size;c=N==w}return c});function d(){l.value=!0}function M(){l.value=!1}function u(c){y(()=>{c.forEach(N=>{o.value.add(N[t])})})}function f(c){y(()=>{c.forEach(N=>{o.value.delete(N[t])})})}function m(c){return l.value!=null?l.value:o.value.has(c[t])}function y(c){l.value!=null&&(l.value?o.value=new Set(Array.from(s.value.keys())):o.value=new Set),c(),o.value.size==0?l.value=!1:o.value.size==s.value.size?l.value=!0:l.value=null}function g(c){y(()=>{c.forEach(N=>{m(N)?o.value.delete(N[t]):o.value.add(N[t])})})}function I(){const{value:c}=r;c?M():d()}return e.provide(ee,I),e.provide(te,g),e.provide(ne,m),e.provide(oe,i),e.provide(le,u),e.provide(se,d),e.provide(ae,f),e.provide(ie,r),e.provide(Z,M),e.provide(Z,M),e.provide(re,a),{selected:i,select:u,selectAll:d,unselect:f,unselectAll:M,toggle:g,toggleAll:I,isSelected:m,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:l={},getSelectMap:o=()=>({})}){const{select:s=ce("\u9009\u62E9"),unselect:i=ce("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ce("\u53D6\u6D88\u5168\u9009")}=o();let r={};const d=e.computed(()=>Te(t==="colum"?Gt:Xt,50)),M=new Set,u=e.ref(!0),f=e.ref(),m=e.ref(!1),y=e.ref({x:0,y:0}),g=e.ref({x:0,y:0,scrollTop:0}),I=new ResizeObserver(D=>c.value=D[0].target.getBoundingClientRect()),c=e.ref({}),N=e.ref({top:0,height:0,sync(D=!1){N.value.top=f.value?.scrollTop||0,D&&(N.value.height=f.value?.scrollHeight||0)}}),w=e.computed(()=>m.value?{left:Math.min(y.value.x,g.value.x)-c.value.left,top:Math.min(y.value.y,g.value.y)-c.value.top,width:Math.abs(y.value.x-g.value.x),height:Math.abs(y.value.y-g.value.y)}:{left:0,top:0,width:0,height:0}),{margin:A=50,startSpeed:_=30,maxSpeed:U=30}=l;let v;const z=A,L=_,Y=U,$=D=>D**1;let b=0;function R(D){if(cancelAnimationFrame(v),b=W(D),b=Math.max(Math.min(b,Y),-Y),b!==0){const T=f.value;if(!T||!m.value)return;const k=N.value.height-c.value.height;let j=N.value.top+Number(b);j=Math.min(Math.max(0,j),k),T.scrollTop=j,P(),v=requestAnimationFrame(()=>R(D))}}function W(D){if(f.value){const k=c.value,j=k.bottom-D;if(j<z)return L*$(1-j/z);const Q=D-k.top;if(Q<z)return-L*$(1-Q/z)}return 0}function H(D){const T={...w.value,right:0,bottom:0};return T.left+=c.value.left,T.top+=c.value.top-N.value.top,T.right=T.width+T.left,T.bottom=T.height+T.top,T.left<D.right&&T.right>D.left&&T.top<D.bottom&&T.bottom>D.top}function P(){N.value.sync();const{top:D,height:T}=N.value;g.value.y=Math.min(T+c.value.top,g.value.y+D-g.value.scrollTop),g.value.scrollTop=D}function E(D,T,k="dynamic-styles"){let j=document.getElementById(k);j||(j=document.createElement("style"),j.id=k,document.head.appendChild(j));const Q=j.sheet.cssRules,V=Q.length,qt=`${D} { ${T} }`;for(let fe=0;fe<V;fe++){const xe=Q[fe];if(xe.selectorText===D&&xe.style.cssText===T)return}j.sheet.insertRule(qt,V)}function p(D,T){u.value=!0,m.value=!0,N.value.height?N.value.sync():N.value.sync(!0),y.value.x=D,y.value.y=T+N.value.top,g.value.x=y.value.x,g.value.y=y.value.y,f.value?.classList.add("disable-scroll-behavior"),M.clear()}function x(D,T,k){!m.value||(u.value&&t==="colum"&&!O()&&(a(),u.value=!1),k?.(),R(T),g.value.x=Math.max(D,c.value.left),g.value.y=Math.min(T+N.value.top,N.value.height+c.value.top),g.value.scrollTop=N.value.top,d.value())}function S(){m.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function C(){!m.value||(b||P(),d.value())}function O(){if(!m.value)return!1;const{width:D,height:T}=w.value;return!(Math.max(D,T)>5)}function Me(){O()&&a()}function Gt(){O()||f.value?.querySelectorAll(`[${n}]`).forEach(D=>{r[`${n}`]=D.getAttribute(`${n}`),H(D.getBoundingClientRect())?s([r]):i([r])})}function Xt(){const D=[];let T=null,k=0;f.value?.querySelectorAll(`[${n}]`).forEach((j,Q)=>{const V=j.getAttribute(`${n}`);D.push(V),H(j.getBoundingClientRect())?(T===null&&(T=Q),T=Math.min(T,Q),k=Math.max(k,Q)):(r[`${n}`]=V,M.has(V)&&i([r]))});for(let j=T;j<k+1;j++)r[`${n}`]=D[j],s([r]),M.add(D[j])}function Jt(D){return!D?.value||(f.value=D.value,!f?.value)?!1:(I.observe(f.value),E(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Jt,dragStart:p,dragMove:x,dragEnd:S,onScroll:C,isSingleClick:O,cancelSelectAllBySingleClick:Me,selectFn:d,selectRange:w,isPressing:m,containerEl:f,observer:I}}function tt(n){const t=ue(n),{observer:l,selectRange:o}=t,{onScroll:s,dragStart:i,dragMove:a,dragEnd:r,cancelSelectAllBySingleClick:d}=t,M=e.computed(()=>({left:`${o.value.left}px`,top:`${o.value.top}px`,width:`${o.value.width}px`,height:`${o.value.height}px`})),{load:u}=q(`.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}),f=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:M.value})}});function m(N){N.button===0&&i(N.x,N.y)}function y(N){a(N.x,N.y)}function g(N){N.composedPath().some(A=>A?.getAttribute?.(n.attribute))||d(),r()}function I(N){try{if(!t.init(N))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!t.containerEl?.value)return!1;e.render(e.h(f),t.containerEl.value),u(),t.containerEl.value?.addEventListener("scroll",s),t.containerEl.value?.addEventListener("mousedown",m),window.addEventListener("mousemove",y),window.addEventListener("mouseup",g)}catch(w){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",w)}}function c(){l.disconnect(),t.containerEl.value?.removeEventListener("scroll",s),t.containerEl.value?.removeEventListener("mousedown",m),window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",g)}return{init:I,unMount:c}}function nt(n,t,l=600){const o=ue({...n,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=o,{onScroll:i,dragStart:a,dragMove:r,dragEnd:d}=o;let M;function u(){clearTimeout(M)}function f(c){u(),c.composedPath().some(w=>!!w?.getAttribute?.(n.attribute))&&(M=setTimeout(()=>{const{clientX:w,clientY:A}=c.targetTouches[0];a(w,A),t?.(),r(w,A,()=>c.preventDefault()),c.preventDefault()},l))}function m(c){u();const{clientX:N,clientY:w}=c.targetTouches[0];r(N,w,()=>c.preventDefault())}function y(){u(),d()}function g(c){try{if(!o.init(c))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!o.containerEl?.value)return!1;o.containerEl.value?.addEventListener("scroll",i),o.containerEl.value?.addEventListener("touchstart",f),o.containerEl.value?.addEventListener("touchmove",m),window.addEventListener("touchcancel",y),window.addEventListener("touchend",y)}catch(N){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",N)}}function I(){s.disconnect(),o.containerEl.value?.removeEventListener("scroll",i),o.containerEl.value?.removeEventListener("touchstart",f),o.containerEl.value?.removeEventListener("touchmove",m),window.removeEventListener("touchcancel",y),window.removeEventListener("touchEnd",y)}return{init:g,unMount:I}}const
|
|
6
|
+
}`,{id:"styletag_lzc_dragselect",manual:!0}),f=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:M.value})}});function m(N){N.button===0&&i(N.x,N.y)}function y(N){a(N.x,N.y)}function g(N){N.composedPath().some(A=>A?.getAttribute?.(n.attribute))||d(),r()}function I(N){try{if(!t.init(N))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!t.containerEl?.value)return!1;e.render(e.h(f),t.containerEl.value),u(),t.containerEl.value?.addEventListener("scroll",s),t.containerEl.value?.addEventListener("mousedown",m),window.addEventListener("mousemove",y),window.addEventListener("mouseup",g)}catch(w){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",w)}}function c(){l.disconnect(),t.containerEl.value?.removeEventListener("scroll",s),t.containerEl.value?.removeEventListener("mousedown",m),window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",g)}return{init:I,unMount:c}}function nt(n,t,l=600){const o=ue({...n,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=o,{onScroll:i,dragStart:a,dragMove:r,dragEnd:d}=o;let M;function u(){clearTimeout(M)}function f(c){u(),c.composedPath().some(w=>!!w?.getAttribute?.(n.attribute))&&(M=setTimeout(()=>{const{clientX:w,clientY:A}=c.targetTouches[0];a(w,A),t?.(),r(w,A,()=>c.preventDefault()),c.preventDefault()},l))}function m(c){u();const{clientX:N,clientY:w}=c.targetTouches[0];r(N,w,()=>c.preventDefault())}function y(){u(),d()}function g(c){try{if(!o.init(c))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!o.containerEl?.value)return!1;o.containerEl.value?.addEventListener("scroll",i),o.containerEl.value?.addEventListener("touchstart",f),o.containerEl.value?.addEventListener("touchmove",m),window.addEventListener("touchcancel",y),window.addEventListener("touchend",y)}catch(N){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",N)}}function I(){s.disconnect(),o.containerEl.value?.removeEventListener("scroll",i),o.containerEl.value?.removeEventListener("touchstart",f),o.containerEl.value?.removeEventListener("touchmove",m),window.removeEventListener("touchcancel",y),window.removeEventListener("touchEnd",y)}return{init:g,unMount:I}}const ve=Symbol(),ot={key:0,class:"lzc-modal"},lt=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 l=n,o=()=>{l.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",ot,[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),()=>o()]]):e.createCommentVNode("",!0)]),_:3}))}}),tn="",B=(n,t)=>{const l=n.__vccOpts||n;for(const[o,s]of t)l[o]=s;return l},st=B(lt,[["__scopeId","data-v-4ff684af"]]);function at(n){function t(l,o){const s=document.createElement("div"),i={setup(){return()=>e.h(st,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...n},{default:()=>e.h(l,o)})}};return document.body.appendChild(s),e.render(e.h(i),s),{close:()=>s?.remove()}}return{create:t}}function Le({component:n,componentProps:t,delay:l=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,i=`${l}ms`;return q(`@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=Pe();return e.onMounted(()=>{r.value.classList.add(s)}),()=>e.h(n,t)}})}}function it({component:n,componentProps:t,delay:l=300}){const{LoadingComp:o}=Le({component:n,componentProps:t,delay:l}),s=e.ref(!1);function i(){s.value=!0}function a(){s.value=!1}return{LoadingComp:o,loading:s,load:i,unload:a}}const rt=[(n=>(e.pushScopeId("data-v-d0ad7597"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],ct=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,l)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),rt,16))}}),ln="",ut=B(ct,[["__scopeId","data-v-d0ad7597"]]);async function dt(n){return new Promise(t=>setTimeout(()=>t(),n))}const Mt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAg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BMMTQuNTg2OTY1NSwxMi41Mzg4OTY2IEMxNC44NTg1ODkzLDEyLjgxMDQ2OTkgMTUuMDExMTkwMiwxMy4xNzg4MzI3IDE1LjAxMTE5MDIsMTMuNTYyOTMxIEMxNS4wMTExOTAyLDEzLjk0NzAyOTQgMTQuODU4NTg5MywxNC4zMTUzOTIyIDE0LjU4Njk2NTUsMTQuNTg2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",gt=["onClick"],mt=["onClick"],Nt=["src"],yt=["src"],Dt=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 l=n,o="lzc-loading-toast",s=e.computed(()=>{let d={};return l.captureEvent&&(d.pointerEvents="none"),d}),i=e.computed(()=>{let d={};return l.width&&(d.width=l.width),l.maxWidth&&(d.maxWidth=l.maxWidth),l.overlayContentStyle&&(d={...d,...l.overlayContentStyle}),d});function a(){l.closeOnClickOverlay&&t("close")}function r(){l.closeOnClick&&t("close")}return(d,M)=>(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:o,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${o} ${n.className}`),onClick:e.withModifiers(a,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${o}-wrap`),onClick:e.withModifiers(r,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${o}-content`),style:e.normalizeStyle(e.unref(i))},[n.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:M[0]||(M[0]=e.withModifiers(u=>t("close"),["stop"])),src:e.unref(Mt),class:e.normalizeClass(`${o}-close`)},null,10,Nt)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(ft),class:e.normalizeClass(`${o}-icon`)},null,10,yt)):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${o}-message`)},e.toDisplayString(n.message),3)):e.createCommentVNode("",!0)],6)],10,mt)],10,gt),[[e.vShow,n.visible]])],4)]),_:1}))}}),sn="",an="",ht=B(Dt,[["__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=ht}async show(){const t=this.options,o={...t,onClose:function(){G.close(),t?.onClose?.()}},s=e.createVNode(this.loadingToast,o);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 dt(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 l=t?.loading!==!1,o=t?.autoClose!==!1,s=t?.delay!=null?t.delay:200,i=e.ref(!1);let a=null;const r=new G({message:t?.message,duration:t?.duration,width:t?.width,maxWidth:t?.maxWidth,showIcon:t?.showIcon,icon:t?.icon,showClose:t?.showClose,closeOnClick:t?.closeOnClick,closeOnClickOverlay:t?.closeOnClickOverlay,className:t?.className,overlayContentStyle:t?.overlayContentStyle,captureEvent:t?.captureEvent,onClose:t?.onClose});async function d(){if(!i.value){i.value=!0,a=setTimeout(()=>{!l||!i.value||r.show()},s);try{await n(),await M(o)}catch(u){console.error(u),await M(o),await t?.onError?.(u)}}}async function M(u=!0){i.value=!1,a&&clearTimeout(a),a=null,u&&await r.destory()}return e.onBeforeUnmount(M),{processing:i,handler:d,close:M}}const pt=["onClick"],wt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(n){const t=n,l=e.ref(),o=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% - ${o.value}px)`})),r=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function d(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{o.value=l.value.offsetWidth/2,s.value=l.value.offsetHeight/2}),(M,u)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:l,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,pt))}}),rn="",Et=B(wt,[["__scopeId","data-v-533e986b"]]),Ae={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class It{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 l=this.options.duration||Ae.duration;setTimeout(()=>{this.dismiss()},l)}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 zt=["xlink:href","fill","color"],jt=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(n){const t=n,l=e.computed(()=>`#${t.prefix}-${t.name}`),o=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(o),...s(i.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(l),fill:n.color,color:n.color},null,8,zt)],4))}});function vt(n){const{containerEl:t,sliderEl:l,autoHeight:o,performance:s={},maxHeightRatio:i=.9,observeMethod:a="classList"}=n,r=e.ref(!0),d=he($,100);let M,u="";const f=e.ref(0),m=e.ref(0),y=e.ref(0),g=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),I=e.ref({clientHeight:0}),c=e.computed(()=>!!m.value),N=e.computed(()=>g.value.scrollHeight>g.value.clientHeight),w=e.computed(()=>o?g.value.clientHeight-U.value:g.value.clientHeight-I.value.clientHeight),A=e.computed(()=>g.value.scrollHeight-g.value.clientHeight),_=e.computed(()=>Math.max(g.value.clientHeight/g.value.scrollHeight,.05)),U=e.computed(()=>_.value>i?0:_.value*g.value.clientHeight),C=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${y.value}px,0)`,height:o?`${U.value}px`:void 0}));function z(v){Y(),m.value=v.clientY-l.value.getBoundingClientRect().top||1,u=getComputedStyle(t.value).scrollBehavior,u==="smooth"&&(t.value.style.scrollBehavior="unset")}function L(){t.value.style.scrollBehavior=u,m.value=0,d()}function Y(){r.value=!1}function $(){c.value||(r.value=!0)}function b(v){if(!c.value)return;let O=v.clientY-g.value.top-m.value;O<0?y.value=0:O>=w.value?y.value=w.value:y.value=O,t.value.scrollTo({top:y.value/w.value*A.value})}function R(){c.value||W()}function W(){cancelAnimationFrame(M),M=requestAnimationFrame(H)}function H(){t.value&&(f.value=s.scrollTop?.value??t.value.scrollTop,y.value=f.value/A.value*w.value)}function P(v){let O="addEventListener";v==="add"?O="addEventListener":O="removeEventListener",l.value?.[O]("pointerdown",z,{passive:!0}),window[O]("pointermove",b,{passive:!0}),window[O]("pointerup",L,{passive:!0})}const E=new MutationObserver(v=>{(a=="classList"||v.map(Me=>Me.oldValue).join().includes("height"))&&p()});function p(){g.value.top=t.value?.getBoundingClientRect().top??0,g.value.scrollHeight=t.value?.scrollHeight??0,g.value.clientHeight=t.value?.clientHeight??0}function x(){Y(),setTimeout(()=>{I.value.clientHeight=l.value?.clientHeight??0,$()},150)}function S(){if(t.value&&l.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",R,{passive:!0}),P("add");const v={};a==="classList"?Object.assign(v,{subtree:!0,childList:!0}):Object.assign(v,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),E.observe(t.value,v),setTimeout(()=>{p()},100),x()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:l})}return e.watch(f,()=>{Y(),d()}),{isScrollEnd:r,isDragSlider:c,offsetTop:y,scrollTop:f,scrollable:N,sliderPos:C,init:S,modifySliderEventListener:P}}const Ct=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Lt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(n,{expose:t}){const l=n,o=!!e.useSlots().default,s=e.ref(null),i=e.computed(()=>l.containerEl),a=vt({containerEl:i,sliderEl:s,autoHeight:o?l.autoHeight:!0,performance:l.performance,observeMethod:l.observeMethod}),{scrollable:r,isScrollEnd:d,sliderPos:M}=a,u=e.ref(!1),f=l.autoHide?e.computed(()=>u.value||!d.value):e.computed(()=>r.value),{load:m}=q(`.hide-scrollbar {
|
|
14
|
+
}`),{LoadingComp:e.defineComponent({setup(){const r=Pe();return e.onMounted(()=>{r.value.classList.add(s)}),()=>e.h(n,t)}})}}function it({component:n,componentProps:t,delay:l=300}){const{LoadingComp:o}=Le({component:n,componentProps:t,delay:l}),s=e.ref(!1);function i(){s.value=!0}function a(){s.value=!1}return{LoadingComp:o,loading:s,load:i,unload:a}}const rt=[(n=>(e.pushScopeId("data-v-d0ad7597"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],ct=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,l)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),rt,16))}}),ln="",ut=B(ct,[["__scopeId","data-v-d0ad7597"]]);async function dt(n){return new Promise(t=>setTimeout(()=>t(),n))}const Mt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnI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: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 l=n,o="lzc-loading-toast",s=e.computed(()=>{let d={};return l.captureEvent&&(d.pointerEvents="none"),d}),i=e.computed(()=>{let d={};return l.width&&(d.width=l.width),l.maxWidth&&(d.maxWidth=l.maxWidth),l.overlayContentStyle&&(d={...d,...l.overlayContentStyle}),d});function a(){l.closeOnClickOverlay&&t("close")}function r(){l.closeOnClick&&t("close")}return(d,M)=>(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:o,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${o} ${n.className}`),onClick:e.withModifiers(a,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${o}-wrap`),onClick:e.withModifiers(r,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${o}-content`),style:e.normalizeStyle(e.unref(i))},[n.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:M[0]||(M[0]=e.withModifiers(u=>t("close"),["stop"])),src:e.unref(Mt),class:e.normalizeClass(`${o}-close`)},null,10,Nt)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(ft),class:e.normalizeClass(`${o}-icon`)},null,10,yt)):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${o}-message`)},e.toDisplayString(n.message),3)):e.createCommentVNode("",!0)],6)],10,mt)],10,gt),[[e.vShow,n.visible]])],4)]),_:1}))}}),sn="",an="",ht=B(Dt,[["__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=ht}async show(){const t=this.options,o={...t,onClose:function(){G.close(),t?.onClose?.()}},s=e.createVNode(this.loadingToast,o);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 dt(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 l=t?.loading!==!1,o=t?.autoClose!==!1,s=t?.delay!=null?t.delay:200,i=e.ref(!1);let a=null;const r=new G({message:t?.message,duration:t?.duration,width:t?.width,maxWidth:t?.maxWidth,showIcon:t?.showIcon,icon:t?.icon,showClose:t?.showClose,closeOnClick:t?.closeOnClick,closeOnClickOverlay:t?.closeOnClickOverlay,className:t?.className,overlayContentStyle:t?.overlayContentStyle,captureEvent:t?.captureEvent,onClose:t?.onClose});async function d(){if(!i.value){i.value=!0,a=setTimeout(()=>{!l||!i.value||r.show()},s);try{await n(),await M(o)}catch(u){console.error(u),await M(o),await t?.onError?.(u)}}}async function M(u=!0){i.value=!1,a&&clearTimeout(a),a=null,u&&await r.destory()}return e.onBeforeUnmount(M),{processing:i,handler:d,close:M}}const pt=["onClick"],wt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(n){const t=n,l=e.ref(),o=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% - ${o.value}px)`})),r=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function d(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{o.value=l.value.offsetWidth/2,s.value=l.value.offsetHeight/2}),(M,u)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:l,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,pt))}}),rn="",Et=B(wt,[["__scopeId","data-v-533e986b"]]),Ae={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class It{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 l=this.options.duration||Ae.duration;setTimeout(()=>{this.dismiss()},l)}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 zt=["xlink:href","fill","color"],jt=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(n){const t=n,l=e.computed(()=>`#${t.prefix}-${t.name}`),o=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(o),...s(i.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(l),fill:n.color,color:n.color},null,8,zt)],4))}});function Ct(n){const{containerEl:t,sliderEl:l,autoHeight:o,performance:s={},maxHeightRatio:i=.9,observeMethod:a="classList"}=n,r=e.ref(!0),d=he($,100);let M,u="";const f=e.ref(0),m=e.ref(0),y=e.ref(0),g=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),I=e.ref({clientHeight:0}),c=e.computed(()=>!!m.value),N=e.computed(()=>g.value.scrollHeight>g.value.clientHeight),w=e.computed(()=>o?g.value.clientHeight-U.value:g.value.clientHeight-I.value.clientHeight),A=e.computed(()=>g.value.scrollHeight-g.value.clientHeight),_=e.computed(()=>Math.max(g.value.clientHeight/g.value.scrollHeight,.05)),U=e.computed(()=>_.value>i?0:_.value*g.value.clientHeight),v=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${y.value}px,0)`,height:o?`${U.value}px`:void 0}));function z(C){Y(),m.value=C.clientY-l.value.getBoundingClientRect().top||1,u=getComputedStyle(t.value).scrollBehavior,u==="smooth"&&(t.value.style.scrollBehavior="unset")}function L(){t.value.style.scrollBehavior=u,m.value=0,d()}function Y(){r.value=!1}function $(){c.value||(r.value=!0)}function b(C){if(!c.value)return;let O=C.clientY-g.value.top-m.value;O<0?y.value=0:O>=w.value?y.value=w.value:y.value=O,t.value.scrollTo({top:y.value/w.value*A.value})}function R(){c.value||W()}function W(){cancelAnimationFrame(M),M=requestAnimationFrame(H)}function H(){t.value&&(f.value=s.scrollTop?.value??t.value.scrollTop,y.value=f.value/A.value*w.value)}function P(C){let O="addEventListener";C==="add"?O="addEventListener":O="removeEventListener",l.value?.[O]("pointerdown",z,{passive:!0}),window[O]("pointermove",b,{passive:!0}),window[O]("pointerup",L,{passive:!0})}const E=new MutationObserver(C=>{(a=="classList"||C.map(Me=>Me.oldValue).join().includes("height"))&&p()});function p(){g.value.top=t.value?.getBoundingClientRect().top??0,g.value.scrollHeight=t.value?.scrollHeight??0,g.value.clientHeight=t.value?.clientHeight??0}function x(){Y(),setTimeout(()=>{I.value.clientHeight=l.value?.clientHeight??0,$()},150)}function S(){if(t.value&&l.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",R,{passive:!0}),P("add");const C={};a==="classList"?Object.assign(C,{subtree:!0,childList:!0}):Object.assign(C,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),E.observe(t.value,C),setTimeout(()=>{p()},100),x()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:l})}return e.watch(f,()=>{Y(),d()}),{isScrollEnd:r,isDragSlider:c,offsetTop:y,scrollTop:f,scrollable:N,sliderPos:v,init:S,modifySliderEventListener:P}}const vt=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Lt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(n,{expose:t}){const l=n,o=!!e.useSlots().default,s=e.ref(null),i=e.computed(()=>l.containerEl),a=Ct({containerEl:i,sliderEl:s,autoHeight:o?l.autoHeight:!0,performance:l.performance,observeMethod:l.observeMethod}),{scrollable:r,isScrollEnd:d,sliderPos:M}=a,u=e.ref(!1),f=l.autoHide?e.computed(()=>u.value||!d.value):e.computed(()=>r.value),{load:m}=q(`.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(()=>{m(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function y(){u.value=!0}function g(){u.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:y,onMouseleave:g,style:e.normalizeStyle(e.unref(M))},[e.renderSlot(I.$slots,"default",{},()=>[Ct],!0)],36),[[e.vShow,e.unref(f)]])]),_:3}))}}),un="",At=B(Lt,[["__scopeId","data-v-efefe52c"]]),Ot=n=>(e.pushScopeId("data-v-18377f18"),n=n(),e.popScopeId(),n),xt={class:"pull-refresh"},St={key:0,class:"pull-arrow-circle"},_t={key:0,class:"box-load"},kt={class:"left-load"},bt={class:"right-load"},Qt=Ot(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Bt={class:"pull-arrow"},Ut={key:1},Yt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(n){const t=n,l=.7,o="#2EC1CC",s=e.ref(-999),i=e.ref(1),a=e.ref(0),r=e.ref(.3),d=e.ref(!1),M=e.ref(0),u=e.ref(0),f=e.ref(0),m=e.ref(0),y=e.ref(0),g=e.ref(),I=e.computed(()=>t.scrollTop),c=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),N=e.computed(()=>({borderColor:o,transition:m.value,transform:`rotate(${100+a.value}deg)`,opacity:r.value}));e.watch(y,z=>{z===0&&(s.value=-50,r.value=.3)}),e.watch(u,z=>{if(y.value===2)return;const L=Math.pow(z,l);L===0&&(s.value=-50),L<=50&&L>0&&(s.value=L-45,a.value=Math.pow(L,1.5),L>15?d.value=!0:d.value=!1),L>50&&(s.value=5,r.value=1,y.value)});const w=e.ref(0),A=z=>{w.value=z.touches[0].pageY},_=z=>{const L=z.touches[0].pageY-w.value;w.value=z.touches[0].pageY,!t.refreshOff&&(!t?.refresh||y.value!==2&&I.value===0&&(M.value===0&&(M.value=z.touches[0].pageY),f.value=0,C.value.style.transition=`${f.value}ms`,m.value=0,u.value=z.touches[0].pageY-M.value,C.value.style.transform=`translate3d(0, ${Math.pow(u.value,l)}px, 0)`,L>0&&z.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||y.value===2)return;M.value=0,f.value=300;const z=Math.pow(u.value,l);C.value.style.transition=`${f.value}ms`,z>50?(y.value=2,u.value=Math.pow(50,1/l),C.value.style.transform=`translate3d(0, ${Math.pow(u.value,l)}px, 0)`,m.value=300,t?.refresh&&t?.refresh().then(()=>{g.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{g.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{y.value=0,u.value=0,C.value.style.transform=`translate3d(0, ${Math.pow(u.value,l)}px, 0)`,setTimeout(()=>{g.value=void 0},m.value)},600)})):(u.value=0,C.value.style.transform=`translate3d(0, ${Math.pow(u.value,l)}px, 0)`)},C=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(C.value=document.querySelector(t.pullRefreshContainer),C.value?.addEventListener("touchstart",A),C.value?.addEventListener("touchmove",_),C.value?.addEventListener("touchend",U))}),(z,L)=>(e.openBlock(),e.createElementBlock("div",xt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(c))},[g.value?(e.openBlock(),e.createElementBlock("div",Ut,e.toDisplayString(g.value),1)):(e.openBlock(),e.createElementBlock("div",St,[y.value==2?(e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("div",kt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:o})},null,4)]),e.createElementVNode("div",bt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:o})},null,4)]),Qt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(N))},[e.createElementVNode("div",Bt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:d.value}]),style:e.normalizeStyle({borderBottomColor:o})},null,6)])],4))]))],4)]))}}),dn="",Oe=B(Yt,[["__scopeId","data-v-18377f18"]]),$t={inheritAttrs:!1},Pt=e.defineComponent({...$t,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(n,{expose:t,emit:l}){const o=n,s=ve(e.toRef(o,"data"),{itemHeight:m=>o.itemHeight(o.data[m]),overscan:o.overscan,scrollEndHook:()=>{l("scrollEnd")}}),{list:i,containerProps:a,wrapperProps:r,innerProps:d,getItemHeightData:M,scrollTop:u}=s;t({vListReturn:s});const f="virtualListWrapper"+new Date().getTime();return(m,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:n.refresh,refreshOff:n.refreshOff,scrollTop:e.unref(u),pullRefreshContainer:"#"+f},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:f},[e.createElementVNode("div",e.mergeProps({onScrollPassive:y[0]||(y[0]=(...g)=>e.unref(a).onScroll&&e.unref(a).onScroll(...g)),ref:e.unref(a).ref,class:"virtualList"},m.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(r))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({index:g,data:I})=>(e.openBlock(),e.createElementBlock("div",{key:g,style:e.normalizeStyle({height:`${e.unref(M)(g).height}px`,display:"flex"})},[e.renderSlot(m.$slots,"default",{data:I,index:g},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Mn="",Rt=B(Pt,[["__scopeId","data-v-e0fb787f"]]),de=n=>(e.pushScopeId("data-v-c986249d"),n=n(),e.popScopeId(),n),Ht={style:{position:"absolute"}},Vt=de(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Ft=["width","height"],Wt=[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))],Kt=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(n){const t=n;e.useCssVars(o=>({"5e400569":l}));const l=`${t.duration}ms`;return(o,s)=>(e.openBlock(),e.createElementBlock("div",Ht,[Vt,(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"},Wt,8,Ft))]))}}),mn="",Zt=B(Kt,[["__scopeId","data-v-c986249d"]]);h.DefaultLoading=ut,h.Loading=Zt,h.LoadingToast=G,h.PullRefresh=Oe,h.ScrollBar=At,h.SvgIcon=jt,h.ToastCreator=It,h.VirtualList=Rt,h.allSelectedKey=oe,h.closeDialogKey=Ce,h.dialogController=at,h.isAllSelectedKey=ie,h.isSelectedKey=ne,h.selectAllKey=se,h.selectKey=le,h.selectedCountKey=re,h.toggleAllKey=ee,h.toggleKey=te,h.unselectAllKey=Z,h.unselectKey=ae,h.useDelayAsync=Tt,h.useDelayLoad=it,h.useDelayLoadComp=Le,h.useDragSelect=ue,h.useDragSelectByMobile=nt,h.useDragSelectByPc=tt,h.useSelectable=et,h.useSelectableInjectors=qe,h.useVirtualList=ve,h.vDebounceClick=Se,h.vSingleClick=ge,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
20
|
+
}`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{m(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function y(){u.value=!0}function g(){u.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:y,onMouseleave:g,style:e.normalizeStyle(e.unref(M))},[e.renderSlot(I.$slots,"default",{},()=>[vt],!0)],36),[[e.vShow,e.unref(f)]])]),_:3}))}}),un="",At=B(Lt,[["__scopeId","data-v-efefe52c"]]),Ot=n=>(e.pushScopeId("data-v-18377f18"),n=n(),e.popScopeId(),n),xt={class:"pull-refresh"},St={key:0,class:"pull-arrow-circle"},_t={key:0,class:"box-load"},kt={class:"left-load"},bt={class:"right-load"},Qt=Ot(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Bt={class:"pull-arrow"},Ut={key:1},Yt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(n){const t=n,l=.7,o="#2EC1CC",s=e.ref(-999),i=e.ref(1),a=e.ref(0),r=e.ref(.3),d=e.ref(!1),M=e.ref(0),u=e.ref(0),f=e.ref(0),m=e.ref(0),y=e.ref(0),g=e.ref(),I=e.computed(()=>t.scrollTop),c=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),N=e.computed(()=>({borderColor:o,transition:m.value,transform:`rotate(${100+a.value}deg)`,opacity:r.value}));e.watch(y,z=>{z===0&&(s.value=-50,r.value=.3)}),e.watch(u,z=>{if(y.value===2)return;const L=Math.pow(z,l);L===0&&(s.value=-50),L<=50&&L>0&&(s.value=L-45,a.value=Math.pow(L,1.5),L>15?d.value=!0:d.value=!1),L>50&&(s.value=5,r.value=1,y.value)});const w=e.ref(0),A=z=>{w.value=z.touches[0].pageY},_=z=>{const L=z.touches[0].pageY-w.value;w.value=z.touches[0].pageY,!t.refreshOff&&(!t?.refresh||y.value!==2&&I.value===0&&(M.value===0&&(M.value=z.touches[0].pageY),f.value=0,v.value.style.transition=`${f.value}ms`,m.value=0,u.value=z.touches[0].pageY-M.value,v.value.style.transform=`translate3d(0, ${Math.pow(u.value,l)}px, 0)`,L>0&&z.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||y.value===2)return;M.value=0,f.value=300;const z=Math.pow(u.value,l);v.value.style.transition=`${f.value}ms`,z>50?(y.value=2,u.value=Math.pow(50,1/l),v.value.style.transform=`translate3d(0, ${Math.pow(u.value,l)}px, 0)`,m.value=300,t?.refresh&&t?.refresh().then(()=>{g.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{g.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{y.value=0,u.value=0,v.value.style.transform=`translate3d(0, ${Math.pow(u.value,l)}px, 0)`,setTimeout(()=>{g.value=void 0},m.value)},600)})):(u.value=0,v.value.style.transform=`translate3d(0, ${Math.pow(u.value,l)}px, 0)`)},v=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(v.value=document.querySelector(t.pullRefreshContainer),v.value?.addEventListener("touchstart",A),v.value?.addEventListener("touchmove",_),v.value?.addEventListener("touchend",U))}),(z,L)=>(e.openBlock(),e.createElementBlock("div",xt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(c))},[g.value?(e.openBlock(),e.createElementBlock("div",Ut,e.toDisplayString(g.value),1)):(e.openBlock(),e.createElementBlock("div",St,[y.value==2?(e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("div",kt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:o})},null,4)]),e.createElementVNode("div",bt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:o})},null,4)]),Qt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(N))},[e.createElementVNode("div",Bt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:d.value}]),style:e.normalizeStyle({borderBottomColor:o})},null,6)])],4))]))],4)]))}}),dn="",Oe=B(Yt,[["__scopeId","data-v-18377f18"]]),$t={inheritAttrs:!1},Pt=e.defineComponent({...$t,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(n,{expose:t,emit:l}){const o=n,s=Ce(e.toRef(o,"data"),{itemHeight:m=>o.itemHeight(o.data[m]),overscan:o.overscan,scrollEndHook:()=>{l("scrollEnd")}}),{list:i,containerProps:a,wrapperProps:r,innerProps:d,getItemHeightData:M,scrollTop:u}=s;t({vListReturn:s});const f="virtualListWrapper"+new Date().getTime();return(m,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:n.refresh,refreshOff:n.refreshOff,scrollTop:e.unref(u),pullRefreshContainer:"#"+f},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:f},[e.createElementVNode("div",e.mergeProps({onScrollPassive:y[0]||(y[0]=(...g)=>e.unref(a).onScroll&&e.unref(a).onScroll(...g)),ref:e.unref(a).ref,class:"virtualList"},m.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(r))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({index:g,data:I})=>(e.openBlock(),e.createElementBlock("div",{key:g,style:e.normalizeStyle({height:`${e.unref(M)(g).height}px`,display:"flex"})},[e.renderSlot(m.$slots,"default",{data:I,index:g},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Mn="",Rt=B(Pt,[["__scopeId","data-v-e0fb787f"]]),de=n=>(e.pushScopeId("data-v-c986249d"),n=n(),e.popScopeId(),n),Ht={style:{position:"absolute"}},Vt=de(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Ft=["width","height"],Wt=[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))],Kt=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(n){const t=n;e.useCssVars(o=>({"5e400569":l}));const l=`${t.duration}ms`;return(o,s)=>(e.openBlock(),e.createElementBlock("div",Ht,[Vt,(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"},Wt,8,Ft))]))}}),mn="",Zt=B(Kt,[["__scopeId","data-v-c986249d"]]);h.DefaultLoading=ut,h.Loading=Zt,h.LoadingToast=G,h.PullRefresh=Oe,h.ScrollBar=At,h.SvgIcon=jt,h.ToastCreator=It,h.VirtualList=Rt,h.allSelectedKey=oe,h.closeDialogKey=ve,h.dialogController=at,h.isAllSelectedKey=ie,h.isSelectedKey=ne,h.selectAllKey=se,h.selectKey=le,h.selectedCountKey=re,h.toggleAllKey=ee,h.toggleKey=te,h.unselectAllKey=Z,h.unselectKey=ae,h.useDelayAsync=Tt,h.useDelayLoad=it,h.useDelayLoadComp=Le,h.useDragSelect=ue,h.useDragSelectByMobile=nt,h.useDragSelectByPc=tt,h.useSelectable=et,h.useSelectableInjectors=qe,h.useVirtualList=Ce,h.vDebounceClick=Se,h.vSingleClick=ge,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|