@lazycatcloud/lzc-toolkit 0.0.119 → 0.0.120
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 +665 -638
- package/dist/index.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/types/image/Image.vue.d.ts +4 -4
- package/package.json +4 -4
package/dist/index.umd.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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((S,x)=>(typeof l=="number"?w=l:w=l(x),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),S=Math.min(I+f+s,g.value.length);y.value={start:w,end:S},E.value=g.value.slice(w,S).map((x,A)=>({data:x,index:A+w})),p.value.start=I-w,p.value.end=p.value.start+f}}function C(I){let w=0,S=r.value.length-1,x=-1;for(;w<=S;){const A=Math.floor((w+S)/2);r.value[A].sum>=I?(x=A,S=A-1):w=A+1}return Math.max(0,x)}function Y(I){let w=0,S=0;for(let x=I;x<r.value.length&&(w++,S+=r.value[x].height,!(S>=a.height.value));x++);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 S(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 x(){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:S,dragEnd:x,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 {
|
|
1
|
+
(function(N,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(N=typeof globalThis<"u"?globalThis:N||self,e(N.ui={},N.Vue))})(this,function(N,e){"use strict";const me={created(n,t){let o,l;function s(a){o=a.clientX,l=a.clientY}function r(a){if(o===void 0)return;const c=a.clientX,d=a.clientY,i=Math.abs(c-o),g=Math.abs(d-l);i>5||g>5||t.value&&t.value(a)}n.__mouse_down__=s,n.__mouse_up__=r,n.addEventListener("mousedown",s),n.addEventListener("mouseup",r)},unmounted(n){n.removeEventListener("mousedown",n.__mouse_down__),n.removeEventListener("mouseup",n.__mouse_up__)}},Ue={created(n,t){const{fn:o,ms:l=1500}=t.value;let s=null;function r(a){s||(o(a),s=setTimeout(()=>{s=null},l))}n.addEventListener("click",r)}};var Pe=Object.defineProperty,Ye=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,ye=(n,t,o)=>t in n?Pe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,Fe=(n,t)=>{for(var o in t||(t={}))Re.call(t,o)&&ye(n,o,t[o]);if(pe)for(var o of pe(t))Ve.call(t,o)&&ye(n,o,t[o]);return n},He=(n,t)=>Ye(n,$e(t));function We(n,t){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=n()},He(Fe({},t),{flush:(o=t?.flush)!=null?o:"sync"})),e.readonly(l)}var he;const G=typeof window<"u",Ne=n=>typeof n=="function";G&&((he=window?.navigator)==null?void 0:he.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Z(n){return typeof n=="function"?n():e.unref(n)}function De(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function Ze(n,t={}){let o,l;return r=>{const a=Z(n),c=Z(t.maxWait);if(o&&clearTimeout(o),a<=0||c!==void 0&&c<=0)return l&&(clearTimeout(l),l=null),r();c&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,r()},c)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,r()},a)}}function Ke(n,t=!0,o=!0){let l=0,s,r=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return d=>{const i=Z(n),g=Date.now()-l;if(a(),i<=0)return l=Date.now(),d();g>i&&(o||!r)?(l=Date.now(),d()):t&&(s=setTimeout(()=>{l=Date.now(),r=!0,a(),d()},i)),!o&&!s&&(s=setTimeout(()=>r=!0,i)),r=!1}}function Ge(n){return n}function Xe(n,t){let o,l,s;const r=e.ref(!0),a=()=>{r.value=!0,s()};e.watch(n,a,{flush:"sync"});const c=Ne(t)?t:t.get,d=Ne(t)?void 0:t.set,i=e.customRef((g,M)=>(l=g,s=M,{get(){return r.value&&(o=c(),r.value=!1),l(),o},set(p){d?.(p)}}));return Object.isExtensible(i)&&(i.trigger=a),i}function Te(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function we(n,t=200,o={}){return De(Ze(t,o),n)}function Ee(n,t=200,o=!1,l=!0){return De(Ke(t,o,l),n)}function Ie(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function ze(n){var t;const o=Z(n);return(t=o?.$el)!=null?t:o}const qe=G?window:void 0,Je=G?window.document:void 0;function et(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),Ie(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 tt(){const n=e.getCurrentInstance(),t=Xe(()=>null,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var je=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,lt=(n,t)=>{var o={};for(var l in n)nt.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&je)for(var l of je(n))t.indexOf(l)<0&&ot.call(n,l)&&(o[l]=n[l]);return o};function st(n,t,o={}){const l=o,{window:s=qe}=l,r=lt(l,["window"]);let a;const c=et(()=>s&&"ResizeObserver"in s),d=()=>{a&&(a.disconnect(),a=void 0)},i=e.watch(()=>ze(n),M=>{d(),c.value&&s&&M&&(a=new ResizeObserver(t),a.observe(M,r))},{immediate:!0,flush:"post"}),g=()=>{d(),i()};return Te(g),{isSupported:c,stop:g}}function at(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,s=e.ref(t.width),r=e.ref(t.height);return st(n,([a])=>{const c=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;c?(s.value=c.reduce((d,{inlineSize:i})=>d+i,0),r.value=c.reduce((d,{blockSize:i})=>d+i,0)):(s.value=a.contentRect.width,r.value=a.contentRect.height)},o),e.watch(()=>ze(n),a=>{s.value=a?t.width:0,r.value=a?t.height:0}),{width:s,height:r}}var Ae;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(Ae||(Ae={}));let rt=0;function J(n,t={}){const o=e.ref(!1),{document:l=Je,immediate:s=!0,manual:r=!1,id:a=`vueuse_styletag_${++rt}`}=t,c=e.ref(n);let d=()=>{};const i=()=>{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(c,p=>{M.innerText=p},{immediate:!0}),o.value=!0)},g=()=>{!l||!o.value||(d(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return s&&!r&&Ie(i),r||Te(g),{id:a,css:c,unload:g,load:i,isLoaded:e.readonly(o)}}var it=Object.defineProperty,Le=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,Ce=(n,t,o)=>t in n?it(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,dt=(n,t)=>{for(var o in t||(t={}))ct.call(t,o)&&Ce(n,o,t[o]);if(Le)for(var o of Le(t))ut.call(t,o)&&Ce(n,o,t[o]);return n};dt({linear:Ge},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function ve(n,t){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=t,r=e.ref(null),a=at(r),c=e.ref(!0),d=we(U,100);let i;const g=e.shallowRef(n),M=e.ref(0),p=e.ref({start:0,end:10}),m=e.ref({start:0,end:s});let f=0;const E=e.ref([]),u=e.computed(()=>{let{sum:I,height:w}={sum:0,height:0};return g.value.map((_,S)=>(typeof l=="number"?w=l:w=l(S),I+=w,{height:w,sum:I}))}),y=e.computed(()=>Y(p.value.start)),h=e.computed(()=>typeof l=="number"?u.value.length*l:u.value[u.value.length-1]?.sum||0),z=e.computed(()=>{const{start:I,end:w}=m.value;return E.value.slice(I,w)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(i)),e.watch(g,()=>{(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,()=>{x(),d()});function x(){c.value=!1}function U(){c.value=!0,o?.()}function C(){cancelAnimationFrame(i),i=requestAnimationFrame(j)}function j(){if(r.value){M.value=r.value.scrollTop;let I=v(M.value);f=P(I);let w=Math.max(0,I-s),_=Math.min(I+f+s,g.value.length);p.value={start:w,end:_},E.value=g.value.slice(w,_).map((S,L)=>({data:S,index:L+w})),m.value.start=I-w,m.value.end=m.value.start+f}}function v(I){let w=0,_=u.value.length-1,S=-1;for(;w<=_;){const L=Math.floor((w+_)/2);u.value[L].sum>=I?(S=L,_=L-1):w=L+1}return Math.max(0,S)}function P(I){let w=0,_=0;for(let S=I;S<u.value.length&&(w++,_+=u.value[S].height,!(_>=a.height.value));S++);return w}function Y(I){if(typeof l=="number")return I*l;let w=u.value[I];return w?w.sum-w.height:0}function B(I){return u.value[I]||{sum:0,height:0}}function R(I){if(r.value){const w=B(I);r.value.scrollTop=w.sum-w.height,j()}}const W=e.computed(()=>({style:{width:"100%",height:`${h.value}px`,pointerEvents:c.value?void 0:"none"}})),V=e.computed(()=>({style:{transform:`translate3d(0, ${y.value}px, 0)`,"will-change":"transform"}})),$={overflowY:"auto"};return{list:E,visiableList:z,getItemHeightData:B,getoffsetTopIndex:v,totalHeight:h,clientHeight:a.height,scrollTo:R,scrollTop:M,isScrollEnd:c,containerProps:{ref:r,onScroll:()=>{C()},style:$},wrapperProps:W,innerProps:V}}const ee=Symbol(),te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),se=Symbol(),ae=Symbol(),re=Symbol(),K=Symbol(),ie=Symbol();function Mt(n,t){const o=Object.keys(n),l=Object.keys(t);if(o.length!==l.length)return!1;for(let s of o){const r=n[s],a=t[s];if(r instanceof Date){if(r.getTime()!==a.getTime())return!1;continue}if(n[s]!==t[s])return!1}return!0}function ft(n,t,o){const l=n.reduce((g,M)=>(g.set(M[o],M),g),new Map),s=[],r=[],a=[],c=new Set,d=2500,i=Math.ceil(t.length/d);for(let g=0;g<i;g++){const M=g*d,p=M+d,m=t.slice(M,p);for(const f of m){const E=f[o],u=l.get(E);!u&&f?s.push(f):u&&!f?r.push(u):u&&f&&(Mt(u,f)||a.push(f)),c.add(E),l.delete(E)}}for(const[g,M]of l)c.has(g)||r.push(M);return{added:s,removed:r,modified:a}}function gt(){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(()=>[])},r=e.inject(oe,s),a=e.inject(ne,t),c=e.inject(re,o),d=e.inject(te,n),i=e.inject(ee,n),g=e.inject(le,n),M=e.inject(se,n),p=e.inject(ae,n),m=e.inject(K,n),f=e.inject(ie,l);return{selected:r,isSelected:a,isAllSelected:c,toggle:d,toggleAll:i,select:g,selectAll:M,unselect:p,unselectAll:m,selectedCount:f}}function mt(n,t){const o=e.ref(!1),l=e.ref(new Set),s=e.ref(new Map);e.watch(n,u=>{s.value=u.reduce((y,h)=>(y.set(h[t],h),y),new Map)},{deep:!0,immediate:!0});const r=e.computed(()=>{let u=[];if(o.value!=null)o.value&&(u=Array.from(s.value.values()));else if(l.value.size){let y;l.value.forEach(h=>{y=s.value.get(h),y&&u.push(y)})}return u}),a=e.computed(()=>{let u=0;return o.value!=null?o.value&&(u=s.value.size):u=l.value.size,u}),c=e.computed(()=>{let u;if(o.value!=null)u=o.value;else{const y=l.value.size,h=s.value.size;u=y==h}return u});function d(){o.value=!0}function i(){o.value=!1}function g(u){m(()=>{u.forEach(y=>{l.value.add(y[t])})})}function M(u){m(()=>{u.forEach(y=>{l.value.delete(y[t])})})}function p(u){return o.value!=null?o.value:l.value.has(u[t])}function m(u){o.value!=null&&(o.value?l.value=new Set(Array.from(s.value.keys())):l.value=new Set),u(),l.value.size==0?o.value=!1:l.value.size==s.value.size?o.value=!0:o.value=null}function f(u){m(()=>{u.forEach(y=>{p(y)?l.value.delete(y[t]):l.value.add(y[t])})})}function E(){const{value:u}=c;u?i():d()}return e.provide(ee,E),e.provide(te,f),e.provide(ne,p),e.provide(oe,r),e.provide(le,g),e.provide(se,d),e.provide(ae,M),e.provide(re,c),e.provide(K,i),e.provide(K,i),e.provide(ie,a),{selected:r,select:g,selectAll:d,unselect:M,unselectAll:i,toggle:f,toggleAll:E,isSelected:p,isAllSelected:c,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:r=ce("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ce("\u53D6\u6D88\u5168\u9009")}=l();let c={};const d=e.computed(()=>Ee(t==="colum"?On:_n,50)),i=new Set,g=e.ref(!0),M=e.ref(),p=e.ref(!1),m=e.ref({x:0,y:0}),f=e.ref({x:0,y:0,scrollTop:0}),E=new ResizeObserver(D=>u.value=D[0].target.getBoundingClientRect()),u=e.ref({}),y=e.ref({top:0,height:0,sync(D=!1){y.value.top=M.value?.scrollTop||0,D&&(y.value.height=M.value?.scrollHeight||0)}}),h=e.computed(()=>p.value?{left:Math.min(m.value.x,f.value.x)-u.value.left,top:Math.min(m.value.y,f.value.y)-u.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:z=50,startSpeed:x=30,maxSpeed:U=30}=o;let C;const j=z,v=x,P=U,Y=D=>D**1;let B=0;function R(D){if(cancelAnimationFrame(C),B=W(D),B=Math.max(Math.min(B,P),-P),B!==0){const T=M.value;if(!T||!p.value)return;const k=y.value.height-u.value.height;let A=y.value.top+Number(B);A=Math.min(Math.max(0,A),k),T.scrollTop=A,$(),C=requestAnimationFrame(()=>R(D))}}function W(D){if(M.value){const k=u.value,A=k.bottom-D;if(A<j)return v*Y(1-A/j);const Q=D-k.top;if(Q<j)return-v*Y(1-Q/j)}return 0}function V(D){const T={...h.value,right:0,bottom:0};return T.left+=u.value.left,T.top+=u.value.top-y.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 $(){y.value.sync();const{top:D,height:T}=y.value;f.value.y=Math.min(T+u.value.top,f.value.y+D-f.value.scrollTop),f.value.scrollTop=D}function I(D,T,k="dynamic-styles"){let A=document.getElementById(k);A||(A=document.createElement("style"),A.id=k,document.head.appendChild(A));const Q=A.sheet.cssRules,F=Q.length,xn=`${D} { ${T} }`;for(let ge=0;ge<F;ge++){const Qe=Q[ge];if(Qe.selectorText===D&&Qe.style.cssText===T)return}A.sheet.insertRule(xn,F)}function w(D,T){g.value=!0,p.value=!0,y.value.height?y.value.sync():y.value.sync(!0),m.value.x=D,m.value.y=T+y.value.top,f.value.x=m.value.x,f.value.y=m.value.y,M.value?.classList.add("disable-scroll-behavior"),i.clear()}function _(D,T,k){!p.value||(g.value&&t==="colum"&&!O()&&(a(),g.value=!1),k?.(),R(T),f.value.x=Math.max(D,u.value.left),f.value.y=Math.min(T+y.value.top,y.value.height+u.value.top),f.value.scrollTop=y.value.top,d.value())}function S(){p.value=!1,M.value?.classList.remove("disable-scroll-behavior")}function L(){!p.value||(B||$(),d.value())}function O(){if(!p.value)return!1;const{width:D,height:T}=h.value;return!(Math.max(D,T)>5)}function fe(){O()&&a()}function On(){O()||M.value?.querySelectorAll(`[${n}]`).forEach(D=>{c[`${n}`]=D.getAttribute(`${n}`),V(D.getBoundingClientRect())?s([c]):r([c])})}function _n(){const D=[];let T=null,k=0;M.value?.querySelectorAll(`[${n}]`).forEach((A,Q)=>{const F=A.getAttribute(`${n}`);D.push(F),V(A.getBoundingClientRect())?(T===null&&(T=Q),T=Math.min(T,Q),k=Math.max(k,Q)):(c[`${n}`]=F,i.has(F)&&r([c]))});for(let A=T;A<k+1;A++)c[`${n}`]=D[A],s([c]),i.add(D[A])}function Sn(D){return!D?.value||(M.value=D.value,!M?.value)?!1:(E.observe(M.value),I(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Sn,dragStart:w,dragMove:_,dragEnd:S,onScroll:L,isSingleClick:O,cancelSelectAllBySingleClick:fe,selectFn:d,selectRange:h,isPressing:p,containerEl:M,observer:E}}function pt(n){const t=ue(n),{observer:o,selectRange:l}=t,{onScroll:s,dragStart:r,dragMove:a,dragEnd:c,cancelSelectAllBySingleClick:d}=t,i=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:i.value})}});function p(y){y.button===0&&r(y.x,y.y)}function m(y){a(y.x,y.y)}function f(y){y.composedPath().some(z=>z?.getAttribute?.(n.attribute))||d(),c()}function E(y){try{if(!t.init(y))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",p),window.addEventListener("mousemove",m),window.addEventListener("mouseup",f)}catch(h){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",h)}}function u(){o.disconnect(),t.containerEl.value?.removeEventListener("scroll",s),t.containerEl.value?.removeEventListener("mousedown",p),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",f)}return{init:E,unMount:u}}function yt(n,t,o=600){const l=ue({...n,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:r,dragStart:a,dragMove:c,dragEnd:d}=l;let i;function g(){clearTimeout(i)}function M(u){g(),u.composedPath().some(h=>!!h?.getAttribute?.(n.attribute))&&(i=setTimeout(()=>{const{clientX:h,clientY:z}=u.targetTouches[0];a(h,z),t?.(),c(h,z,()=>u.preventDefault()),u.preventDefault()},o))}function p(u){g();const{clientX:y,clientY:h}=u.targetTouches[0];c(y,h,()=>u.preventDefault())}function m(){g(),d()}function f(u){try{if(!l.init(u))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",r),l.containerEl.value?.addEventListener("touchstart",M),l.containerEl.value?.addEventListener("touchmove",p),window.addEventListener("touchcancel",m),window.addEventListener("touchend",m)}catch(y){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",y)}}function E(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",r),l.containerEl.value?.removeEventListener("touchstart",M),l.containerEl.value?.removeEventListener("touchmove",p),window.removeEventListener("touchcancel",m),window.removeEventListener("touchEnd",m)}return{init:f,unMount:E}}const Oe=Symbol(),ht={key:0,class:"lzc-modal"},Nt=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(Oe,()=>t("update:visiable",!1)),(s,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[n.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",ht,[e.createElementVNode("div",{onMousedown:r[0]||(r[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}))}}),bn="",b=(n,t)=>{const o=n.__vccOpts||n;for(const[l,s]of t)o[l]=s;return o},Dt=b(Nt,[["__scopeId","data-v-4ff684af"]]);function Tt(n){function t(o,l){const s=document.createElement("div"),r={setup(){return()=>e.h(Dt,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...n},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(r),s),{close:()=>s?.remove()}}return{create:t}}function de({component:n,componentProps:t,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,r=`${o}ms`;return J(`@keyframes lzcDelayLoad {
|
|
7
7
|
to {
|
|
8
8
|
opacity: 1;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
.${s} {
|
|
12
12
|
opacity: 0;
|
|
13
|
-
animation: lzcDelayLoad 0s ${
|
|
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(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OtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/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,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlK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0MzcxMTI3LDcuMDAwNTE0MTQgNy45MTIwNzQwNCw2Ljg0NzkxMzI0IDguMjk2MTcyNDEsNi44NDc5MTMyNCBDOC42ODAyNzA3OSw2Ljg0NzkxMzI0IDkuMDQ4NjMzNTYsNy4wMDA1MTQxNCA5LjMyMDIwNjksNy4yNzIxMzc5MyBMMTQuNTg2OTY1NSwxMi41Mzg4OTY2IEMxNC44NTg1ODkzLDEyLjgxMDQ2OTkgMTUuMDExMTkwMiwxMy4xNzg4MzI3IDE1LjAxMTE5MDIsMTMuNTYyOTMxIEMxNS4wMTExOTAyLDEzLjk0NzAyOTQgMTQuODU4NTg5MywxNC4zMTUzOTIyIDE0LjU4Njk2NTUsMTQuNTg2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+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}))}}),Sn="",xn="",Lt=k(At,[["__scopeId","data-v-456fc2d8"]]);class Se{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 Se(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"],St=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="",xt=k(St,[["__scopeId","data-v-533e986b"]]),xe={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(xt),{...xe,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||xe.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 S(){Y(),setTimeout(()=>{E.value.clientHeight=o.value?.clientHeight??0,P()},150)}function x(){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),S()}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:x,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 {
|
|
13
|
+
animation: lzcDelayLoad 0s ${r} forwards;
|
|
14
|
+
}`),{LoadingComp:e.defineComponent({setup(){const c=tt();return e.onMounted(()=>{c.value.classList.add(s)}),()=>e.h(n,t)}})}}function wt({component:n,componentProps:t,delay:o=300}){const{LoadingComp:l}=de({component:n,componentProps:t,delay:o}),s=e.ref(!1);function r(){s.value=!0}function a(){s.value=!1}return{LoadingComp:l,loading:s,load:r,unload:a}}const Et=[(n=>(e.pushScopeId("data-v-f86c8393"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],It=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)),Et,16))}}),Un="",_e=b(It,[["__scopeId","data-v-f86c8393"]]),zt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",jt={class:"loading-wrap"},At=["src"],Lt=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",jt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(zt)},null,8,At)]))}}),Pn="",Ct=b(Lt,[["__scopeId","data-v-2affe82a"]]);async function vt(n){return new Promise(t=>setTimeout(()=>t(),n))}const Ot="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGV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gICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",St=["onClick"],xt=["onClick"],kt=["src"],bt=["src"],Bt=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 i={};return o.captureEventP&&(i.pointerEvents="none"),i}),r=e.computed(()=>{let i={padding:"12px"};return o.icon&&(i.padding="20px"),o.width&&(i.width=o.width),o.maxWidth&&(i.maxWidth=o.maxWidth),o.overlayContentStyle&&(i={...i,...o.overlayContentStyle}),i}),a=e.computed(()=>{let i={};return o.showClose&&!o.icon&&(i.paddingRight="16px"),i});function c(){o.closeOnClickOverlay&&t("close")}function d(){o.closeOnClick&&t("close")}return(i,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(c,["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(r))},[n.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(M=>t("close"),["stop"])),src:e.unref(Ot),class:e.normalizeClass(`${l}-close`)},null,10,kt)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(_t),class:e.normalizeClass(`${l}-icon`)},null,10,bt)):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,xt)],10,St),[[e.vShow,n.visible]])],4)]),_:1}))}}),Yn="",$n="",Qt=b(Bt,[["__scopeId","data-v-456fc2d8"]]);class Se{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=Qt}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 vt(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 Ut(n,t){const o=!!t?.debug,l=t?.printErrorLog!==!1,s=t?.loading!==!1,r=t?.autoClose!==!1,a=t?.delay!=null?t.delay:300,c={...t,showIcon:t?.showIcon!==!1,captureEventP:t?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,r,a,c);const d=e.ref(!1);let i=null;const g=new Se(c);async function M(...m){if(o&&console.log(`useDelayAsync - handler - processing: ${d.value}`),!d.value){d.value=!0,i=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(...m);o&&console.log("useDelayAsync - execute res: ",f),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await p(r),await t?.onSuccess?.(f)}catch(f){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(f),await p(r),await t?.onError?.(f)}}}async function p(m=!0){o&&console.log("useDelayAsync - close - closeLoading: ",m),d.value=!1,i&&clearTimeout(i),i=null,m&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),p()}),{processing:d,handler:M,close:p}}const Pt=["onClick"],Yt=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(),r=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(${r.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),c=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function d(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(i,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(c))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],12,Pt))}}),Rn="",$t=b(Yt,[["__scopeId","data-v-533e986b"]]),xe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Rt{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h($t),{...xe,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||xe.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 Vt=["xlink:href","fill","color"],H=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(r){const{style:a}=r;return typeof a=="object"?a:{}}return(r,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(r.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:n.color,color:n.color},null,8,Vt)],4))}});function Ft(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:r=.9,observeMethod:a="classList"}=n,c=e.ref(!0),d=we(Y,100);let i,g="";const M=e.ref(0),p=e.ref(0),m=e.ref(0),f=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),E=e.ref({clientHeight:0}),u=e.computed(()=>!!p.value),y=e.computed(()=>f.value.scrollHeight>f.value.clientHeight),h=e.computed(()=>l?f.value.clientHeight-U.value:f.value.clientHeight-E.value.clientHeight),z=e.computed(()=>f.value.scrollHeight-f.value.clientHeight),x=e.computed(()=>Math.max(f.value.clientHeight/f.value.scrollHeight,.05)),U=e.computed(()=>x.value>r?0:x.value*f.value.clientHeight),C=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${m.value}px,0)`,height:l?`${U.value}px`:void 0}));function j(L){P(),p.value=L.clientY-o.value.getBoundingClientRect().top||1,g=getComputedStyle(t.value).scrollBehavior,g==="smooth"&&(t.value.style.scrollBehavior="unset")}function v(){t.value.style.scrollBehavior=g,p.value=0,d()}function P(){c.value=!1}function Y(){u.value||(c.value=!0)}function B(L){if(!u.value)return;let O=L.clientY-f.value.top-p.value;O<0?m.value=0:O>=h.value?m.value=h.value:m.value=O,t.value.scrollTo({top:m.value/h.value*z.value})}function R(){u.value||W()}function W(){cancelAnimationFrame(i),i=requestAnimationFrame(V)}function V(){t.value&&(M.value=s.scrollTop?.value??t.value.scrollTop,m.value=M.value/z.value*h.value)}function $(L){let O="addEventListener";L==="add"?O="addEventListener":O="removeEventListener",o.value?.[O]("pointerdown",j,{passive:!0}),window[O]("pointermove",B,{passive:!0}),window[O]("pointerup",v,{passive:!0})}const I=new MutationObserver(L=>{(a=="classList"||L.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 _(){P(),setTimeout(()=>{E.value.clientHeight=o.value?.clientHeight??0,Y()},150)}function S(){if(t.value&&o.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",R,{passive:!0}),$("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),_()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(M,()=>{P(),d()}),{isScrollEnd:c,isDragSlider:u,offsetTop:m,scrollTop:M,scrollable:y,sliderPos:C,init:S,modifySliderEventListener:$}}const Ht=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Wt=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),r=e.computed(()=>o.containerEl),a=Ft({containerEl:r,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:c,isScrollEnd:d,sliderPos:i}=a,g=e.ref(!1),M=o.autoHide?e.computed(()=>g.value||!d.value):e.computed(()=>c.value),{load:p}=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 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","image/svg+xml"],sn=["image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];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-d36ca4da"),n=n(),e.popScopeId(),n),rn=["title"],cn=an(()=>e.createElementVNode("span",{class:"tip"},"\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:"bad-icon",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:"no-support-icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),cn],16,rn))],64))}}),Pn="",mn=k(gn,[["__scopeId","data-v-d36ca4da"]]),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:"icon-wrap"},[e.createVNode(W,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,hn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,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:"icon-wrap"},[e.createVNode(W,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,pn))}}),$n="",Dn=k(Nn,[["__scopeId","data-v-9fad8239"]]);h.DefaultLoading=ve,h.Image=mn,h.Loading=on,h.LoadingToast=Se,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"}})});
|
|
20
|
+
}`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{p(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function m(){g.value=!0}function f(){g.value=!1}return t({uScrollBarReturn:a}),(E,u)=>(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(i))},[e.renderSlot(E.$slots,"default",{},()=>[Ht],!0)],36),[[e.vShow,e.unref(M)]])]),_:3}))}}),Fn="",Zt=b(Wt,[["__scopeId","data-v-efefe52c"]]),Kt=n=>(e.pushScopeId("data-v-18377f18"),n=n(),e.popScopeId(),n),Gt={class:"pull-refresh"},Xt={key:0,class:"pull-arrow-circle"},qt={key:0,class:"box-load"},Jt={class:"left-load"},en={class:"right-load"},tn=Kt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),nn={class:"pull-arrow"},on={key:1},ln=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),r=e.ref(1),a=e.ref(0),c=e.ref(.3),d=e.ref(!1),i=e.ref(0),g=e.ref(0),M=e.ref(0),p=e.ref(0),m=e.ref(0),f=e.ref(),E=e.computed(()=>t.scrollTop),u=e.computed(()=>({transition:`${p.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${r.value})`})),y=e.computed(()=>({borderColor:l,transition:p.value,transform:`rotate(${100+a.value}deg)`,opacity:c.value}));e.watch(m,j=>{j===0&&(s.value=-50,c.value=.3)}),e.watch(g,j=>{if(m.value===2)return;const v=Math.pow(j,o);v===0&&(s.value=-50),v<=50&&v>0&&(s.value=v-45,a.value=Math.pow(v,1.5),v>15?d.value=!0:d.value=!1),v>50&&(s.value=5,c.value=1,m.value)});const h=e.ref(0),z=j=>{h.value=j.touches[0].pageY},x=j=>{const v=j.touches[0].pageY-h.value;h.value=j.touches[0].pageY,!t.refreshOff&&(!t?.refresh||m.value!==2&&E.value===0&&(i.value===0&&(i.value=j.touches[0].pageY),M.value=0,C.value.style.transition=`${M.value}ms`,p.value=0,g.value=j.touches[0].pageY-i.value,C.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,v>0&&j.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||m.value===2)return;i.value=0,M.value=300;const j=Math.pow(g.value,o);C.value.style.transition=`${M.value}ms`,j>50?(m.value=2,g.value=Math.pow(50,1/o),C.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,p.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,g.value=0,C.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,setTimeout(()=>{f.value=void 0},p.value)},600)})):(g.value=0,C.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`)},C=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(C.value=document.querySelector(t.pullRefreshContainer),C.value?.addEventListener("touchstart",z),C.value?.addEventListener("touchmove",x),C.value?.addEventListener("touchend",U))}),(j,v)=>(e.openBlock(),e.createElementBlock("div",Gt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(u))},[f.value?(e.openBlock(),e.createElementBlock("div",on,e.toDisplayString(f.value),1)):(e.openBlock(),e.createElementBlock("div",Xt,[m.value==2?(e.openBlock(),e.createElementBlock("div",qt,[e.createElementVNode("div",Jt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",en,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),tn])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(y))},[e.createElementVNode("div",nn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:d.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Hn="",ke=b(ln,[["__scopeId","data-v-18377f18"]]),sn={inheritAttrs:!1},an=e.defineComponent({...sn,__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=ve(e.toRef(l,"data"),{itemHeight:p=>l.itemHeight(l.data[p]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:r,containerProps:a,wrapperProps:c,innerProps:d,getItemHeightData:i,scrollTop:g}=s;t({vListReturn:s});const M="virtualListWrapper"+new Date().getTime();return(p,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(ke,{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:m[0]||(m[0]=(...f)=>e.unref(a).onScroll&&e.unref(a).onScroll(...f)),ref:e.unref(a).ref,class:"virtualList"},p.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(c))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),({index:f,data:E})=>(e.openBlock(),e.createElementBlock("div",{key:f,style:e.normalizeStyle({height:`${e.unref(i)(f).height}px`,display:"flex"})},[e.renderSlot(p.$slots,"default",{data:E,index:f},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Wn="",rn=b(an,[["__scopeId","data-v-e0fb787f"]]),Me=n=>(e.pushScopeId("data-v-c986249d"),n=n(),e.popScopeId(),n),cn={style:{position:"absolute"}},un=Me(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),dn=["width","height"],Mn=[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))],fn=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",cn,[un,(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"},Mn,8,dn))]))}}),Gn="",gn=b(fn,[["__scopeId","data-v-c986249d"]]),mn=["image/avif","image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/tiff","image/webp","image/wbmp","image/svg+xml"],pn=["image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];function be(n,t){const o=e.ref(n?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),r=e.computed(()=>s.value),a=e.computed(()=>{const d=t?.value;return!d||d.startsWith("video/")?!0:d.startsWith("image/")?l.value?mn.includes(d):pn.includes(d):!1});n&&e.watch(n,d=>{o.value=d,s.value=!1});function c(){s.value=!0}return{imgSrc:o,isError:s,hasError:r,isSupport:a,handleError:c}}function Be(){return{vImageCancel:{beforeUnmount(t){!t||(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const yn=n=>(e.pushScopeId("data-v-179317ae"),n=n(),e.popScopeId(),n),hn=["title"],Nn=yn(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),Dn=["src"],Tn=["src"],wn=["title"],En={inheritAttrs:!1},In=e.defineComponent({...En,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean}},setup(n){const t=n,o=e.ref(!1),l=e.ref(!1),s=e.ref(!1),{src:r,mime:a}=e.toRefs(t),{imgSrc:c,isSupport:d,hasError:i,handleError:g}=be(r,a),{vImageCancel:M}=Be(),{LoadingComp:p}=de({component:_e,delay:300}),m=We(()=>t.autoRemoveThumbnail?t.thumbnail&&!s.value:!0);function f(){l.value=!0}function E(){s.value=!0}function u(h){h&&f(),o.value=!0}function y(h){h?g():f(),o.value=!0}return(h,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(p),{key:0})),e.unref(d)?e.unref(i)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},h.$attrs,{title:e.unref(c),class:"tip-wrap"}),[e.createVNode(H,{class:"bad-image",name:"\u56FE\u7247\u635F\u574F"})],16,wn)):e.renderSlot(h.$slots,"default",{key:2,src:e.unref(c),onLoad:u,onError:y},()=>[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.unref(m)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},h.$attrs,{class:"preview-blur",onLoad:z[0]||(z[0]=x=>u()),onError:z[1]||(z[1]=x=>y()),src:n.thumbnail}),null,16,Dn)),[[e.unref(M)]]):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{onOnAfterEnter:z[4]||(z[4]=x=>E())},{default:e.withCtx(()=>[n.isShowSrc||l.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},h.$attrs,{onLoad:z[2]||(z[2]=x=>u(!0)),onError:z[3]||(z[3]=x=>y(!0)),src:e.unref(c)}),null,16,Tn)),[[e.unref(M)],[e.vShow,l.value]]):e.createCommentVNode("",!0)]),_:1})],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},h.$attrs,{title:e.unref(c),class:"tip-wrap"}),[e.createVNode(H,{class:"no-support-icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),Nn],16,hn))],64))}}),Xn="",zn=b(In,[["__scopeId","data-v-179317ae"]]),jn=["title"],An=["src"],Ln=["title"],Cn=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:r,hasError:a,isSupport:c,handleError:d}=be(l,s),{vImageCancel:i}=Be();return(g,M)=>e.unref(c)?e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(r),class:"icon-wrap"},[e.createVNode(H,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,Ln)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:M[0]||(M[0]=p=>o.value=!0),onError:M[1]||(M[1]=(...p)=>e.unref(d)&&e.unref(d)(...p)),src:e.unref(r)},null,40,An)),[[e.unref(i)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(r),class:"icon-wrap"},[e.createVNode(H,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,jn))}}),qn="",vn=b(Cn,[["__scopeId","data-v-9fad8239"]]);N.DefaultLoading=_e,N.Image=zn,N.Loading=gn,N.LoadingToast=Se,N.PageLoading=Ct,N.PullRefresh=ke,N.ScrollBar=Zt,N.SvgIcon=H,N.Thumbnail=vn,N.ToastCreator=Rt,N.VirtualList=rn,N.allSelectedKey=oe,N.closeDialogKey=Oe,N.dialogController=Tt,N.diff=ft,N.isAllSelectedKey=re,N.isSelectedKey=ne,N.selectAllKey=se,N.selectKey=le,N.selectedCountKey=ie,N.toggleAllKey=ee,N.toggleKey=te,N.unselectAllKey=K,N.unselectKey=ae,N.useDelayAsync=Ut,N.useDelayLoad=wt,N.useDelayLoadComp=de,N.useDragSelect=ue,N.useDragSelectByMobile=yt,N.useDragSelectByPc=pt,N.useSelectable=mt,N.useSelectableInjectors=gt,N.useVirtualList=ve,N.vDebounceClick=Ue,N.vSingleClick=me,Object.defineProperties(N,{__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-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}img[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}.v-enter-active[data-v-179317ae],.v-leave-active[data-v-179317ae]{transition:opacity .6s ease}.v-enter-from[data-v-179317ae],.v-leave-to[data-v-179317ae]{opacity:0}img[data-v-179317ae]{pointer-events:none}.tip[data-v-179317ae]{font-size:14px;color:#aeaeae}.tip-wrap[data-v-179317ae]{display:flex;flex-direction:column;align-items:center;justify-content:center}.no-support-icon[data-v-179317ae]{width:162px;height:134px}.bad-image[data-v-179317ae]{width:92px;height:92px}.preview-blur[data-v-179317ae]{filter:blur(1px)}img[data-v-9fad8239]{pointer-events:none}.icon-wrap[data-v-9fad8239]{display:flex;align-items:center;justify-content:center}.icon[data-v-9fad8239]{width:100%;height:100%}
|
|
@@ -7,7 +7,7 @@ declare const _default: {
|
|
|
7
7
|
mime?: string | undefined;
|
|
8
8
|
thumbnail?: string | undefined;
|
|
9
9
|
isShowSrc?: boolean | undefined;
|
|
10
|
-
|
|
10
|
+
autoRemoveThumbnail?: boolean | undefined;
|
|
11
11
|
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
12
12
|
$attrs: {
|
|
13
13
|
[x: string]: unknown;
|
|
@@ -27,7 +27,7 @@ declare const _default: {
|
|
|
27
27
|
mime?: string | undefined;
|
|
28
28
|
thumbnail?: string | undefined;
|
|
29
29
|
isShowSrc?: boolean | undefined;
|
|
30
|
-
|
|
30
|
+
autoRemoveThumbnail?: boolean | undefined;
|
|
31
31
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & {
|
|
32
32
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
33
33
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -53,7 +53,7 @@ declare const _default: {
|
|
|
53
53
|
mime?: string | undefined;
|
|
54
54
|
thumbnail?: string | undefined;
|
|
55
55
|
isShowSrc?: boolean | undefined;
|
|
56
|
-
|
|
56
|
+
autoRemoveThumbnail?: boolean | undefined;
|
|
57
57
|
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
58
58
|
__isFragment?: undefined;
|
|
59
59
|
__isTeleport?: undefined;
|
|
@@ -63,7 +63,7 @@ declare const _default: {
|
|
|
63
63
|
mime?: string | undefined;
|
|
64
64
|
thumbnail?: string | undefined;
|
|
65
65
|
isShowSrc?: boolean | undefined;
|
|
66
|
-
|
|
66
|
+
autoRemoveThumbnail?: boolean | undefined;
|
|
67
67
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
68
68
|
$slots: {
|
|
69
69
|
default: (_: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lazycatcloud/lzc-toolkit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.120",
|
|
4
4
|
"description": "lazycat ui toolkits",
|
|
5
5
|
"main": "./dist/index.umd.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"access": "public",
|
|
14
14
|
"types": "./dist/types/index.d.ts",
|
|
15
15
|
"scripts": {
|
|
16
|
-
"dev": "vite",
|
|
16
|
+
"dev": "vite --host",
|
|
17
17
|
"build": "vite build && vue-tsc --emitDeclarationOnly && mv dist/src dist/types",
|
|
18
18
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
19
19
|
"typecheck": "vue-tsc --noEmit",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"@vueuse/core": "^9.2.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"npm-run-all": "^4.1.5",
|
|
31
|
-
"npm-mirror-sync": "^1.0.0",
|
|
32
30
|
"@types/node": "^18.11.9",
|
|
33
31
|
"@vitejs/plugin-vue": "^3.1.0",
|
|
32
|
+
"npm-mirror-sync": "^1.0.0",
|
|
33
|
+
"npm-run-all": "^4.1.5",
|
|
34
34
|
"typescript": "^4.8.3",
|
|
35
35
|
"vite": "^3.1.1",
|
|
36
36
|
"vue": "^3.2.39",
|