@lazycatcloud/lzc-toolkit 0.0.115 → 0.0.116
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 +703 -677
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/image/useImage.d.ts +4 -3
- package/dist/types/loading-toast/index.d.ts +8 -3
- package/dist/types/loading-toast/index.vue.d.ts +5 -5
- package/dist/types/useDelayAsync/index.d.ts +1 -1
- package/package.json +1 -1
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 ye={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),d=Math.abs(u-l);g>5||d>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__)}},be={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 pe;const H=typeof window<"u",he=n=>typeof n=="function";H&&((pe=window?.navigator)==null?void 0:pe.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 Be(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 Qe(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),d=Date.now()-l;if(a(),g<=0)return l=Date.now(),u();d>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 Ue(n){return n}function Ye(n,t){let o,l,s;const i=e.ref(!0),a=()=>{i.value=!0,s()};e.watch(n,a,{flush:"sync"});const r=he(t)?t:t.get,u=he(t)?void 0:t.set,g=e.customRef((d,M)=>(l=d,s=M,{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 Te(n,t=200,o={}){return Ne(Be(t,o),n)}function we(n,t=200,o=!1,l=!0){return Ne(Qe(t,o,l),n)}function Ee(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function Ie(n){var t;const o=K(n);return(t=o?.$el)!=null?t:o}const $e=H?window:void 0,Pe=H?window.document:void 0;H&&window.navigator,H&&window.location;function Re(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),Ee(l,t),o}const q=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__";q[J]=q[J]||{},q[J];function Fe(){const n=e.getCurrentInstance(),t=Ye(()=>null,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var ze=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,We=(n,t)=>{var o={};for(var l in n)Ve.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&ze)for(var l of ze(n))t.indexOf(l)<0&&He.call(n,l)&&(o[l]=n[l]);return o};function Ze(n,t,o={}){const l=o,{window:s=$e}=l,i=We(l,["window"]);let a;const r=Re(()=>s&&"ResizeObserver"in s),u=()=>{a&&(a.disconnect(),a=void 0)},g=e.watch(()=>Ie(n),M=>{u(),r.value&&s&&M&&(a=new ResizeObserver(t),a.observe(M,i))},{immediate:!0,flush:"post"}),d=()=>{u(),g()};return De(d),{isSupported:r,stop:d}}function Ke(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,s=e.ref(t.width),i=e.ref(t.height);return Ze(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(()=>Ie(n),a=>{s.value=a?t.width:0,i.value=a?t.height:0}),{width:s,height:i}}var je;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(je||(je={}));let Ge=0;function ee(n,t={}){const o=e.ref(!1),{document:l=Pe,immediate:s=!0,manual:i=!1,id:a=`vueuse_styletag_${++Ge}`}=t,r=e.ref(n);let u=()=>{};const g=()=>{if(!l)return;const M=l.getElementById(a)||l.createElement("style");M.type="text/css",M.id=a,t.media&&(M.media=t.media),l.head.appendChild(M),!o.value&&(u=e.watch(r,y=>{M.innerText=y},{immediate:!0}),o.value=!0)},d=()=>{!l||!o.value||(u(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return s&&!i&&Ee(g),i||De(d),{id:a,css:r,unload:d,load:g,isLoaded:e.readonly(o)}}var Xe=Object.defineProperty,Le=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Ce=(n,t,o)=>t in n?Xe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,et=(n,t)=>{for(var o in t||(t={}))qe.call(t,o)&&Ce(n,o,t[o]);if(Le)for(var o of Le(t))Je.call(t,o)&&Ce(n,o,t[o]);return n};et({linear:Ue},{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 Ae(n,t){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=t,i=e.ref(null),a=Ke(i),r=e.ref(!0),u=Te(U,100);let g;const d=e.shallowRef(n),M=e.ref(0),y=e.ref({start:0,end:10}),m=e.ref({start:0,end:s});let f=0;const N=e.ref([]),c=e.computed(()=>{let{sum:I,height:w}={sum:0,height:0};return d.value.map((x,S)=>(typeof l=="number"?w=l:w=l(S),I+=w,{height:w,sum:I}))}),p=e.computed(()=>$(y.value.start)),E=e.computed(()=>typeof l=="number"?c.value.length*l:c.value[c.value.length-1]?.sum||0),O=e.computed(()=>{const{start:I,end:w}=m.value;return N.value.slice(I,w)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(g)),e.watch(d,()=>{(a.width.value||a.height.value)&&C()},{deep:!0}),e.watch([a.width,a.height],([I,w])=>{(I||w)&&C()},{deep:!0}),e.watch(M,()=>{Q(),u()});function Q(){r.value=!1}function U(){r.value=!0,o?.()}function C(){cancelAnimationFrame(g),g=requestAnimationFrame(z)}function z(){if(i.value){M.value=i.value.scrollTop;let I=A(M.value);f=Y(I);let w=Math.max(0,I-s),x=Math.min(I+f+s,d.value.length);y.value={start:w,end:x},N.value=d.value.slice(w,x).map((S,L)=>({data:S,index:L+w})),m.value.start=I-w,m.value.end=m.value.start+f}}function A(I){let w=0,x=c.value.length-1,S=-1;for(;w<=x;){const L=Math.floor((w+x)/2);c.value[L].sum>=I?(S=L,x=L-1):w=L+1}return Math.max(0,S)}function Y(I){let w=0,x=0;for(let S=I;S<c.value.length&&(w++,x+=c.value[S].height,!(x>=a.height.value));S++);return w}function $(I){if(typeof l=="number")return I*l;let w=c.value[I];return w?w.sum-w.height:0}function b(I){return c.value[I]||{sum:0,height:0}}function R(I){if(i.value){const w=b(I);i.value.scrollTop=w.sum-w.height,z()}}const Z=e.computed(()=>({style:{width:"100%",height:`${E.value}px`,pointerEvents:r.value?void 0:"none"}})),F=e.computed(()=>({style:{transform:`translate3d(0, ${p.value}px, 0)`,"will-change":"transform"}})),P={overflowY:"auto"};return{list:N,visiableList:O,getItemHeightData:b,getoffsetTopIndex:A,totalHeight:E,clientHeight:a.height,scrollTo:R,scrollTop:M,isScrollEnd:r,containerProps:{ref:i,onScroll:()=>{C()},style:P},wrapperProps:Z,innerProps:F}}const te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),re=Symbol(),G=Symbol(),ce=Symbol();function tt(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 nt(n,t,o){const l=n.reduce((d,M)=>(d.set(M[o],M),d),new Map),s=[],i=[],a=[],r=new Set,u=2500,g=Math.ceil(t.length/u);for(let d=0;d<g;d++){const M=d*u,y=M+u,m=t.slice(M,y);for(const f of m){const N=f[o],c=l.get(N);!c&&f?s.push(f):c&&!f?i.push(c):c&&f&&(tt(c,f)||a.push(f)),r.add(N),l.delete(N)}}for(const[d,M]of l)r.has(d)||i.push(M);return{added:s,removed:i,modified:a}}function ot(){const{voidFn:n,boolFn:t,boolRef:o,numberRef:l,arrayRef:s}={voidFn:N=>{},boolFn:N=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},i=e.inject(le,s),a=e.inject(oe,t),r=e.inject(re,o),u=e.inject(ne,n),g=e.inject(te,n),d=e.inject(se,n),M=e.inject(ae,n),y=e.inject(ie,n),m=e.inject(G,n),f=e.inject(ce,l);return{selected:i,isSelected:a,isAllSelected:r,toggle:u,toggleAll:g,select:d,selectAll:M,unselect:y,unselectAll:m,selectedCount:f}}function lt(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((p,E)=>(p.set(E[t],E),p),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 p;l.value.forEach(E=>{p=s.value.get(E),p&&c.push(p)})}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 p=l.value.size,E=s.value.size;c=p==E}return c});function u(){o.value=!0}function g(){o.value=!1}function d(c){m(()=>{c.forEach(p=>{l.value.add(p[t])})})}function M(c){m(()=>{c.forEach(p=>{l.value.delete(p[t])})})}function y(c){return o.value!=null?o.value:l.value.has(c[t])}function m(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){m(()=>{c.forEach(p=>{y(p)?l.value.delete(p[t]):l.value.add(p[t])})})}function N(){const{value:c}=r;c?g():u()}return e.provide(te,N),e.provide(ne,f),e.provide(oe,y),e.provide(le,i),e.provide(se,d),e.provide(ae,u),e.provide(ie,M),e.provide(re,r),e.provide(G,g),e.provide(G,g),e.provide(ce,a),{selected:i,select:d,selectAll:u,unselect:M,unselectAll:g,toggle:f,toggleAll:N,isSelected:y,isAllSelected:r,selectedCount:a}}function ue(n){return()=>{console.debug(`\u9ED8\u8BA4${n}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function de({attribute:n,selectWay:t="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=ue("\u9009\u62E9"),unselect:i=ue("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ue("\u53D6\u6D88\u5168\u9009")}=l();let r={};const u=e.computed(()=>we(t==="colum"?Dn:Tn,50)),g=new Set,d=e.ref(!0),M=e.ref(),y=e.ref(!1),m=e.ref({x:0,y:0}),f=e.ref({x:0,y:0,scrollTop:0}),N=new ResizeObserver(D=>c.value=D[0].target.getBoundingClientRect()),c=e.ref({}),p=e.ref({top:0,height:0,sync(D=!1){p.value.top=M.value?.scrollTop||0,D&&(p.value.height=M.value?.scrollHeight||0)}}),E=e.computed(()=>y.value?{left:Math.min(m.value.x,f.value.x)-c.value.left,top:Math.min(m.value.y,f.value.y)-c.value.top,width:Math.abs(m.value.x-f.value.x),height:Math.abs(m.value.y-f.value.y)}:{left:0,top:0,width:0,height:0}),{margin:O=50,startSpeed:Q=30,maxSpeed:U=30}=o;let C;const z=O,A=Q,Y=U,$=D=>D**1;let b=0;function R(D){if(cancelAnimationFrame(C),b=Z(D),b=Math.max(Math.min(b,Y),-Y),b!==0){const T=M.value;if(!T||!y.value)return;const _=p.value.height-c.value.height;let j=p.value.top+Number(b);j=Math.min(Math.max(0,j),_),T.scrollTop=j,P(),C=requestAnimationFrame(()=>R(D))}}function Z(D){if(M.value){const _=c.value,j=_.bottom-D;if(j<z)return A*$(1-j/z);const B=D-_.top;if(B<z)return-A*$(1-B/z)}return 0}function F(D){const T={...E.value,right:0,bottom:0};return T.left+=c.value.left,T.top+=c.value.top-p.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(){p.value.sync();const{top:D,height:T}=p.value;f.value.y=Math.min(T+c.value.top,f.value.y+D-f.value.scrollTop),f.value.scrollTop=D}function I(D,T,_="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=`${D} { ${T} }`;for(let me=0;me<V;me++){const ke=B[me];if(ke.selectorText===D&&ke.style.cssText===T)return}j.sheet.insertRule(En,V)}function w(D,T){d.value=!0,y.value=!0,p.value.height?p.value.sync():p.value.sync(!0),m.value.x=D,m.value.y=T+p.value.top,f.value.x=m.value.x,f.value.y=m.value.y,M.value?.classList.add("disable-scroll-behavior"),g.clear()}function x(D,T,_){!y.value||(d.value&&t==="colum"&&!v()&&(a(),d.value=!1),_?.(),R(T),f.value.x=Math.max(D,c.value.left),f.value.y=Math.min(T+p.value.top,p.value.height+c.value.top),f.value.scrollTop=p.value.top,u.value())}function S(){y.value=!1,M.value?.classList.remove("disable-scroll-behavior")}function L(){!y.value||(b||P(),u.value())}function v(){if(!y.value)return!1;const{width:D,height:T}=E.value;return!(Math.max(D,T)>5)}function ge(){v()&&a()}function Dn(){v()||M.value?.querySelectorAll(`[${n}]`).forEach(D=>{r[`${n}`]=D.getAttribute(`${n}`),F(D.getBoundingClientRect())?s([r]):i([r])})}function Tn(){const D=[];let T=null,_=0;M.value?.querySelectorAll(`[${n}]`).forEach((j,B)=>{const V=j.getAttribute(`${n}`);D.push(V),F(j.getBoundingClientRect())?(T===null&&(T=B),T=Math.min(T,B),_=Math.max(_,B)):(r[`${n}`]=V,g.has(V)&&i([r]))});for(let j=T;j<_+1;j++)r[`${n}`]=D[j],s([r]),g.add(D[j])}function wn(D){return!D?.value||(M.value=D.value,!M?.value)?!1:(N.observe(M.value),I(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:wn,dragStart:w,dragMove:x,dragEnd:S,onScroll:L,isSingleClick:v,cancelSelectAllBySingleClick:ge,selectFn:u,selectRange:E,isPressing:y,containerEl:M,observer:N}}function st(n){const t=de(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:d}=ee(`.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 me={created(n,t){let o,l;function s(a){o=a.clientX,l=a.clientY}function i(a){if(o===void 0)return;const u=a.clientX,d=a.clientY,c=Math.abs(u-o),g=Math.abs(d-l);c>5||g>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__)}},Be={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 pe;const H=typeof window<"u",ye=n=>typeof n=="function";H&&((pe=window?.navigator)==null?void 0:pe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K(n){return typeof n=="function"?n():e.unref(n)}function he(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function Qe(n,t={}){let o,l;return i=>{const a=K(n),u=K(t.maxWait);if(o&&clearTimeout(o),a<=0||u!==void 0&&u<=0)return l&&(clearTimeout(l),l=null),i();u&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,i()},u)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,i()},a)}}function Ue(n,t=!0,o=!0){let l=0,s,i=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return d=>{const c=K(n),g=Date.now()-l;if(a(),c<=0)return l=Date.now(),d();g>c&&(o||!i)?(l=Date.now(),d()):t&&(s=setTimeout(()=>{l=Date.now(),i=!0,a(),d()},c)),!o&&!s&&(s=setTimeout(()=>i=!0,c)),i=!1}}function Ye(n){return n}function Pe(n,t){let o,l,s;const i=e.ref(!0),a=()=>{i.value=!0,s()};e.watch(n,a,{flush:"sync"});const u=ye(t)?t:t.get,d=ye(t)?void 0:t.set,c=e.customRef((g,M)=>(l=g,s=M,{get(){return i.value&&(o=u(),i.value=!1),l(),o},set(y){d?.(y)}}));return Object.isExtensible(c)&&(c.trigger=a),c}function Ne(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function De(n,t=200,o={}){return he(Qe(t,o),n)}function Te(n,t=200,o=!1,l=!0){return he(Ue(t,o,l),n)}function we(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function Ee(n){var t;const o=K(n);return(t=o?.$el)!=null?t:o}const $e=H?window:void 0,Re=H?window.document:void 0;H&&window.navigator,H&&window.location;function Fe(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),we(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 Ve(){const n=e.getCurrentInstance(),t=Pe(()=>null,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var Ie=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ze=(n,t)=>{var o={};for(var l in n)He.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&&We.call(n,l)&&(o[l]=n[l]);return o};function Ke(n,t,o={}){const l=o,{window:s=$e}=l,i=Ze(l,["window"]);let a;const u=Fe(()=>s&&"ResizeObserver"in s),d=()=>{a&&(a.disconnect(),a=void 0)},c=e.watch(()=>Ee(n),M=>{d(),u.value&&s&&M&&(a=new ResizeObserver(t),a.observe(M,i))},{immediate:!0,flush:"post"}),g=()=>{d(),c()};return Ne(g),{isSupported:u,stop:g}}function Ge(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,s=e.ref(t.width),i=e.ref(t.height);return Ke(n,([a])=>{const u=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(s.value=u.reduce((d,{inlineSize:c})=>d+c,0),i.value=u.reduce((d,{blockSize:c})=>d+c,0)):(s.value=a.contentRect.width,i.value=a.contentRect.height)},o),e.watch(()=>Ee(n),a=>{s.value=a?t.width:0,i.value=a?t.height:0}),{width:s,height:i}}var ze;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(ze||(ze={}));let Xe=0;function J(n,t={}){const o=e.ref(!1),{document:l=Re,immediate:s=!0,manual:i=!1,id:a=`vueuse_styletag_${++Xe}`}=t,u=e.ref(n);let d=()=>{};const c=()=>{if(!l)return;const M=l.getElementById(a)||l.createElement("style");M.type="text/css",M.id=a,t.media&&(M.media=t.media),l.head.appendChild(M),!o.value&&(d=e.watch(u,y=>{M.innerText=y},{immediate:!0}),o.value=!0)},g=()=>{!l||!o.value||(d(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return s&&!i&&we(c),i||Ne(g),{id:a,css:u,unload:g,load:c,isLoaded:e.readonly(o)}}var qe=Object.defineProperty,je=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Ae=(n,t,o)=>t in n?qe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,tt=(n,t)=>{for(var o in t||(t={}))Je.call(t,o)&&Ae(n,o,t[o]);if(je)for(var o of je(t))et.call(t,o)&&Ae(n,o,t[o]);return n};tt({linear:Ye},{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=Ge(i),u=e.ref(!0),d=De(U,100);let c;const g=e.shallowRef(n),M=e.ref(0),y=e.ref({start:0,end:10}),p=e.ref({start:0,end:s});let f=0;const E=e.ref([]),r=e.computed(()=>{let{sum:I,height:w}={sum:0,height:0};return g.value.map((x,S)=>(typeof l=="number"?w=l:w=l(S),I+=w,{height:w,sum:I}))}),m=e.computed(()=>P(y.value.start)),D=e.computed(()=>typeof l=="number"?r.value.length*l:r.value[r.value.length-1]?.sum||0),O=e.computed(()=>{const{start:I,end:w}=p.value;return E.value.slice(I,w)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(c)),e.watch(g,()=>{(a.width.value||a.height.value)&&L()},{deep:!0}),e.watch([a.width,a.height],([I,w])=>{(I||w)&&L()},{deep:!0}),e.watch(M,()=>{Q(),d()});function Q(){u.value=!1}function U(){u.value=!0,o?.()}function L(){cancelAnimationFrame(c),c=requestAnimationFrame(z)}function z(){if(i.value){M.value=i.value.scrollTop;let I=C(M.value);f=Y(I);let w=Math.max(0,I-s),x=Math.min(I+f+s,g.value.length);y.value={start:w,end:x},E.value=g.value.slice(w,x).map((S,A)=>({data:S,index:A+w})),p.value.start=I-w,p.value.end=p.value.start+f}}function C(I){let w=0,x=r.value.length-1,S=-1;for(;w<=x;){const A=Math.floor((w+x)/2);r.value[A].sum>=I?(S=A,x=A-1):w=A+1}return Math.max(0,S)}function Y(I){let w=0,x=0;for(let S=I;S<r.value.length&&(w++,x+=r.value[S].height,!(x>=a.height.value));S++);return w}function P(I){if(typeof l=="number")return I*l;let w=r.value[I];return w?w.sum-w.height:0}function b(I){return r.value[I]||{sum:0,height:0}}function R(I){if(i.value){const w=b(I);i.value.scrollTop=w.sum-w.height,z()}}const Z=e.computed(()=>({style:{width:"100%",height:`${D.value}px`,pointerEvents:u.value?void 0:"none"}})),F=e.computed(()=>({style:{transform:`translate3d(0, ${m.value}px, 0)`,"will-change":"transform"}})),$={overflowY:"auto"};return{list:E,visiableList:O,getItemHeightData:b,getoffsetTopIndex:C,totalHeight:D,clientHeight:a.height,scrollTo:R,scrollTop:M,isScrollEnd:u,containerProps:{ref:i,onScroll:()=>{L()},style:$},wrapperProps:Z,innerProps:F}}const ee=Symbol(),te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),G=Symbol(),re=Symbol();function nt(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 ot(n,t,o){const l=n.reduce((g,M)=>(g.set(M[o],M),g),new Map),s=[],i=[],a=[],u=new Set,d=2500,c=Math.ceil(t.length/d);for(let g=0;g<c;g++){const M=g*d,y=M+d,p=t.slice(M,y);for(const f of p){const E=f[o],r=l.get(E);!r&&f?s.push(f):r&&!f?i.push(r):r&&f&&(nt(r,f)||a.push(f)),u.add(E),l.delete(E)}}for(const[g,M]of l)u.has(g)||i.push(M);return{added:s,removed:i,modified:a}}function lt(){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),u=e.inject(ie,o),d=e.inject(te,n),c=e.inject(ee,n),g=e.inject(le,n),M=e.inject(se,n),y=e.inject(ae,n),p=e.inject(G,n),f=e.inject(re,l);return{selected:i,isSelected:a,isAllSelected:u,toggle:d,toggleAll:c,select:g,selectAll:M,unselect:y,unselectAll:p,selectedCount:f}}function st(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,D)=>(m.set(D[t],D),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(D=>{m=s.value.get(D),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}),u=e.computed(()=>{let r;if(o.value!=null)r=o.value;else{const m=l.value.size,D=s.value.size;r=m==D}return r});function d(){o.value=!0}function c(){o.value=!1}function g(r){p(()=>{r.forEach(m=>{l.value.add(m[t])})})}function M(r){p(()=>{r.forEach(m=>{l.value.delete(m[t])})})}function y(r){return o.value!=null?o.value:l.value.has(r[t])}function p(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){p(()=>{r.forEach(m=>{y(m)?l.value.delete(m[t]):l.value.add(m[t])})})}function E(){const{value:r}=u;r?c():d()}return e.provide(ee,E),e.provide(te,f),e.provide(ne,y),e.provide(oe,i),e.provide(le,g),e.provide(se,d),e.provide(ae,M),e.provide(ie,u),e.provide(G,c),e.provide(G,c),e.provide(re,a),{selected:i,select:g,selectAll:d,unselect:M,unselectAll:c,toggle:f,toggleAll:E,isSelected:y,isAllSelected:u,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 u={};const d=e.computed(()=>Te(t==="colum"?Tn:wn,50)),c=new Set,g=e.ref(!0),M=e.ref(),y=e.ref(!1),p=e.ref({x:0,y:0}),f=e.ref({x:0,y:0,scrollTop:0}),E=new ResizeObserver(N=>r.value=N[0].target.getBoundingClientRect()),r=e.ref({}),m=e.ref({top:0,height:0,sync(N=!1){m.value.top=M.value?.scrollTop||0,N&&(m.value.height=M.value?.scrollHeight||0)}}),D=e.computed(()=>y.value?{left:Math.min(p.value.x,f.value.x)-r.value.left,top:Math.min(p.value.y,f.value.y)-r.value.top,width:Math.abs(p.value.x-f.value.x),height:Math.abs(p.value.y-f.value.y)}:{left:0,top:0,width:0,height:0}),{margin:O=50,startSpeed:Q=30,maxSpeed:U=30}=o;let L;const z=O,C=Q,Y=U,P=N=>N**1;let b=0;function R(N){if(cancelAnimationFrame(L),b=Z(N),b=Math.max(Math.min(b,Y),-Y),b!==0){const T=M.value;if(!T||!y.value)return;const _=m.value.height-r.value.height;let j=m.value.top+Number(b);j=Math.min(Math.max(0,j),_),T.scrollTop=j,$(),L=requestAnimationFrame(()=>R(N))}}function Z(N){if(M.value){const _=r.value,j=_.bottom-N;if(j<z)return C*P(1-j/z);const B=N-_.top;if(B<z)return-C*P(1-B/z)}return 0}function F(N){const T={...D.value,right:0,bottom:0};return T.left+=r.value.left,T.top+=r.value.top-m.value.top,T.right=T.width+T.left,T.bottom=T.height+T.top,T.left<N.right&&T.right>N.left&&T.top<N.bottom&&T.bottom>N.top}function $(){m.value.sync();const{top:N,height:T}=m.value;f.value.y=Math.min(T+r.value.top,f.value.y+N-f.value.scrollTop),f.value.scrollTop=N}function I(N,T,_="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,In=`${N} { ${T} }`;for(let ge=0;ge<V;ge++){const be=B[ge];if(be.selectorText===N&&be.style.cssText===T)return}j.sheet.insertRule(In,V)}function w(N,T){g.value=!0,y.value=!0,m.value.height?m.value.sync():m.value.sync(!0),p.value.x=N,p.value.y=T+m.value.top,f.value.x=p.value.x,f.value.y=p.value.y,M.value?.classList.add("disable-scroll-behavior"),c.clear()}function x(N,T,_){!y.value||(g.value&&t==="colum"&&!v()&&(a(),g.value=!1),_?.(),R(T),f.value.x=Math.max(N,r.value.left),f.value.y=Math.min(T+m.value.top,m.value.height+r.value.top),f.value.scrollTop=m.value.top,d.value())}function S(){y.value=!1,M.value?.classList.remove("disable-scroll-behavior")}function A(){!y.value||(b||$(),d.value())}function v(){if(!y.value)return!1;const{width:N,height:T}=D.value;return!(Math.max(N,T)>5)}function fe(){v()&&a()}function Tn(){v()||M.value?.querySelectorAll(`[${n}]`).forEach(N=>{u[`${n}`]=N.getAttribute(`${n}`),F(N.getBoundingClientRect())?s([u]):i([u])})}function wn(){const N=[];let T=null,_=0;M.value?.querySelectorAll(`[${n}]`).forEach((j,B)=>{const V=j.getAttribute(`${n}`);N.push(V),F(j.getBoundingClientRect())?(T===null&&(T=B),T=Math.min(T,B),_=Math.max(_,B)):(u[`${n}`]=V,c.has(V)&&i([u]))});for(let j=T;j<_+1;j++)u[`${n}`]=N[j],s([u]),c.add(N[j])}function En(N){return!N?.value||(M.value=N.value,!M?.value)?!1:(E.observe(M.value),I(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:En,dragStart:w,dragMove:x,dragEnd:S,onScroll:A,isSingleClick:v,cancelSelectAllBySingleClick:fe,selectFn:d,selectRange:D,isPressing:y,containerEl:M,observer:E}}function at(n){const t=ue(n),{observer:o,selectRange:l}=t,{onScroll:s,dragStart:i,dragMove:a,dragEnd:u,cancelSelectAllBySingleClick:d}=t,c=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:g}=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}),M=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:
|
|
6
|
+
}`,{id:"styletag_lzc_dragselect",manual:!0}),M=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:c.value})}});function y(m){m.button===0&&i(m.x,m.y)}function p(m){a(m.x,m.y)}function f(m){m.composedPath().some(O=>O?.getAttribute?.(n.attribute))||d(),u()}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(M),t.containerEl.value),g(),t.containerEl.value?.addEventListener("scroll",s),t.containerEl.value?.addEventListener("mousedown",y),window.addEventListener("mousemove",p),window.addEventListener("mouseup",f)}catch(D){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",D)}}function r(){o.disconnect(),t.containerEl.value?.removeEventListener("scroll",s),t.containerEl.value?.removeEventListener("mousedown",y),window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",f)}return{init:E,unMount:r}}function it(n,t,o=600){const l=ue({...n,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:i,dragStart:a,dragMove:u,dragEnd:d}=l;let c;function g(){clearTimeout(c)}function M(r){g(),r.composedPath().some(D=>!!D?.getAttribute?.(n.attribute))&&(c=setTimeout(()=>{const{clientX:D,clientY:O}=r.targetTouches[0];a(D,O),t?.(),u(D,O,()=>r.preventDefault()),r.preventDefault()},o))}function y(r){g();const{clientX:m,clientY:D}=r.targetTouches[0];u(m,D,()=>r.preventDefault())}function p(){g(),d()}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",M),l.containerEl.value?.addEventListener("touchmove",y),window.addEventListener("touchcancel",p),window.addEventListener("touchend",p)}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",M),l.containerEl.value?.removeEventListener("touchmove",y),window.removeEventListener("touchcancel",p),window.removeEventListener("touchEnd",p)}return{init:f,unMount:E}}const Ce=Symbol(),rt={key:0,class:"lzc-modal"},ct=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(Ce,()=>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",rt,[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(me),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),jn="",k=(n,t)=>{const o=n.__vccOpts||n;for(const[l,s]of t)o[l]=s;return o},ut=k(ct,[["__scopeId","data-v-4ff684af"]]);function dt(n){function t(o,l){const s=document.createElement("div"),i={setup(){return()=>e.h(ut,{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 de({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=Fe();return e.onMounted(()=>{r.value.classList.add(s)}),()=>e.h(n,t)}})}}function dt({component:n,componentProps:t,delay:o=300}){const{LoadingComp:l}=Me({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 Mt=[(n=>(e.pushScopeId("data-v-f86c8393"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],ft=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)),Mt,16))}}),Cn="",xe=k(ft,[["__scopeId","data-v-f86c8393"]]),gt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOed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10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",mt={class:"loading-wrap"},yt=["src"],pt=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",mt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(gt)},null,8,yt)]))}}),An="",ht=k(pt,[["__scopeId","data-v-2affe82a"]]);async function Nt(n){return new Promise(t=>setTimeout(()=>t(),n))}const Dt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXR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4MzI3IDE1LjAxMTE5MDIsMTMuNTYyOTMxIEMxNS4wMTExOTAyLDEzLjk0NzAyOTQgMTQuODU4NTg5MywxNC4zMTUzOTIyIDE0LjU4Njk2NTUsMTQuNTg2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",wt=["onClick"],Et=["onClick"],It=["src"],zt=["src"],jt=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(d=>t("close"),["stop"])),src:e.unref(Dt),class:e.normalizeClass(`${l}-close`)},null,10,It)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(Tt),class:e.normalizeClass(`${l}-icon`)},null,10,zt)):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,Et)],10,wt),[[e.vShow,n.visible]])],4)]),_:1}))}}),vn="",xn="",Lt=k(jt,[["__scopeId","data-v-cb2e1a90"]]);class X{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=Lt}async show(){const t=this.options,l={...t,onClose:function(){X.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 Ct(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 r=e.ref(!1);let u=null;const g=new X(t);async function d(...y){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(...y),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await M(i),await t?.onSuccess?.()}catch(m){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(m),await M(i),await t?.onError?.(m)}}}async function M(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"),M()}),{processing:r,handler:d,close:M}}const At=["onClick"],vt=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,d)=>(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,At))}}),Sn="",xt=k(vt,[["__scopeId","data-v-533e986b"]]),Se={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class St{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(xt),{...Se,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Se.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 Ot=["xlink:href","fill","color"],W=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,Ot)],4))}});function _t(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:a="classList"}=n,r=e.ref(!0),u=Te($,100);let g,d="";const M=e.ref(0),y=e.ref(0),m=e.ref(0),f=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),N=e.ref({clientHeight:0}),c=e.computed(()=>!!y.value),p=e.computed(()=>f.value.scrollHeight>f.value.clientHeight),E=e.computed(()=>l?f.value.clientHeight-U.value:f.value.clientHeight-N.value.clientHeight),O=e.computed(()=>f.value.scrollHeight-f.value.clientHeight),Q=e.computed(()=>Math.max(f.value.clientHeight/f.value.scrollHeight,.05)),U=e.computed(()=>Q.value>i?0:Q.value*f.value.clientHeight),C=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${m.value}px,0)`,height:l?`${U.value}px`:void 0}));function z(L){Y(),y.value=L.clientY-o.value.getBoundingClientRect().top||1,d=getComputedStyle(t.value).scrollBehavior,d==="smooth"&&(t.value.style.scrollBehavior="unset")}function A(){t.value.style.scrollBehavior=d,y.value=0,u()}function Y(){r.value=!1}function $(){c.value||(r.value=!0)}function b(L){if(!c.value)return;let v=L.clientY-f.value.top-y.value;v<0?m.value=0:v>=E.value?m.value=E.value:m.value=v,t.value.scrollTo({top:m.value/E.value*O.value})}function R(){c.value||Z()}function Z(){cancelAnimationFrame(g),g=requestAnimationFrame(F)}function F(){t.value&&(M.value=s.scrollTop?.value??t.value.scrollTop,m.value=M.value/O.value*E.value)}function P(L){let v="addEventListener";L==="add"?v="addEventListener":v="removeEventListener",o.value?.[v]("pointerdown",z,{passive:!0}),window[v]("pointermove",b,{passive:!0}),window[v]("pointerup",A,{passive:!0})}const I=new MutationObserver(L=>{(a=="classList"||L.map(ge=>ge.oldValue).join().includes("height"))&&w()});function w(){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(()=>{N.value.clientHeight=o.value?.clientHeight??0,$()},150)}function S(){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"]}),I.observe(t.value,L),setTimeout(()=>{w()},100),x()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(M,()=>{Y(),u()}),{isScrollEnd:r,isDragSlider:c,offsetTop:m,scrollTop:M,scrollable:p,sliderPos:C,init:S,modifySliderEventListener:P}}const kt=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),bt=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=_t({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:r,isScrollEnd:u,sliderPos:g}=a,d=e.ref(!1),M=o.autoHide?e.computed(()=>d.value||!u.value):e.computed(()=>r.value),{load:y}=ee(`.hide-scrollbar {
|
|
14
|
+
}`),{LoadingComp:e.defineComponent({setup(){const u=Ve();return e.onMounted(()=>{u.value.classList.add(s)}),()=>e.h(n,t)}})}}function Mt({component:n,componentProps:t,delay:o=300}){const{LoadingComp:l}=de({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 ft=[(n=>(e.pushScopeId("data-v-f86c8393"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],gt=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)),ft,16))}}),Cn="",ve=k(gt,[["__scopeId","data-v-f86c8393"]]),mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQIC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id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",pt={class:"loading-wrap"},yt=["src"],ht=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",pt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(mt)},null,8,yt)]))}}),vn="",Nt=k(ht,[["__scopeId","data-v-2affe82a"]]);async function Dt(n){return new Promise(t=>setTimeout(()=>t(),n))}const Tt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhb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2OTY1NSwxMi41Mzg4OTY2IEMxNC44NTg1ODkzLDEyLjgxMDQ2OTkgMTUuMDExMTkwMiwxMy4xNzg4MzI3IDE1LjAxMTE5MDIsMTMuNTYyOTMxIEMxNS4wMTExOTAyLDEzLjk0NzAyOTQgMTQuODU4NTg5MywxNC4zMTUzOTIyIDE0LjU4Njk2NTUsMTQuNTg2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",Et=["onClick"],It=["onClick"],zt=["src"],jt=["src"],At=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},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},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(n,{emit:t}){const o=n,l="lzc-loading-toast",s=e.computed(()=>{let c={};return o.captureEventP&&(c.pointerEvents="none"),c}),i=e.computed(()=>{let c={padding:"12px"};return o.icon&&(c.padding="20px"),o.width&&(c.width=o.width),o.maxWidth&&(c.maxWidth=o.maxWidth),o.overlayContentStyle&&(c={...c,...o.overlayContentStyle}),c}),a=e.computed(()=>{let c={};return o.showClose&&!o.icon&&(c.paddingRight="16px"),c});function u(){o.closeOnClickOverlay&&t("close")}function d(){o.closeOnClick&&t("close")}return(c,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(u,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(d,["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(Tt),class:e.normalizeClass(`${l}-close`)},null,10,zt)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(wt),class:e.normalizeClass(`${l}-icon`)},null,10,jt)):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(a))},e.toDisplayString(n.message),7)):e.createCommentVNode("",!0)],6)],10,It)],10,Et),[[e.vShow,n.visible]])],4)]),_:1}))}}),xn="",Sn="",Lt=k(At,[["__scopeId","data-v-456fc2d8"]]);class xe{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=Lt}async show(){const t=this.options,l={...t,onClose:()=>{this.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 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)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Ct(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,u={...t,showIcon:t?.showIcon!==!1,captureEventP:t?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,i,a,u);const d=e.ref(!1);let c=null;const g=new xe(u);async function M(...p){if(o&&console.log(`useDelayAsync - handler - processing: ${d.value}`),!d.value){d.value=!0,c=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,d.value),s&&(!d.value||g.show())},a);try{o&&console.time("useDelayAsync - handler-execute-time");const f=await n(...p);o&&console.timeEnd("useDelayAsync - handler-execute-time"),await y(i),await t?.onSuccess?.(f)}catch(f){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(f),await y(i),await t?.onError?.(f)}}}async function y(p=!0){o&&console.log("useDelayAsync - close - closeLoading: ",p),d.value=!1,c&&clearTimeout(c),c=null,p&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),y()}),{processing:d,handler:M,close:y}}const vt=["onClick"],xt=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)`})),u=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function d(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(c,g)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d,["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(u))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],12,vt))}}),On="",St=k(xt,[["__scopeId","data-v-533e986b"]]),Se={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Ot{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(St),{...Se,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Se.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 _t=["xlink:href","fill","color"],W=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,_t)],4))}});function kt(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:a="classList"}=n,u=e.ref(!0),d=De(P,100);let c,g="";const M=e.ref(0),y=e.ref(0),p=e.ref(0),f=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),E=e.ref({clientHeight:0}),r=e.computed(()=>!!y.value),m=e.computed(()=>f.value.scrollHeight>f.value.clientHeight),D=e.computed(()=>l?f.value.clientHeight-U.value:f.value.clientHeight-E.value.clientHeight),O=e.computed(()=>f.value.scrollHeight-f.value.clientHeight),Q=e.computed(()=>Math.max(f.value.clientHeight/f.value.scrollHeight,.05)),U=e.computed(()=>Q.value>i?0:Q.value*f.value.clientHeight),L=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${p.value}px,0)`,height:l?`${U.value}px`:void 0}));function z(A){Y(),y.value=A.clientY-o.value.getBoundingClientRect().top||1,g=getComputedStyle(t.value).scrollBehavior,g==="smooth"&&(t.value.style.scrollBehavior="unset")}function C(){t.value.style.scrollBehavior=g,y.value=0,d()}function Y(){u.value=!1}function P(){r.value||(u.value=!0)}function b(A){if(!r.value)return;let v=A.clientY-f.value.top-y.value;v<0?p.value=0:v>=D.value?p.value=D.value:p.value=v,t.value.scrollTo({top:p.value/D.value*O.value})}function R(){r.value||Z()}function Z(){cancelAnimationFrame(c),c=requestAnimationFrame(F)}function F(){t.value&&(M.value=s.scrollTop?.value??t.value.scrollTop,p.value=M.value/O.value*D.value)}function $(A){let v="addEventListener";A==="add"?v="addEventListener":v="removeEventListener",o.value?.[v]("pointerdown",z,{passive:!0}),window[v]("pointermove",b,{passive:!0}),window[v]("pointerup",C,{passive:!0})}const I=new MutationObserver(A=>{(a=="classList"||A.map(fe=>fe.oldValue).join().includes("height"))&&w()});function w(){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 S(){if(t.value&&o.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",R,{passive:!0}),$("add");const A={};a==="classList"?Object.assign(A,{subtree:!0,childList:!0}):Object.assign(A,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),I.observe(t.value,A),setTimeout(()=>{w()},100),x()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(M,()=>{Y(),d()}),{isScrollEnd:u,isDragSlider:r,offsetTop:p,scrollTop:M,scrollable:m,sliderPos:L,init:S,modifySliderEventListener:$}}const bt=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Bt=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=kt({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:u,isScrollEnd:d,sliderPos:c}=a,g=e.ref(!1),M=o.autoHide?e.computed(()=>g.value||!d.value):e.computed(()=>u.value),{load:y}=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 m(){d.value=!0}function f(){d.value=!1}return t({uScrollBarReturn:a}),(N,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:m,onMouseleave:f,style:e.normalizeStyle(e.unref(g))},[e.renderSlot(N.$slots,"default",{},()=>[kt],!0)],36),[[e.vShow,e.unref(M)]])]),_:3}))}}),_n="",Bt=k(bt,[["__scopeId","data-v-efefe52c"]]),Qt=n=>(e.pushScopeId("data-v-18377f18"),n=n(),e.popScopeId(),n),Ut={class:"pull-refresh"},Yt={key:0,class:"pull-arrow-circle"},$t={key:0,class:"box-load"},Pt={class:"left-load"},Rt={class:"right-load"},Ft=Qt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Vt={class:"pull-arrow"},Ht={key:1},Wt=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),d=e.ref(0),M=e.ref(0),y=e.ref(0),m=e.ref(0),f=e.ref(),N=e.computed(()=>t.scrollTop),c=e.computed(()=>({transition:`${y.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),p=e.computed(()=>({borderColor:l,transition:y.value,transform:`rotate(${100+a.value}deg)`,opacity:r.value}));e.watch(m,z=>{z===0&&(s.value=-50,r.value=.3)}),e.watch(d,z=>{if(m.value===2)return;const A=Math.pow(z,o);A===0&&(s.value=-50),A<=50&&A>0&&(s.value=A-45,a.value=Math.pow(A,1.5),A>15?u.value=!0:u.value=!1),A>50&&(s.value=5,r.value=1,m.value)});const E=e.ref(0),O=z=>{E.value=z.touches[0].pageY},Q=z=>{const A=z.touches[0].pageY-E.value;E.value=z.touches[0].pageY,!t.refreshOff&&(!t?.refresh||m.value!==2&&N.value===0&&(g.value===0&&(g.value=z.touches[0].pageY),M.value=0,C.value.style.transition=`${M.value}ms`,y.value=0,d.value=z.touches[0].pageY-g.value,C.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,A>0&&z.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||m.value===2)return;g.value=0,M.value=300;const z=Math.pow(d.value,o);C.value.style.transition=`${M.value}ms`,z>50?(m.value=2,d.value=Math.pow(50,1/o),C.value.style.transform=`translate3d(0, ${Math.pow(d.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(()=>{m.value=0,d.value=0,C.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,setTimeout(()=>{f.value=void 0},y.value)},600)})):(d.value=0,C.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`)},C=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(C.value=document.querySelector(t.pullRefreshContainer),C.value?.addEventListener("touchstart",O),C.value?.addEventListener("touchmove",Q),C.value?.addEventListener("touchend",U))}),(z,A)=>(e.openBlock(),e.createElementBlock("div",Ut,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(c))},[f.value?(e.openBlock(),e.createElementBlock("div",Ht,e.toDisplayString(f.value),1)):(e.openBlock(),e.createElementBlock("div",Yt,[m.value==2?(e.openBlock(),e.createElementBlock("div",$t,[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)]),Ft])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(p))},[e.createElementVNode("div",Vt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:u.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),kn="",Oe=k(Wt,[["__scopeId","data-v-18377f18"]]),Zt={inheritAttrs:!1},Kt=e.defineComponent({...Zt,__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=Ae(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:d}=s;t({vListReturn:s});const M="virtualListWrapper"+new Date().getTime();return(y,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:n.refresh,refreshOff:n.refreshOff,scrollTop:e.unref(d),pullRefreshContainer:"#"+M},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:M},[e.createElementVNode("div",e.mergeProps({onScrollPassive:m[0]||(m[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:N})=>(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:N,index:f},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),bn="",Gt=k(Kt,[["__scopeId","data-v-e0fb787f"]]),fe=n=>(e.pushScopeId("data-v-c986249d"),n=n(),e.popScopeId(),n),Xt={style:{position:"absolute"}},qt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Jt=["width","height"],en=[fe(()=>e.createElementVNode("title",null,"logo",-1)),fe(()=>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))],tn=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",Xt,[qt,(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"},en,8,Jt))]))}}),Un="",nn=k(tn,[["__scopeId","data-v-c986249d"]]),on=["image/avif","image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/tiff","image/webp","image/wbmp"],ln=["image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp"];function _e(n,t){const o=e.ref(),l=e.ref(n?.value),s=e.computed(()=>l.value?.startsWith("/_lzc")),i=e.ref(!1),a=e.computed(()=>i.value),r=e.computed(()=>!t?.value||t?.value.startsWith("video/")?!0:s.value?on.includes(t.value):ln.includes(t.value));n&&e.watch(n,d=>{l.value=d,i.value=!1});function u(){i.value=!0}function g(){o.value&&(o.value.src="")}return{el:o,imgSrc:l,isError:i,hasError:a,isSupport:r,cancel:g,handleError:u}}const sn=n=>(e.pushScopeId("data-v-9ecf66ee"),n=n(),e.popScopeId(),n),an=["title"],rn=sn(()=>e.createElementVNode("span",{class:"text-[14px] text-[#ACACAC]"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),cn=["src"],un=["src"],dn=["title"],Mn={inheritAttrs:!1},fn=e.defineComponent({...Mn,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},isFullyLoadedVisible:{type:Boolean}},setup(n){const t=n,o=e.ref(!1),l=e.ref(!1),{src:s,mime:i}=e.toRefs(t),{el:a,imgSrc:r,isSupport:u,hasError:g,cancel:d,handleError:M}=_e(s,i),{LoadingComp:y}=Me({component:xe,delay:500});e.onBeforeUnmount(d);function m(N){N&&(l.value=!0),o.value=!0}function f(N){N?M():l.value=!0,o.value=!0}return(N,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(y),{key:0})),e.unref(u)?e.unref(g)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},N.$attrs,{title:e.unref(r),class:"tip-wrap"}),[e.createVNode(W,{class:"w-[92px] h-[92px]",name:"\u56FE\u7247\u635F\u574F"})],16,dn)):e.renderSlot(N.$slots,"default",{key:2,src:e.unref(r),onLoad:m,onError:f},()=>[n.thumbnail&&!l.value?(e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},N.$attrs,{onLoad:c[0]||(c[0]=p=>m()),onError:c[1]||(c[1]=p=>f()),src:n.thumbnail}),null,16,cn)):e.createCommentVNode("",!0),n.isShowSrc||l.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},N.$attrs,{ref_key:"el",ref:a,onLoad:c[2]||(c[2]=p=>m(!0)),onError:c[3]||(c[3]=p=>f(!0)),src:e.unref(r)}),null,16,un)),[[e.vShow,l.value||!n.isFullyLoadedVisible]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},N.$attrs,{title:e.unref(r),class:"tip-wrap"}),[e.createVNode(W,{class:"icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),rn],16,an))],64))}}),Yn="",gn=k(fn,[["__scopeId","data-v-9ecf66ee"]]),mn=["title"],yn=["src"],pn=["title"],hn=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},setup(n){const t=n,o=e.ref(!1),{src:l,mime:s}=e.toRefs(t),{el:i,imgSrc:a,hasError:r,isSupport:u,cancel:g,handleError:d}=_e(l,s);return e.onBeforeUnmount(g),(M,y)=>e.unref(u)?e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(a),class:"flex items-center justify-center"},[e.createVNode(W,{class:"w-[30%] h-[30%]",name:"\u56FE\u7247\u635F\u574F"})],8,pn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,ref_key:"el",ref:i,fetchpriority:"high",onLoad:y[0]||(y[0]=m=>o.value=!0),onError:y[1]||(y[1]=(...m)=>e.unref(d)&&e.unref(d)(...m)),src:e.unref(a)},null,40,yn)),[[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(a),class:"flex items-center justify-center"},[e.createVNode(W,{class:"w-[30%] h-[30%]",name:"\u672A\u77E5\u7C7B\u578B"})],8,mn))}}),$n="",Nn=k(hn,[["__scopeId","data-v-5d21e3bf"]]);h.DefaultLoading=xe,h.Image=gn,h.Loading=nn,h.LoadingToast=X,h.PageLoading=ht,h.PullRefresh=Oe,h.ScrollBar=Bt,h.SvgIcon=W,h.Thumbnail=Nn,h.ToastCreator=St,h.VirtualList=Gt,h.allSelectedKey=le,h.closeDialogKey=ve,h.dialogController=ut,h.diff=nt,h.isAllSelectedKey=re,h.isSelectedKey=oe,h.selectAllKey=ae,h.selectKey=se,h.selectedCountKey=ce,h.toggleAllKey=te,h.toggleKey=ne,h.unselectAllKey=G,h.unselectKey=ie,h.useDelayAsync=Ct,h.useDelayLoad=dt,h.useDelayLoadComp=Me,h.useDragSelect=de,h.useDragSelectByMobile=at,h.useDragSelectByPc=st,h.useSelectable=lt,h.useSelectableInjectors=ot,h.useVirtualList=Ae,h.vDebounceClick=be,h.vSingleClick=ye,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
20
|
+
}`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{y(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function p(){g.value=!0}function f(){g.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:p,onMouseleave:f,style:e.normalizeStyle(e.unref(c))},[e.renderSlot(E.$slots,"default",{},()=>[bt],!0)],36),[[e.vShow,e.unref(M)]])]),_:3}))}}),kn="",Qt=k(Bt,[["__scopeId","data-v-efefe52c"]]),Ut=n=>(e.pushScopeId("data-v-18377f18"),n=n(),e.popScopeId(),n),Yt={class:"pull-refresh"},Pt={key:0,class:"pull-arrow-circle"},$t={key:0,class:"box-load"},Rt={class:"left-load"},Ft={class:"right-load"},Vt=Ut(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Ht={class:"pull-arrow"},Wt={key:1},Zt=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),u=e.ref(.3),d=e.ref(!1),c=e.ref(0),g=e.ref(0),M=e.ref(0),y=e.ref(0),p=e.ref(0),f=e.ref(),E=e.computed(()=>t.scrollTop),r=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:u.value}));e.watch(p,z=>{z===0&&(s.value=-50,u.value=.3)}),e.watch(g,z=>{if(p.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?d.value=!0:d.value=!1),C>50&&(s.value=5,u.value=1,p.value)});const D=e.ref(0),O=z=>{D.value=z.touches[0].pageY},Q=z=>{const C=z.touches[0].pageY-D.value;D.value=z.touches[0].pageY,!t.refreshOff&&(!t?.refresh||p.value!==2&&E.value===0&&(c.value===0&&(c.value=z.touches[0].pageY),M.value=0,L.value.style.transition=`${M.value}ms`,y.value=0,g.value=z.touches[0].pageY-c.value,L.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,C>0&&z.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||p.value===2)return;c.value=0,M.value=300;const z=Math.pow(g.value,o);L.value.style.transition=`${M.value}ms`,z>50?(p.value=2,g.value=Math.pow(50,1/o),L.value.style.transform=`translate3d(0, ${Math.pow(g.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(()=>{p.value=0,g.value=0,L.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,setTimeout(()=>{f.value=void 0},y.value)},600)})):(g.value=0,L.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`)},L=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(L.value=document.querySelector(t.pullRefreshContainer),L.value?.addEventListener("touchstart",O),L.value?.addEventListener("touchmove",Q),L.value?.addEventListener("touchend",U))}),(z,C)=>(e.openBlock(),e.createElementBlock("div",Yt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(r))},[f.value?(e.openBlock(),e.createElementBlock("div",Wt,e.toDisplayString(f.value),1)):(e.openBlock(),e.createElementBlock("div",Pt,[p.value==2?(e.openBlock(),e.createElementBlock("div",$t,[e.createElementVNode("div",Rt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Ft,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Vt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(m))},[e.createElementVNode("div",Ht,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:d.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),bn="",Oe=k(Zt,[["__scopeId","data-v-18377f18"]]),Kt={inheritAttrs:!1},Gt=e.defineComponent({...Kt,__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:u,innerProps:d,getItemHeightData:c,scrollTop:g}=s;t({vListReturn:s});const M="virtualListWrapper"+new Date().getTime();return(y,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:n.refresh,refreshOff:n.refreshOff,scrollTop:e.unref(g),pullRefreshContainer:"#"+M},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:M},[e.createElementVNode("div",e.mergeProps({onScrollPassive:p[0]||(p[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(u))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[(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(c)(f).height}px`,display:"flex"})},[e.renderSlot(y.$slots,"default",{data:E,index:f},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Bn="",Xt=k(Gt,[["__scopeId","data-v-e0fb787f"]]),Me=n=>(e.pushScopeId("data-v-c986249d"),n=n(),e.popScopeId(),n),qt={style:{position:"absolute"}},Jt=Me(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),en=["width","height"],tn=[Me(()=>e.createElementVNode("title",null,"logo",-1)),Me(()=>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))],nn=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",qt,[Jt,(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"},tn,8,en))]))}}),Yn="",on=k(nn,[["__scopeId","data-v-c986249d"]]),ln=["image/avif","image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/tiff","image/webp","image/wbmp"],sn=["image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp"];function _e(n,t){const o=e.ref(n?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),i=e.computed(()=>s.value),a=e.computed(()=>{const d=t?.value;return!d||d.startsWith("video/")?!0:d.startsWith("image/")?l.value?ln.includes(d):sn.includes(d):!1});n&&e.watch(n,d=>{o.value=d,s.value=!1});function u(){s.value=!0}return{imgSrc:o,isError:s,hasError:i,isSupport:a,handleError:u}}function ke(){return{vImageCancel:{beforeUnmount(t){!t||(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const an=n=>(e.pushScopeId("data-v-5ec970bf"),n=n(),e.popScopeId(),n),rn=["title"],cn=an(()=>e.createElementVNode("span",{class:"text-[14px] text-[#ACACAC]"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),un=["src"],dn=["src"],Mn=["title"],fn={inheritAttrs:!1},gn=e.defineComponent({...fn,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},isFullyLoadedVisible:{type:Boolean}},setup(n){const t=n,o=e.ref(!1),l=e.ref(!1),s=e.ref(!1),{src:i,mime:a}=e.toRefs(t),{imgSrc:u,isSupport:d,hasError:c,handleError:g}=_e(i,a),{vImageCancel:M}=ke(),{LoadingComp:y}=de({component:ve,delay:500});function p(){l.value=!0,setTimeout(()=>{s.value=!0},50)}function f(r){r&&p(),o.value=!0}function E(r){r?g():p(),o.value=!0}return(r,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(y),{key:0})),e.unref(d)?e.unref(c)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},r.$attrs,{title:e.unref(u),class:"tip-wrap"}),[e.createVNode(W,{class:"w-[92px] h-[92px]",name:"\u56FE\u7247\u635F\u574F"})],16,Mn)):e.renderSlot(r.$slots,"default",{key:2,src:e.unref(u),onLoad:f,onError:E},()=>[n.thumbnail&&!s.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},r.$attrs,{class:"preview-blur",onLoad:m[0]||(m[0]=D=>f()),onError:m[1]||(m[1]=D=>E()),src:n.thumbnail}),null,16,un)),[[e.unref(M)]]):e.createCommentVNode("",!0),n.isShowSrc||l.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},r.$attrs,{class:"origin-animation",onLoad:m[2]||(m[2]=D=>f(!0)),onError:m[3]||(m[3]=D=>E(!0)),src:e.unref(u)}),null,16,dn)),[[e.unref(M)],[e.vShow,l.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},r.$attrs,{title:e.unref(u),class:"tip-wrap"}),[e.createVNode(W,{class:"icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),cn],16,rn))],64))}}),Pn="",mn=k(gn,[["__scopeId","data-v-5ec970bf"]]),pn=["title"],yn=["src"],hn=["title"],Nn=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},setup(n){const t=n,o=e.ref(!1),{src:l,mime:s}=e.toRefs(t),{imgSrc:i,hasError:a,isSupport:u,handleError:d}=_e(l,s),{vImageCancel:c}=ke();return(g,M)=>e.unref(u)?e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(i),class:"flex items-center justify-center"},[e.createVNode(W,{class:"w-[30%] h-[30%]",name:"\u56FE\u7247\u635F\u574F"})],8,hn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,ref:"el",fetchpriority:"high",onLoad:M[0]||(M[0]=y=>o.value=!0),onError:M[1]||(M[1]=(...y)=>e.unref(d)&&e.unref(d)(...y)),src:e.unref(i)},null,40,yn)),[[e.unref(c)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(i),class:"flex items-center justify-center"},[e.createVNode(W,{class:"w-[30%] h-[30%]",name:"\u672A\u77E5\u7C7B\u578B"})],8,pn))}}),$n="",Dn=k(Nn,[["__scopeId","data-v-8cb3d6f8"]]);h.DefaultLoading=ve,h.Image=mn,h.Loading=on,h.LoadingToast=xe,h.PageLoading=Nt,h.PullRefresh=Oe,h.ScrollBar=Qt,h.SvgIcon=W,h.Thumbnail=Dn,h.ToastCreator=Ot,h.VirtualList=Xt,h.allSelectedKey=oe,h.closeDialogKey=Ce,h.dialogController=dt,h.diff=ot,h.isAllSelectedKey=ie,h.isSelectedKey=ne,h.selectAllKey=se,h.selectKey=le,h.selectedCountKey=re,h.toggleAllKey=ee,h.toggleKey=te,h.unselectAllKey=G,h.unselectKey=ae,h.useDelayAsync=Ct,h.useDelayLoad=Mt,h.useDelayLoadComp=de,h.useDragSelect=ue,h.useDragSelectByMobile=it,h.useDragSelectByPc=at,h.useSelectable=st,h.useSelectableInjectors=lt,h.useVirtualList=Le,h.vDebounceClick=Be,h.vSingleClick=me,Object.defineProperties(h,{__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-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-
|
|
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-456fc2d8]{display:flex;position:fixed;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-456fc2d8]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-456fc2d8]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;box-sizing:border-box}.lzc-loading-toast-content[data-v-456fc2d8]>:not([hidden])~:not([hidden]){margin-top:4px;margin-bottom:0}.lzc-loading-toast-close[data-v-456fc2d8]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-456fc2d8]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-456fc2d8 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-456fc2d8]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;box-sizing:border-box;white-space:pre-wrap;line-height:26px}@keyframes lzc-spin-456fc2d8{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}.tip-wrap[data-v-5ec970bf]{display:flex;flex-direction:column;align-items:center;justify-content:center}.icon[data-v-5ec970bf]{width:162px;height:134px}img[data-v-5ec970bf]{pointer-events:none}.preview-blur[data-v-5ec970bf]{filter:blur(5px)}.origin-animation[data-v-5ec970bf]{animation:blur-5ec970bf .65s cubic-bezier(.39,.575,.565,1)}@keyframes blur-5ec970bf{0%{filter:blur(5px);-webkit-filter:blur(5px);-ms-filter:blur(5px);-moz-filter:blur(5px)}to{filter:blur(0);-webkit-filter:blur(0);-ms-filter:blur(0);-moz-filter:blur(0)}}img[data-v-8cb3d6f8]{pointer-events:none}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Ref } from "vue";
|
|
2
2
|
export declare const cloudSupportList: string[];
|
|
3
3
|
export declare const localSupportList: string[];
|
|
4
4
|
export declare function useLzcImage(url?: Ref<string | undefined>, mime?: Ref<string | undefined>): {
|
|
5
|
-
el: Ref<HTMLImageElement | undefined>;
|
|
6
5
|
imgSrc: Ref<string | undefined>;
|
|
7
6
|
isError: Ref<boolean>;
|
|
8
7
|
hasError: import("vue").ComputedRef<boolean>;
|
|
9
8
|
isSupport: import("vue").ComputedRef<boolean>;
|
|
10
|
-
cancel: () => void;
|
|
11
9
|
handleError: () => void;
|
|
12
10
|
};
|
|
11
|
+
export declare function useImageDirective(): {
|
|
12
|
+
vImageCancel: import("vue").ObjectDirective<HTMLImageElement, any>;
|
|
13
|
+
};
|
|
@@ -23,8 +23,8 @@ export interface LoadingToastOptions {
|
|
|
23
23
|
className?: string;
|
|
24
24
|
/** 自定义content样式 */
|
|
25
25
|
overlayContentStyle?: CSSProperties;
|
|
26
|
-
/**
|
|
27
|
-
|
|
26
|
+
/** 是否允许事件捕获 */
|
|
27
|
+
captureEventP?: boolean;
|
|
28
28
|
/** 关闭后按钮触发的事件 */
|
|
29
29
|
onClose?: Function;
|
|
30
30
|
}
|
|
@@ -37,6 +37,11 @@ export declare class LoadingToast {
|
|
|
37
37
|
constructor(options?: LoadingToastOptions);
|
|
38
38
|
show(): Promise<void>;
|
|
39
39
|
destory(): Promise<void>;
|
|
40
|
-
|
|
40
|
+
close(): void;
|
|
41
41
|
}
|
|
42
42
|
export default LoadingToast;
|
|
43
|
+
interface ToastOptions {
|
|
44
|
+
}
|
|
45
|
+
export declare const Toast: {
|
|
46
|
+
message(text: string, options?: ToastOptions): LoadingToast;
|
|
47
|
+
};
|
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
12
12
|
closeOnClickOverlay?: boolean | undefined;
|
|
13
13
|
className?: string | undefined;
|
|
14
14
|
overlayContentStyle?: CSSProperties | undefined;
|
|
15
|
-
|
|
15
|
+
captureEventP?: boolean | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
message: string;
|
|
18
18
|
duration: number;
|
|
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
25
25
|
closeOnClickOverlay: boolean;
|
|
26
26
|
className: string;
|
|
27
27
|
overlayContentStyle: undefined;
|
|
28
|
-
|
|
28
|
+
captureEventP: boolean;
|
|
29
29
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
30
30
|
visible?: Ref<boolean> | undefined;
|
|
31
31
|
message?: string | undefined;
|
|
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
39
39
|
closeOnClickOverlay?: boolean | undefined;
|
|
40
40
|
className?: string | undefined;
|
|
41
41
|
overlayContentStyle?: CSSProperties | undefined;
|
|
42
|
-
|
|
42
|
+
captureEventP?: boolean | undefined;
|
|
43
43
|
}>, {
|
|
44
44
|
message: string;
|
|
45
45
|
duration: number;
|
|
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
52
52
|
closeOnClickOverlay: boolean;
|
|
53
53
|
className: string;
|
|
54
54
|
overlayContentStyle: undefined;
|
|
55
|
-
|
|
55
|
+
captureEventP: boolean;
|
|
56
56
|
}>>> & {
|
|
57
57
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
58
58
|
}, {
|
|
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
67
67
|
closeOnClick: boolean;
|
|
68
68
|
className: string;
|
|
69
69
|
overlayContentStyle: CSSProperties;
|
|
70
|
-
|
|
70
|
+
captureEventP: boolean;
|
|
71
71
|
}>;
|
|
72
72
|
export default _default;
|
|
73
73
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -12,7 +12,7 @@ export interface UseDelayAsyncOptions extends LoadingToastOptions {
|
|
|
12
12
|
/** 当 error 错误时是否打印错误日志,默认开启 */
|
|
13
13
|
printErrorLog?: boolean;
|
|
14
14
|
/** 当execute函数执行完成后执行该回调函数 */
|
|
15
|
-
onSuccess?: (() => void) | (() => Promise<void>);
|
|
15
|
+
onSuccess?: ((res?: any) => void) | ((res?: any) => Promise<void>);
|
|
16
16
|
/** 抛出捕获到的错误 */
|
|
17
17
|
onError?: ((err: any) => void) | (() => void) | (() => Promise<void>);
|
|
18
18
|
}
|