@lazycatcloud/lzc-toolkit 0.0.69 → 0.0.71
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 +277 -264
- package/dist/index.umd.js +4 -4
- package/dist/types/useDelayLoad/index.d.ts +9 -3
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w.ui={},w.Vue))})(this,function(w,e){"use strict";var he;const Z=typeof window<"u",me=t=>typeof t=="function";Z&&((he=window?.navigator)==null?void 0:he.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Y(t){return typeof t=="function"?t():e.unref(t)}function ge(t,n){function o(...l){t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})}return o}function De(t,n={}){let o,l;return s=>{const a=Y(t),u=Y(n.maxWait);if(o&&clearTimeout(o),a<=0||u!==void 0&&u<=0)return l&&(clearTimeout(l),l=null),s();u&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,s()},u)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,s()},a)}}function Re(t,n=!0,o=!0){let l=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return h=>{const f=Y(t),p=Date.now()-l;if(a(),f<=0)return l=Date.now(),h();p>f&&(o||!s)?(l=Date.now(),h()):n&&(r=setTimeout(()=>{l=Date.now(),s=!0,a(),h()},f)),!o&&!r&&(r=setTimeout(()=>s=!0,f)),s=!1}}function Ie(t){return t}function Me(t,n){let o,l,r;const s=e.ref(!0),a=()=>{s.value=!0,r()};e.watch(t,a,{flush:"sync"});const u=me(n)?n:n.get,h=me(n)?void 0:n.set,f=e.customRef((p,d)=>(l=p,r=d,{get(){return s.value&&(o=u(),s.value=!1),l(),o},set(c){h?.(c)}}));return Object.isExtensible(f)&&(f.trigger=a),f}function ve(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ye(t,n=200,o={}){return ge(De(n,o),t)}function _e(t,n=200,o=!1,l=!0){return ge(Re(n,o,l),t)}function Ee(t,n=!0){e.getCurrentInstance()?e.onMounted(t):n?t():e.nextTick(t)}function Se(t){var n;const o=Y(t);return(n=o?.$el)!=null?n:o}const ke=Z?window:void 0,Pe=Z?window.document:void 0;function Ae(t,n=!1){const o=e.ref(),l=()=>o.value=Boolean(t());return l(),Ee(l,n),o}const J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ee="__vueuse_ssr_handlers__";J[ee]=J[ee]||{},J[ee];function He(){const t=e.getCurrentInstance(),n=Me(()=>null,()=>t.proxy.$el);return e.onUpdated(n.trigger),e.onMounted(n.trigger),n}var we=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ne=(t,n)=>{var o={};for(var l in t)Fe.call(t,l)&&n.indexOf(l)<0&&(o[l]=t[l]);if(t!=null&&we)for(var l of we(t))n.indexOf(l)<0&&Ve.call(t,l)&&(o[l]=t[l]);return o};function ze(t,n,o={}){const l=o,{window:r=ke}=l,s=Ne(l,["window"]);let a;const u=Ae(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},f=e.watch(()=>Se(t),d=>{h(),u.value&&r&&d&&(a=new ResizeObserver(n),a.observe(d,s))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return ve(p),{isSupported:u,stop:p}}function je(t,n={width:0,height:0},o={}){const{box:l="content-box"}=o,r=e.ref(n.width),s=e.ref(n.height);return ze(t,([a])=>{const u=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(r.value=u.reduce((h,{inlineSize:f})=>h+f,0),s.value=u.reduce((h,{blockSize:f})=>h+f,0)):(r.value=a.contentRect.width,s.value=a.contentRect.height)},o),e.watch(()=>Se(t),a=>{r.value=a?n.width:0,s.value=a?n.height:0}),{width:r,height:s}}var be;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(be||(be={}));let Ke=0;function We(t,n={}){const o=e.ref(!1),{document:l=Pe,immediate:r=!0,manual:s=!1,id:a=`vueuse_styletag_${++Ke}`}=n,u=e.ref(t);let h=()=>{};const f=()=>{if(!l)return;const d=l.getElementById(a)||l.createElement("style");d.type="text/css",d.id=a,n.media&&(d.media=n.media),l.head.appendChild(d),!o.value&&(h=e.watch(u,c=>{d.innerText=c},{immediate:!0}),o.value=!0)},p=()=>{!l||!o.value||(h(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return r&&!s&&Ee(f),s||ve(p),{id:a,css:u,unload:p,load:f,isLoaded:e.readonly(o)}}var Ue=Object.defineProperty,Ce=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Te=(t,n,o)=>n in t?Ue(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,Ye=(t,n)=>{for(var o in n||(n={}))qe.call(n,o)&&Te(t,o,n[o]);if(Ce)for(var o of Ce(n))Qe.call(n,o)&&Te(t,o,n[o]);return t};Ye({linear:Ie},{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(t,n){const{scrollEndHook:o,itemHeight:l,overscan:r=5}=n,s=e.ref(null),a=je(s),u=e.ref(!0),h=ye(D,100);let f;const p=e.shallowRef(t),d=e.ref(0),c=e.ref({start:0,end:10});let i=0;const g=e.ref([]),b=e.computed(()=>{let{sum:v,height:S}={sum:0,height:0};return p.value.map((I,R)=>(typeof l=="number"?S=l:S=l(R),v+=S,{height:S,sum:v}))}),_=e.computed(()=>N(c.value.start)),E=e.computed(()=>typeof l=="number"?b.value.length*l:b.value[b.value.length-1]?.sum||0),T=e.computed(()=>{let v=g.value.length-r,S=Math.max(v-i,0);return g.value.slice(S,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(f)),e.watch([a.width,a.height,p],([v,S])=>{(v||S)&&x()},{deep:!0}),e.watch(d,()=>{M(),h()});function M(){u.value=!1}function D(){u.value=!0,o?.()}function x(){cancelAnimationFrame(f),f=requestAnimationFrame(O)}function O(){if(s.value){d.value=s.value.scrollTop,i=H();let v=P(d.value),S=v+i+r;v=v-r,v=v<0?0:v,S=S>p.value.length?p.value.length:S,c.value={start:v,end:S},g.value=p.value.slice(v,S).map((I,R)=>({data:I,index:R+v}))}}function P(v){let S=0,I=b.value.length-1,R=-1;for(;S<=I;){const B=Math.floor((S+I)/2);b.value[B].sum>=v?(R=B,I=B-1):S=B+1}return Math.max(0,R)}function H(){let v=0,S=0,I=k();for(let R=I;R<b.value.length&&(v++,S+=b.value[R].height,!(S>=a.height.value));R++);return v}function N(v){if(typeof l=="number")return v*l;let S=b.value[v];return S?S.sum-S.height:0}function z(v){return b.value[v]||{sum:0,height:0}}function k(){let v=c.value.start;return v>=r&&(v+=r),v}function K(v){if(s.value){const S=z(v);s.value.scrollTop=S.sum-S.height,O()}}const Q=e.computed(()=>({style:{width:"100%",height:`${E.value}px`,pointerEvents:u.value?void 0:"none"}})),j=e.computed(()=>({style:{transform:`translate3d(0, ${_.value}px, 0)`,"will-change":"transform"}})),W={overflowY:"auto"};return{list:g,visiableList:T,getItemHeightData:z,getoffsetTopIndex:P,totalHeight:E,clientHeight:a.height,scrollTo:K,scrollTop:d,isScrollEnd:u,containerProps:{ref:s,onScroll:()=>{x()},style:W},wrapperProps:Q,innerProps:j}}const te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),re=Symbol(),ae=Symbol(),se=Symbol(),ie=Symbol(),ce=Symbol();function Ge(){const{voidFn:t,boolFn:n,boolRef:o,arrayRef:l}={voidFn:i=>{},boolFn:i=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},r=e.inject(le,l),s=e.inject(oe,n),a=e.inject(ie,o),u=e.inject(ne,t),h=e.inject(te,t),f=e.inject(re,t),p=e.inject(ae,t),d=e.inject(se,t),c=e.inject(ce,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:u,toggleAll:h,select:f,selectAll:p,unselect:d,unselectAll:c}}function Xe(t,n){const o=e.ref({}),l=e.computed(()=>t.value.filter(c=>o.value[c[n]])),r=e.computed(()=>l.value.length!=0&&Object.keys(o.value).length==t.value.length);function s(){t.value.forEach(c=>{o.value[c[n]]=!0})}function a(){o.value={}}function u(c){c.forEach(i=>{o.value[i[n]]||(o.value[i[n]]=!0)})}function h(c){c.forEach(i=>{o.value[i[n]]&&delete o.value[i[n]]})}function f(c){return!!o.value[c[n]]}function p(c){c.forEach(i=>{f(i)?delete o.value[i[n]]:o.value[i[n]]=!0})}function d(){r.value?a():s()}return e.provide(te,d),e.provide(ne,p),e.provide(oe,f),e.provide(le,l),e.provide(re,u),e.provide(ae,s),e.provide(se,h),e.provide(ie,r),e.provide(ce,a),{selected:l,select:u,selectAll:s,unselect:h,unselectAll:a,toggle:p,toggleAll:d,isSelected:f,isAllSelected:r}}function ue(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function de({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:r=ue("\u9009\u62E9"),unselect:s=ue("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ue("\u53D6\u6D88\u5168\u9009")}=l();let u={};const h=e.computed(()=>_e(n==="colum"?F:G,50)),f=new Set,p=e.ref(!0),d=e.ref(),c=e.ref(!1),i=e.ref({x:0,y:0}),g=e.ref({x:0,y:0,scrollTop:0}),b=new ResizeObserver(m=>_.value=m[0].target.getBoundingClientRect()),_=e.ref({}),E=e.ref({top:0,height:0,sync(m=!1){E.value.top=d.value?.scrollTop||0,m&&(E.value.height=d.value?.scrollHeight||0)}}),T=e.computed(()=>c.value?{left:Math.min(i.value.x,g.value.x)-_.value.left,top:Math.min(i.value.y,g.value.y)-_.value.top,width:Math.abs(i.value.x-g.value.x),height:Math.abs(i.value.y-g.value.y)}:{left:0,top:0,width:0,height:0}),{margin:M=50,startSpeed:D=30,maxSpeed:x=30}=o;let O;const P=M,H=D,N=x,z=m=>m**1;let k=0;function K(m){if(cancelAnimationFrame(O),k=Q(m),k=Math.max(Math.min(k,N),-N),k!==0){const y=d.value;if(!y||!c.value)return;const $=E.value.height-_.value.height;let C=E.value.top+Number(k);C=Math.min(Math.max(0,C),$),y.scrollTop=C,W(),O=requestAnimationFrame(()=>K(m))}}function Q(m){if(d.value){const $=_.value,C=$.bottom-m;if(C<P)return H*z(1-C/P);const A=m-$.top;if(A<P)return-H*z(1-A/P)}return 0}function j(m){const y={...T.value,right:0,bottom:0};return y.left+=_.value.left,y.top+=_.value.top-E.value.top,y.right=y.width+y.left,y.bottom=y.height+y.top,y.left<m.right&&y.right>m.left&&y.top<m.bottom&&y.bottom>m.top}function W(){E.value.sync();const{top:m,height:y}=E.value;g.value.y=Math.min(y+_.value.top,g.value.y+m-g.value.scrollTop),g.value.scrollTop=m}function v(m,y,$="dynamic-styles"){let C=document.getElementById($);C||(C=document.createElement("style"),C.id=$,document.head.appendChild(C));const A=C.sheet.cssRules,q=A.length,Pt=`${m} { ${y} }`;for(let pe=0;pe<q;pe++){const $e=A[pe];if($e.selectorText===m&&$e.style.cssText===y)return}C.sheet.insertRule(Pt,q)}function S(m,y){p.value=!0,c.value=!0,E.value.height?E.value.sync():E.value.sync(!0),i.value.x=m,i.value.y=y+E.value.top,g.value.x=i.value.x,g.value.y=i.value.y,d.value?.classList.add("disable-scroll-behavior"),f.clear()}function I(m,y,$){!c.value||(p.value&&n==="colum"&&!L()&&(a(),p.value=!1),$?.(),K(y),g.value.x=Math.max(m,_.value.left),g.value.y=Math.min(y+E.value.top,E.value.height+_.value.top),g.value.scrollTop=E.value.top,h.value())}function R(){c.value=!1,d.value?.classList.remove("disable-scroll-behavior")}function B(){!c.value||(k||W(),h.value())}function L(){if(!c.value)return!1;const{width:m,height:y}=T.value;return!(Math.max(m,y)>5)}function U(){L()&&a()}function F(){L()||d.value?.querySelectorAll(`[${t}]`).forEach(m=>{u[`${t}`]=m.getAttribute(`${t}`),j(m.getBoundingClientRect())?r([u]):s([u])})}function G(){const m=[];let y=null,$=0;d.value?.querySelectorAll(`[${t}]`).forEach((C,A)=>{const q=C.getAttribute(`${t}`);m.push(q),j(C.getBoundingClientRect())?(y===null&&(y=A),y=Math.min(y,A),$=Math.max($,A)):(u[`${t}`]=q,f.has(q)&&s([u]))});for(let C=y;C<$+1;C++)u[`${t}`]=m[C],r([u]),f.add(m[C])}function X(m){return!m?.value||(d.value=m.value,!d?.value)?!1:(b.observe(d.value),v(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:X,dragStart:S,dragMove:I,dragEnd:R,onScroll:B,isSingleClick:L,cancelSelectAllBySingleClick:U,selectFn:h,selectRange:T,isPressing:c,containerEl:d,observer:b}}function Ze(t){const n=de(t),{observer:o,selectRange:l}=n,{onScroll:r,dragStart:s,dragMove:a,dragEnd:u,cancelSelectAllBySingleClick:h}=n,f=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),p=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"absolute z-50 bg-blue-200 opacity-50",style:f.value})}});function d(_){_.button===0&&s(_.x,_.y)}function c(_){a(_.x,_.y)}function i(_){_.composedPath().some(T=>T?.getAttribute?.(t.attribute))||h(),u()}function g(_){try{if(!n.init(_))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(p),n.containerEl.value),n.containerEl.value?.addEventListener("scroll",r),n.containerEl.value?.addEventListener("mousedown",d),window.addEventListener("mousemove",c),window.addEventListener("mouseup",i)}catch(E){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",E)}}function b(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",r),n.containerEl.value?.removeEventListener("mousedown",d),window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",i)}return{init:g,unMount:b}}function Je(t,n,o=600){const l=de({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=l,{onScroll:s,dragStart:a,dragMove:u,dragEnd:h}=l;let f;function p(){clearTimeout(f)}function d(_){p(),_.composedPath().some(T=>!!T?.getAttribute?.(t.attribute))&&(f=setTimeout(()=>{const{clientX:T,clientY:M}=_.targetTouches[0];a(T,M),n?.(),u(T,M,()=>_.preventDefault()),_.preventDefault()},o))}function c(_){p();const{clientX:E,clientY:T}=_.targetTouches[0];u(E,T,()=>_.preventDefault())}function i(){p(),h()}function g(_){try{if(!l.init(_))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",s),l.containerEl.value?.addEventListener("touchstart",d),l.containerEl.value?.addEventListener("touchmove",c),window.addEventListener("touchcancel",i),window.addEventListener("touchend",i)}catch(E){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",E)}}function b(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",d),l.containerEl.value?.removeEventListener("touchmove",c),window.removeEventListener("touchcancel",i),window.removeEventListener("touchEnd",i)}return{init:g,unMount:b}}const Be=Symbol(),et=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Be,()=>n("update:visiable",!1)),(r,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l,class:"lzc-modal"},[e.createElementVNode("div",{onClick:s[0]||(s[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],2)])):e.createCommentVNode("",!0)]),_:3}))}}),Ht="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},tt=V(et,[["__scopeId","data-v-e171c24d"]]);function nt(t){function n(o,l){const r=document.createElement("div"),s={setup(){return()=>e.h(tt,{visiable:!0,"onUpdate:visiable":()=>{r?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(r),e.render(e.h(s),r),{close:()=>r?.remove()}}return{create:n}}function ot({component:t,componentProps:n,delay:o=300}){const l=`${o}ms`,r=e.ref(!1),{load:s}=We(`@keyframes delayLoad {
|
|
1
|
+
(function(E,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(E=typeof globalThis<"u"?globalThis:E||self,e(E.ui={},E.Vue))})(this,function(E,e){"use strict";var he;const Z=typeof window<"u",me=t=>typeof t=="function";Z&&((he=window?.navigator)==null?void 0:he.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Y(t){return typeof t=="function"?t():e.unref(t)}function ge(t,n){function o(...l){t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})}return o}function Re(t,n={}){let o,l;return s=>{const a=Y(t),d=Y(n.maxWait);if(o&&clearTimeout(o),a<=0||d!==void 0&&d<=0)return l&&(clearTimeout(l),l=null),s();d&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,s()},d)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,s()},a)}}function Ie(t,n=!0,o=!0){let l=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return h=>{const p=Y(t),f=Date.now()-l;if(a(),p<=0)return l=Date.now(),h();f>p&&(o||!s)?(l=Date.now(),h()):n&&(r=setTimeout(()=>{l=Date.now(),s=!0,a(),h()},p)),!o&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1}}function Me(t){return t}function Pe(t,n){let o,l,r;const s=e.ref(!0),a=()=>{s.value=!0,r()};e.watch(t,a,{flush:"sync"});const d=me(n)?n:n.get,h=me(n)?void 0:n.set,p=e.customRef((f,u)=>(l=f,r=u,{get(){return s.value&&(o=d(),s.value=!1),l(),o},set(c){h?.(c)}}));return Object.isExtensible(p)&&(p.trigger=a),p}function ve(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ye(t,n=200,o={}){return ge(Re(n,o),t)}function _e(t,n=200,o=!1,l=!0){return ge(Ie(n,o,l),t)}function Ee(t,n=!0){e.getCurrentInstance()?e.onMounted(t):n?t():e.nextTick(t)}function Se(t){var n;const o=Y(t);return(n=o?.$el)!=null?n:o}const ke=Z?window:void 0,Ae=Z?window.document:void 0;function He(t,n=!1){const o=e.ref(),l=()=>o.value=Boolean(t());return l(),Ee(l,n),o}const J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ee="__vueuse_ssr_handlers__";J[ee]=J[ee]||{},J[ee];function Fe(){const t=e.getCurrentInstance(),n=Pe(()=>null,()=>t.proxy.$el);return e.onUpdated(n.trigger),e.onMounted(n.trigger),n}var we=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,ze=(t,n)=>{var o={};for(var l in t)Ve.call(t,l)&&n.indexOf(l)<0&&(o[l]=t[l]);if(t!=null&&we)for(var l of we(t))n.indexOf(l)<0&&Ne.call(t,l)&&(o[l]=t[l]);return o};function je(t,n,o={}){const l=o,{window:r=ke}=l,s=ze(l,["window"]);let a;const d=He(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},p=e.watch(()=>Se(t),u=>{h(),d.value&&r&&u&&(a=new ResizeObserver(n),a.observe(u,s))},{immediate:!0,flush:"post"}),f=()=>{h(),p()};return ve(f),{isSupported:d,stop:f}}function Ke(t,n={width:0,height:0},o={}){const{box:l="content-box"}=o,r=e.ref(n.width),s=e.ref(n.height);return je(t,([a])=>{const d=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;d?(r.value=d.reduce((h,{inlineSize:p})=>h+p,0),s.value=d.reduce((h,{blockSize:p})=>h+p,0)):(r.value=a.contentRect.width,s.value=a.contentRect.height)},o),e.watch(()=>Se(t),a=>{r.value=a?n.width:0,s.value=a?n.height:0}),{width:r,height:s}}var be;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(be||(be={}));let We=0;function Ue(t,n={}){const o=e.ref(!1),{document:l=Ae,immediate:r=!0,manual:s=!1,id:a=`vueuse_styletag_${++We}`}=n,d=e.ref(t);let h=()=>{};const p=()=>{if(!l)return;const u=l.getElementById(a)||l.createElement("style");u.type="text/css",u.id=a,n.media&&(u.media=n.media),l.head.appendChild(u),!o.value&&(h=e.watch(d,c=>{u.innerText=c},{immediate:!0}),o.value=!0)},f=()=>{!l||!o.value||(h(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return r&&!s&&Ee(p),s||ve(f),{id:a,css:d,unload:f,load:p,isLoaded:e.readonly(o)}}var qe=Object.defineProperty,Ce=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Te=(t,n,o)=>n in t?qe(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,Ge=(t,n)=>{for(var o in n||(n={}))Qe.call(n,o)&&Te(t,o,n[o]);if(Ce)for(var o of Ce(n))Ye.call(n,o)&&Te(t,o,n[o]);return t};Ge({linear:Me},{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(t,n){const{scrollEndHook:o,itemHeight:l,overscan:r=5}=n,s=e.ref(null),a=Ke(s),d=e.ref(!0),h=ye($,100);let p;const f=e.shallowRef(t),u=e.ref(0),c=e.ref({start:0,end:10});let i=0;const g=e.ref([]),b=e.computed(()=>{let{sum:v,height:w}={sum:0,height:0};return f.value.map((I,R)=>(typeof l=="number"?w=l:w=l(R),v+=w,{height:w,sum:v}))}),_=e.computed(()=>N(c.value.start)),S=e.computed(()=>typeof l=="number"?b.value.length*l:b.value[b.value.length-1]?.sum||0),T=e.computed(()=>{let v=g.value.length-r,w=Math.max(v-i,0);return g.value.slice(w,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(p)),e.watch([a.width,a.height,f],([v,w])=>{(v||w)&&x()},{deep:!0}),e.watch(u,()=>{M(),h()});function M(){d.value=!1}function $(){d.value=!0,o?.()}function x(){cancelAnimationFrame(p),p=requestAnimationFrame(D)}function D(){if(s.value){u.value=s.value.scrollTop,i=H();let v=k(u.value),w=v+i+r;v=v-r,v=v<0?0:v,w=w>f.value.length?f.value.length:w,c.value={start:v,end:w},g.value=f.value.slice(v,w).map((I,R)=>({data:I,index:R+v}))}}function k(v){let w=0,I=b.value.length-1,R=-1;for(;w<=I;){const B=Math.floor((w+I)/2);b.value[B].sum>=v?(R=B,I=B-1):w=B+1}return Math.max(0,R)}function H(){let v=0,w=0,I=P();for(let R=I;R<b.value.length&&(v++,w+=b.value[R].height,!(w>=a.height.value));R++);return v}function N(v){if(typeof l=="number")return v*l;let w=b.value[v];return w?w.sum-w.height:0}function z(v){return b.value[v]||{sum:0,height:0}}function P(){let v=c.value.start;return v>=r&&(v+=r),v}function K(v){if(s.value){const w=z(v);s.value.scrollTop=w.sum-w.height,D()}}const Q=e.computed(()=>({style:{width:"100%",height:`${S.value}px`,pointerEvents:d.value?void 0:"none"}})),j=e.computed(()=>({style:{transform:`translate3d(0, ${_.value}px, 0)`,"will-change":"transform"}})),W={overflowY:"auto"};return{list:g,visiableList:T,getItemHeightData:z,getoffsetTopIndex:k,totalHeight:S,clientHeight:a.height,scrollTo:K,scrollTop:u,isScrollEnd:d,containerProps:{ref:s,onScroll:()=>{x()},style:W},wrapperProps:Q,innerProps:j}}const te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),re=Symbol(),ae=Symbol(),se=Symbol(),ie=Symbol(),ce=Symbol();function Xe(){const{voidFn:t,boolFn:n,boolRef:o,arrayRef:l}={voidFn:i=>{},boolFn:i=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},r=e.inject(le,l),s=e.inject(oe,n),a=e.inject(ie,o),d=e.inject(ne,t),h=e.inject(te,t),p=e.inject(re,t),f=e.inject(ae,t),u=e.inject(se,t),c=e.inject(ce,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:d,toggleAll:h,select:p,selectAll:f,unselect:u,unselectAll:c}}function Ze(t,n){const o=e.ref({}),l=e.computed(()=>t.value.filter(c=>o.value[c[n]])),r=e.computed(()=>l.value.length!=0&&Object.keys(o.value).length==t.value.length);function s(){t.value.forEach(c=>{o.value[c[n]]=!0})}function a(){o.value={}}function d(c){c.forEach(i=>{o.value[i[n]]||(o.value[i[n]]=!0)})}function h(c){c.forEach(i=>{o.value[i[n]]&&delete o.value[i[n]]})}function p(c){return!!o.value[c[n]]}function f(c){c.forEach(i=>{p(i)?delete o.value[i[n]]:o.value[i[n]]=!0})}function u(){r.value?a():s()}return e.provide(te,u),e.provide(ne,f),e.provide(oe,p),e.provide(le,l),e.provide(re,d),e.provide(ae,s),e.provide(se,h),e.provide(ie,r),e.provide(ce,a),{selected:l,select:d,selectAll:s,unselect:h,unselectAll:a,toggle:f,toggleAll:u,isSelected:p,isAllSelected:r}}function ue(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function de({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:r=ue("\u9009\u62E9"),unselect:s=ue("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ue("\u53D6\u6D88\u5168\u9009")}=l();let d={};const h=e.computed(()=>_e(n==="colum"?F:G,50)),p=new Set,f=e.ref(!0),u=e.ref(),c=e.ref(!1),i=e.ref({x:0,y:0}),g=e.ref({x:0,y:0,scrollTop:0}),b=new ResizeObserver(m=>_.value=m[0].target.getBoundingClientRect()),_=e.ref({}),S=e.ref({top:0,height:0,sync(m=!1){S.value.top=u.value?.scrollTop||0,m&&(S.value.height=u.value?.scrollHeight||0)}}),T=e.computed(()=>c.value?{left:Math.min(i.value.x,g.value.x)-_.value.left,top:Math.min(i.value.y,g.value.y)-_.value.top,width:Math.abs(i.value.x-g.value.x),height:Math.abs(i.value.y-g.value.y)}:{left:0,top:0,width:0,height:0}),{margin:M=50,startSpeed:$=30,maxSpeed:x=30}=o;let D;const k=M,H=$,N=x,z=m=>m**1;let P=0;function K(m){if(cancelAnimationFrame(D),P=Q(m),P=Math.max(Math.min(P,N),-N),P!==0){const y=u.value;if(!y||!c.value)return;const O=S.value.height-_.value.height;let C=S.value.top+Number(P);C=Math.min(Math.max(0,C),O),y.scrollTop=C,W(),D=requestAnimationFrame(()=>K(m))}}function Q(m){if(u.value){const O=_.value,C=O.bottom-m;if(C<k)return H*z(1-C/k);const A=m-O.top;if(A<k)return-H*z(1-A/k)}return 0}function j(m){const y={...T.value,right:0,bottom:0};return y.left+=_.value.left,y.top+=_.value.top-S.value.top,y.right=y.width+y.left,y.bottom=y.height+y.top,y.left<m.right&&y.right>m.left&&y.top<m.bottom&&y.bottom>m.top}function W(){S.value.sync();const{top:m,height:y}=S.value;g.value.y=Math.min(y+_.value.top,g.value.y+m-g.value.scrollTop),g.value.scrollTop=m}function v(m,y,O="dynamic-styles"){let C=document.getElementById(O);C||(C=document.createElement("style"),C.id=O,document.head.appendChild(C));const A=C.sheet.cssRules,q=A.length,At=`${m} { ${y} }`;for(let pe=0;pe<q;pe++){const $e=A[pe];if($e.selectorText===m&&$e.style.cssText===y)return}C.sheet.insertRule(At,q)}function w(m,y){f.value=!0,c.value=!0,S.value.height?S.value.sync():S.value.sync(!0),i.value.x=m,i.value.y=y+S.value.top,g.value.x=i.value.x,g.value.y=i.value.y,u.value?.classList.add("disable-scroll-behavior"),p.clear()}function I(m,y,O){!c.value||(f.value&&n==="colum"&&!L()&&(a(),f.value=!1),O?.(),K(y),g.value.x=Math.max(m,_.value.left),g.value.y=Math.min(y+S.value.top,S.value.height+_.value.top),g.value.scrollTop=S.value.top,h.value())}function R(){c.value=!1,u.value?.classList.remove("disable-scroll-behavior")}function B(){!c.value||(P||W(),h.value())}function L(){if(!c.value)return!1;const{width:m,height:y}=T.value;return!(Math.max(m,y)>5)}function U(){L()&&a()}function F(){L()||u.value?.querySelectorAll(`[${t}]`).forEach(m=>{d[`${t}`]=m.getAttribute(`${t}`),j(m.getBoundingClientRect())?r([d]):s([d])})}function G(){const m=[];let y=null,O=0;u.value?.querySelectorAll(`[${t}]`).forEach((C,A)=>{const q=C.getAttribute(`${t}`);m.push(q),j(C.getBoundingClientRect())?(y===null&&(y=A),y=Math.min(y,A),O=Math.max(O,A)):(d[`${t}`]=q,p.has(q)&&s([d]))});for(let C=y;C<O+1;C++)d[`${t}`]=m[C],r([d]),p.add(m[C])}function X(m){return!m?.value||(u.value=m.value,!u?.value)?!1:(b.observe(u.value),v(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:X,dragStart:w,dragMove:I,dragEnd:R,onScroll:B,isSingleClick:L,cancelSelectAllBySingleClick:U,selectFn:h,selectRange:T,isPressing:c,containerEl:u,observer:b}}function Je(t){const n=de(t),{observer:o,selectRange:l}=n,{onScroll:r,dragStart:s,dragMove:a,dragEnd:d,cancelSelectAllBySingleClick:h}=n,p=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),f=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"absolute z-50 bg-blue-200 opacity-50",style:p.value})}});function u(_){_.button===0&&s(_.x,_.y)}function c(_){a(_.x,_.y)}function i(_){_.composedPath().some(T=>T?.getAttribute?.(t.attribute))||h(),d()}function g(_){try{if(!n.init(_))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(f),n.containerEl.value),n.containerEl.value?.addEventListener("scroll",r),n.containerEl.value?.addEventListener("mousedown",u),window.addEventListener("mousemove",c),window.addEventListener("mouseup",i)}catch(S){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",S)}}function b(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",r),n.containerEl.value?.removeEventListener("mousedown",u),window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",i)}return{init:g,unMount:b}}function et(t,n,o=600){const l=de({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=l,{onScroll:s,dragStart:a,dragMove:d,dragEnd:h}=l;let p;function f(){clearTimeout(p)}function u(_){f(),_.composedPath().some(T=>!!T?.getAttribute?.(t.attribute))&&(p=setTimeout(()=>{const{clientX:T,clientY:M}=_.targetTouches[0];a(T,M),n?.(),d(T,M,()=>_.preventDefault()),_.preventDefault()},o))}function c(_){f();const{clientX:S,clientY:T}=_.targetTouches[0];d(S,T,()=>_.preventDefault())}function i(){f(),h()}function g(_){try{if(!l.init(_))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",s),l.containerEl.value?.addEventListener("touchstart",u),l.containerEl.value?.addEventListener("touchmove",c),window.addEventListener("touchcancel",i),window.addEventListener("touchend",i)}catch(S){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",S)}}function b(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",u),l.containerEl.value?.removeEventListener("touchmove",c),window.removeEventListener("touchcancel",i),window.removeEventListener("touchEnd",i)}return{init:g,unMount:b}}const Be=Symbol(),tt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Be,()=>n("update:visiable",!1)),(r,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l,class:"lzc-modal"},[e.createElementVNode("div",{onClick:s[0]||(s[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],2)])):e.createCommentVNode("",!0)]),_:3}))}}),Ft="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},nt=V(tt,[["__scopeId","data-v-e171c24d"]]);function ot(t){function n(o,l){const r=document.createElement("div"),s={setup(){return()=>e.h(nt,{visiable:!0,"onUpdate:visiable":()=>{r?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(r),e.render(e.h(s),r),{close:()=>r?.remove()}}return{create:n}}function xe({component:t,componentProps:n,delay:o=300}){const l=`${o}ms`,{load:r}=Ue(`@keyframes lzcDelayLoad {
|
|
2
2
|
to {
|
|
3
3
|
opacity: 1;
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
|
-
.delay-
|
|
6
|
+
.lzc-delay-loading {
|
|
7
7
|
opacity: 0;
|
|
8
|
-
animation:
|
|
9
|
-
}`),a=e.defineComponent({setup(){const f=He();return e.onMounted(()=>{s(),f.value.classList.add("delay-load")}),()=>r.value&&e.h(t,n)}});function u(){r.value=!0}function h(){r.value=!1}return{LoadingComp:a,loading:r,load:u,unload:h}}const Ft="",lt={},rt=[(t=>(e.pushScopeId("data-v-76a2728a"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))];function at(t,n){return e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),rt,16)}const st=V(lt,[["render",at],["__scopeId","data-v-76a2728a"]]),it=e.defineComponent({__name:"Toast",props:{message:null,position:null},setup(t){const n=t,o=e.ref(),l=e.ref(),r=e.ref(),s=e.computed(()=>{switch(n.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(${s.value}% - ${r.value}px)`,left:`calc(50% - ${l.value}px)`})),u=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));return e.nextTick(()=>{l.value=o.value.offsetWidth/2,r.value=o.value.offsetHeight/2}),(h,f)=>(e.openBlock(),e.createElementBlock("div",{id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],4))}}),zt="",ct=V(it,[["__scopeId","data-v-15ab4094"]]),xe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500};class ut{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(ct),{...xe,...this.options});e.render(n,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 n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const dt=["xlink:href","fill","color"],ft=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));return(r,s)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle(e.unref(l))},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,dt)],4))}});function pt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:r={},maxHeightRatio:s=.9}=t,a=e.ref(!0),u=ye(N,100);let h,f="";const p=e.ref(0),d=e.ref(0),c=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),g=e.ref({clientHeight:0}),b=e.computed(()=>!!d.value),_=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),E=e.computed(()=>i.value.clientHeight-g.value.clientHeight),T=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),M=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),D=e.computed(()=>M.value>s?0:M.value*i.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:l?`${D.value}px`:void 0}));function O(B){H(),d.value=B.clientY-o.value.getBoundingClientRect().top||1,f=getComputedStyle(n.value).scrollBehavior,f==="smooth"&&(n.value.style.scrollBehavior="unset")}function P(){n.value.style.scrollBehavior=f,d.value=0,u()}function H(){a.value=!1}function N(){b.value||(a.value=!0)}function z(B){if(!b.value)return;let L=B.clientY-i.value.top-d.value;L<0?c.value=0:L>=E.value?c.value=E.value:c.value=L,n.value.scrollTo({top:c.value/E.value*T.value})}function k(){b.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(Q)}function Q(){n.value&&(p.value=r.scrollTop?.value??n.value.scrollTop,c.value=p.value/T.value*E.value)}function j(B){let L="addEventListener";B==="add"?L="addEventListener":L="removeEventListener",o.value?.[L]("pointerdown",O,{passive:!0}),window[L]("pointermove",z,{passive:!0}),window[L]("pointerup",P,{passive:!0})}const W=new MutationObserver(B=>{B.map(U=>U.oldValue).join().includes("height")&&v()});function v(){i.value.top=n.value?.getBoundingClientRect().top??0,i.value.scrollHeight=n.value?.scrollHeight??0,i.value.clientHeight=n.value?.clientHeight??0}function S(){H(),setTimeout(()=>{g.value.clientHeight=o.value?.clientHeight??0,N()},150)}function I(B,L,U="dynamic-styles"){let F=document.getElementById(U);F||(F=document.createElement("style"),F.id=U,document.head.appendChild(F));const G=F.sheet.cssRules,X=G.length,m=`${B} { ${L} }`;for(let y=0;y<X;y++){const $=G[y];if($.selectorText===B&&$.style.cssText===L)return}F.sheet.insertRule(m,X)}function R(){n.value&&o.value?(I(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),I(".hide-scrollbar::-webkit-scrollbar","display: none"),n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",k,{passive:!0}),j("add"),W.observe(n.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{v()},100),S()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(p,()=>{H(),u()}),{isScrollEnd:a,isDragSlider:b,offsetTop:c,scrollTop:p,scrollable:_,sliderPos:x,init:R,modifySliderEventListener:j}}const ht=(t=>(e.pushScopeId("data-v-edec7292"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),mt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},performance:null},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,r=e.ref(null),s=e.computed(()=>o.containerEl),a=pt({containerEl:s,sliderEl:r,autoHeight:l?o.autoHeight:!0,performance:o.performance}),{scrollable:u,isScrollEnd:h,sliderPos:f}=a,p=e.ref(!1),d=o.autoHide?e.computed(()=>p.value||!h.value):e.computed(()=>u.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function c(){p.value=!0}function i(){p.value=!1}return n({uScrollBarReturn:a}),(g,b)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:r,class:"slider-wrapper",onMouseenter:c,onMouseleave:i,style:e.normalizeStyle(e.unref(f))},[e.renderSlot(g.$slots,"default",{},()=>[ht],!0)],36),[[e.vShow,e.unref(d)]])]),_:3}))}}),Kt="",gt=V(mt,[["__scopeId","data-v-edec7292"]]),vt=t=>(e.pushScopeId("data-v-9bfa9cae"),t=t(),e.popScopeId(),t),yt={class:"pull-refresh"},_t={key:0,class:"pull-arrow-circle"},Et={key:0,class:"box-load"},St={class:"left-load"},wt={class:"right-load"},bt=vt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Ct={class:"pull-arrow"},Tt={key:1},Lt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",r=e.ref(-999),s=e.ref(1),a=e.ref(0),u=e.ref(.3),h=e.ref(!1),f=e.ref(0),p=e.ref(0),d=e.ref(0),c=e.ref(0),i=e.ref(0),g=e.ref(),b=e.computed(()=>n.scrollTop),_=e.computed(()=>({transition:`${c.value}ms`,transform:`translate3d(0,${r.value}px, 0) scale(${s.value})`})),E=e.computed(()=>({borderColor:l,transition:c.value,transform:`rotate(${100+a.value}deg)`,opacity:u.value}));e.watch(i,x=>{x===0&&(r.value=-50,u.value=.3)}),e.watch(p,x=>{if(i.value===2)return;const O=Math.pow(x,o);O===0&&(r.value=-50),O<=50&&O>0&&(r.value=O-45,a.value=Math.pow(O,1.5),O>15?h.value=!0:h.value=!1),O>50&&(r.value=5,u.value=1,i.value)});const T=x=>{n.refreshOff||!n?.refresh||i.value!==2&&b.value===0&&(f.value===0&&(f.value=x.touches[0].pageY),d.value=0,D.value.style.transition=`${d.value}ms`,c.value=0,p.value=x.touches[0].pageY-f.value,D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`)},M=()=>{if(n.refreshOff||!n?.refresh||i.value===2)return;f.value=0,d.value=300;const x=Math.pow(p.value,o);D.value.style.transition=`${d.value}ms`,x>50?(i.value=2,p.value=Math.pow(50,1/o),D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`,c.value=300,n?.refresh&&n?.refresh().then(()=>{g.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{g.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{i.value=0,p.value=0,D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`,setTimeout(()=>{g.value=void 0},c.value)},600)})):(p.value=0,D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`)},D=e.ref(null);return e.onMounted(()=>{D.value=document.querySelector(n.pullRefreshContainer),D.value.addEventListener("touchmove",T),D.value.addEventListener("touchend",M)}),(x,O)=>(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(_))},[g.value?(e.openBlock(),e.createElementBlock("div",Tt,e.toDisplayString(g.value),1)):(e.openBlock(),e.createElementBlock("div",_t,[i.value==2?(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("div",St,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",wt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),bt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(E))},[e.createElementVNode("div",Ct,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:h.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Wt="",Oe=V(Lt,[["__scopeId","data-v-9bfa9cae"]]),Bt={inheritAttrs:!1},xt=e.defineComponent({...Bt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,r=Le(e.toRef(l,"data"),{itemHeight:c=>l.itemHeight(l.data[c]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:s,containerProps:a,wrapperProps:u,innerProps:h,getItemHeightData:f,scrollTop:p}=r;n({vListReturn:r});const d="virtualListWrapper"+new Date().getTime();return(c,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(p),pullRefreshContainer:"#"+d},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:d},[e.createElementVNode("div",e.mergeProps({onScrollPassive:i[0]||(i[0]=(...g)=>e.unref(a).onScroll&&e.unref(a).onScroll(...g)),ref:e.unref(a).ref,class:"virtualList"},c.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(h))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),({index:g,data:b})=>(e.openBlock(),e.createElementBlock("div",{key:g,style:e.normalizeStyle({height:`${e.unref(f)(g).height}px`,display:"flex"})},[e.renderSlot(c.$slots,"default",{data:b,index:g},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Ut="",Ot=V(xt,[["__scopeId","data-v-e0fb787f"]]),fe=t=>(e.pushScopeId("data-v-40e00f20"),t=t(),e.popScopeId(),t),$t={style:{position:"absolute"}},Dt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Rt=["width","height"],It=[fe(()=>e.createElementVNode("title",null,"logo",-1)),fe(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],Mt=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"703ef503":o}));const o=`${n.duration}ms`;return(l,r)=>(e.openBlock(),e.createElementBlock("div",$t,[Dt,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},It,8,Rt))]))}}),Yt="",kt=V(Mt,[["__scopeId","data-v-40e00f20"]]);w.DefaultLoading=st,w.Loading=kt,w.PullRefresh=Oe,w.ScrollBar=gt,w.SvgIcon=ft,w.ToastCreator=ut,w.VirtualList=Ot,w.allSelectedKey=le,w.closeDialogKey=Be,w.dialogController=nt,w.isAllSelectedKey=ie,w.isSelectedKey=oe,w.selectAllKey=ae,w.selectKey=re,w.toggleAllKey=te,w.toggleKey=ne,w.unselectAllKey=ce,w.unselectKey=se,w.useDelayLoad=ot,w.useDragSelect=de,w.useDragSelectByMobile=Je,w.useDragSelectByPc=Ze,w.useSelectable=Xe,w.useSelectableInjectors=Ge,w.useVirtualList=Le,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
8
|
+
animation: lzcDelayLoad 0s ${l} forwards;
|
|
9
|
+
}`);return{LoadingComp:e.defineComponent({setup(){const a=Fe();return e.onMounted(()=>{r(),a.value.classList.add("lzc-delay-loading")}),()=>e.h(t,n)}})}}function lt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=xe({component:t,componentProps:n,delay:o}),r=e.ref(!1);function s(){r.value=!0}function a(){r.value=!1}return{LoadingComp:l,loading:r,load:s,unload:a}}const Vt="",rt={},at=[(t=>(e.pushScopeId("data-v-76a2728a"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))];function st(t,n){return e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),at,16)}const it=V(rt,[["render",st],["__scopeId","data-v-76a2728a"]]),ct=e.defineComponent({__name:"Toast",props:{message:null,position:null},setup(t){const n=t,o=e.ref(),l=e.ref(),r=e.ref(),s=e.computed(()=>{switch(n.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(${s.value}% - ${r.value}px)`,left:`calc(50% - ${l.value}px)`})),d=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));return e.nextTick(()=>{l.value=o.value.offsetWidth/2,r.value=o.value.offsetHeight/2}),(h,p)=>(e.openBlock(),e.createElementBlock("div",{id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(d))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],4))}}),jt="",ut=V(ct,[["__scopeId","data-v-15ab4094"]]),De={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500};class dt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(ut),{...De,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||De.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const ft=["xlink:href","fill","color"],pt=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));return(r,s)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle(e.unref(l))},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,ft)],4))}});function ht(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:r={},maxHeightRatio:s=.9}=t,a=e.ref(!0),d=ye(N,100);let h,p="";const f=e.ref(0),u=e.ref(0),c=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),g=e.ref({clientHeight:0}),b=e.computed(()=>!!u.value),_=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),S=e.computed(()=>i.value.clientHeight-g.value.clientHeight),T=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),M=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),$=e.computed(()=>M.value>s?0:M.value*i.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:l?`${$.value}px`:void 0}));function D(B){H(),u.value=B.clientY-o.value.getBoundingClientRect().top||1,p=getComputedStyle(n.value).scrollBehavior,p==="smooth"&&(n.value.style.scrollBehavior="unset")}function k(){n.value.style.scrollBehavior=p,u.value=0,d()}function H(){a.value=!1}function N(){b.value||(a.value=!0)}function z(B){if(!b.value)return;let L=B.clientY-i.value.top-u.value;L<0?c.value=0:L>=S.value?c.value=S.value:c.value=L,n.value.scrollTo({top:c.value/S.value*T.value})}function P(){b.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(Q)}function Q(){n.value&&(f.value=r.scrollTop?.value??n.value.scrollTop,c.value=f.value/T.value*S.value)}function j(B){let L="addEventListener";B==="add"?L="addEventListener":L="removeEventListener",o.value?.[L]("pointerdown",D,{passive:!0}),window[L]("pointermove",z,{passive:!0}),window[L]("pointerup",k,{passive:!0})}const W=new MutationObserver(B=>{B.map(U=>U.oldValue).join().includes("height")&&v()});function v(){i.value.top=n.value?.getBoundingClientRect().top??0,i.value.scrollHeight=n.value?.scrollHeight??0,i.value.clientHeight=n.value?.clientHeight??0}function w(){H(),setTimeout(()=>{g.value.clientHeight=o.value?.clientHeight??0,N()},150)}function I(B,L,U="dynamic-styles"){let F=document.getElementById(U);F||(F=document.createElement("style"),F.id=U,document.head.appendChild(F));const G=F.sheet.cssRules,X=G.length,m=`${B} { ${L} }`;for(let y=0;y<X;y++){const O=G[y];if(O.selectorText===B&&O.style.cssText===L)return}F.sheet.insertRule(m,X)}function R(){n.value&&o.value?(I(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),I(".hide-scrollbar::-webkit-scrollbar","display: none"),n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",P,{passive:!0}),j("add"),W.observe(n.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{v()},100),w()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(f,()=>{H(),d()}),{isScrollEnd:a,isDragSlider:b,offsetTop:c,scrollTop:f,scrollable:_,sliderPos:x,init:R,modifySliderEventListener:j}}const mt=(t=>(e.pushScopeId("data-v-edec7292"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),gt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},performance:null},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,r=e.ref(null),s=e.computed(()=>o.containerEl),a=ht({containerEl:s,sliderEl:r,autoHeight:l?o.autoHeight:!0,performance:o.performance}),{scrollable:d,isScrollEnd:h,sliderPos:p}=a,f=e.ref(!1),u=o.autoHide?e.computed(()=>f.value||!h.value):e.computed(()=>d.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function c(){f.value=!0}function i(){f.value=!1}return n({uScrollBarReturn:a}),(g,b)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:r,class:"slider-wrapper",onMouseenter:c,onMouseleave:i,style:e.normalizeStyle(e.unref(p))},[e.renderSlot(g.$slots,"default",{},()=>[mt],!0)],36),[[e.vShow,e.unref(u)]])]),_:3}))}}),Wt="",vt=V(gt,[["__scopeId","data-v-edec7292"]]),yt=t=>(e.pushScopeId("data-v-9bfa9cae"),t=t(),e.popScopeId(),t),_t={class:"pull-refresh"},Et={key:0,class:"pull-arrow-circle"},St={key:0,class:"box-load"},wt={class:"left-load"},bt={class:"right-load"},Ct=yt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Tt={class:"pull-arrow"},Lt={key:1},Bt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",r=e.ref(-999),s=e.ref(1),a=e.ref(0),d=e.ref(.3),h=e.ref(!1),p=e.ref(0),f=e.ref(0),u=e.ref(0),c=e.ref(0),i=e.ref(0),g=e.ref(),b=e.computed(()=>n.scrollTop),_=e.computed(()=>({transition:`${c.value}ms`,transform:`translate3d(0,${r.value}px, 0) scale(${s.value})`})),S=e.computed(()=>({borderColor:l,transition:c.value,transform:`rotate(${100+a.value}deg)`,opacity:d.value}));e.watch(i,x=>{x===0&&(r.value=-50,d.value=.3)}),e.watch(f,x=>{if(i.value===2)return;const D=Math.pow(x,o);D===0&&(r.value=-50),D<=50&&D>0&&(r.value=D-45,a.value=Math.pow(D,1.5),D>15?h.value=!0:h.value=!1),D>50&&(r.value=5,d.value=1,i.value)});const T=x=>{n.refreshOff||!n?.refresh||i.value!==2&&b.value===0&&(p.value===0&&(p.value=x.touches[0].pageY),u.value=0,$.value.style.transition=`${u.value}ms`,c.value=0,f.value=x.touches[0].pageY-p.value,$.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`)},M=()=>{if(n.refreshOff||!n?.refresh||i.value===2)return;p.value=0,u.value=300;const x=Math.pow(f.value,o);$.value.style.transition=`${u.value}ms`,x>50?(i.value=2,f.value=Math.pow(50,1/o),$.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,c.value=300,n?.refresh&&n?.refresh().then(()=>{g.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{g.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{i.value=0,f.value=0,$.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,setTimeout(()=>{g.value=void 0},c.value)},600)})):(f.value=0,$.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`)},$=e.ref(null);return e.onMounted(()=>{$.value=document.querySelector(n.pullRefreshContainer),$.value.addEventListener("touchmove",T),$.value.addEventListener("touchend",M)}),(x,D)=>(e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(_))},[g.value?(e.openBlock(),e.createElementBlock("div",Lt,e.toDisplayString(g.value),1)):(e.openBlock(),e.createElementBlock("div",Et,[i.value==2?(e.openBlock(),e.createElementBlock("div",St,[e.createElementVNode("div",wt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",bt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Ct])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(S))},[e.createElementVNode("div",Tt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:h.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Ut="",Oe=V(Bt,[["__scopeId","data-v-9bfa9cae"]]),xt={inheritAttrs:!1},Dt=e.defineComponent({...xt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,r=Le(e.toRef(l,"data"),{itemHeight:c=>l.itemHeight(l.data[c]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:s,containerProps:a,wrapperProps:d,innerProps:h,getItemHeightData:p,scrollTop:f}=r;n({vListReturn:r});const u="virtualListWrapper"+new Date().getTime();return(c,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(f),pullRefreshContainer:"#"+u},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:u},[e.createElementVNode("div",e.mergeProps({onScrollPassive:i[0]||(i[0]=(...g)=>e.unref(a).onScroll&&e.unref(a).onScroll(...g)),ref:e.unref(a).ref,class:"virtualList"},c.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(h))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),({index:g,data:b})=>(e.openBlock(),e.createElementBlock("div",{key:g,style:e.normalizeStyle({height:`${e.unref(p)(g).height}px`,display:"flex"})},[e.renderSlot(c.$slots,"default",{data:b,index:g},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),qt="",Ot=V(Dt,[["__scopeId","data-v-e0fb787f"]]),fe=t=>(e.pushScopeId("data-v-40e00f20"),t=t(),e.popScopeId(),t),$t={style:{position:"absolute"}},Rt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),It=["width","height"],Mt=[fe(()=>e.createElementVNode("title",null,"logo",-1)),fe(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],Pt=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"703ef503":o}));const o=`${n.duration}ms`;return(l,r)=>(e.openBlock(),e.createElementBlock("div",$t,[Rt,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Mt,8,It))]))}}),Gt="",kt=V(Pt,[["__scopeId","data-v-40e00f20"]]);E.DefaultLoading=it,E.Loading=kt,E.PullRefresh=Oe,E.ScrollBar=vt,E.SvgIcon=pt,E.ToastCreator=dt,E.VirtualList=Ot,E.allSelectedKey=le,E.closeDialogKey=Be,E.dialogController=ot,E.isAllSelectedKey=ie,E.isSelectedKey=oe,E.selectAllKey=ae,E.selectKey=re,E.toggleAllKey=te,E.toggleKey=ne,E.unselectAllKey=ce,E.unselectKey=se,E.useDelayLoad=lt,E.useDelayLoadComp=xe,E.useDragSelect=de,E.useDragSelectByMobile=et,E.useDragSelectByPc=Je,E.useSelectable=Ze,E.useSelectableInjectors=Xe,E.useVirtualList=Le,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -7,12 +7,18 @@ interface Constructor<P = any> {
|
|
|
7
7
|
$props: P;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
interface DelayLoadOptions<P> {
|
|
11
11
|
component: Constructor<P>;
|
|
12
12
|
componentProps?: VNodeProps & P;
|
|
13
13
|
delay?: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
}
|
|
15
|
+
export declare function useDelayLoadComp<P>({ component, componentProps: props, delay, }: DelayLoadOptions<P>): {
|
|
16
|
+
LoadingComp: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
19
|
+
};
|
|
20
|
+
export declare function useDelayLoad<P>({ component, componentProps: props, delay, }: DelayLoadOptions<P>): {
|
|
21
|
+
LoadingComp: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
16
22
|
[key: string]: any;
|
|
17
23
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
18
24
|
loading: import("vue").Ref<boolean>;
|