@lazycatcloud/lzc-toolkit 0.0.79 → 0.0.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(_,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(_=typeof globalThis<"u"?globalThis:_||self,e(_.ui={},_.Vue))})(this,function(_,e){"use strict";var he;const Z=typeof window<"u",me=o=>typeof o=="function";Z&&((he=window?.navigator)==null?void 0:he.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Q(o){return typeof o=="function"?o():e.unref(o)}function ge(o,t){function n(...l){o(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return n}function Ie(o,t={}){let n,l;return s=>{const a=Q(o),u=Q(t.maxWait);if(n&&clearTimeout(n),a<=0||u!==void 0&&u<=0)return l&&(clearTimeout(l),l=null),s();u&&!l&&(l=setTimeout(()=>{n&&clearTimeout(n),l=null,s()},u)),n=setTimeout(()=>{l&&clearTimeout(l),l=null,s()},a)}}function ke(o,t=!0,n=!0){let l=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return h=>{const p=Q(o),d=Date.now()-l;if(a(),p<=0)return l=Date.now(),h();d>p&&(n||!s)?(l=Date.now(),h()):t&&(r=setTimeout(()=>{l=Date.now(),s=!0,a(),h()},p)),!n&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1}}function Me(o){return o}function Pe(o,t){let n,l,r;const s=e.ref(!0),a=()=>{s.value=!0,r()};e.watch(o,a,{flush:"sync"});const u=me(t)?t:t.get,h=me(t)?void 0:t.set,p=e.customRef((d,f)=>(l=d,r=f,{get(){return s.value&&(n=u(),s.value=!1),l(),n},set(c){h?.(c)}}));return Object.isExtensible(p)&&(p.trigger=a),p}function ve(o){return e.getCurrentScope()?(e.onScopeDispose(o),!0):!1}function ye(o,t=200,n={}){return ge(Ie(t,n),o)}function _e(o,t=200,n=!1,l=!0){return ge(ke(t,n,l),o)}function Ee(o,t=!0){e.getCurrentInstance()?e.onMounted(o):t?o():e.nextTick(o)}function Se(o){var t;const n=Q(o);return(t=n?.$el)!=null?t:n}const Ae=Z?window:void 0,He=Z?window.document:void 0;function Fe(o,t=!1){const n=e.ref(),l=()=>n.value=Boolean(o());return l(),Ee(l,t),n}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 Ve(){const o=e.getCurrentInstance(),t=Pe(()=>null,()=>o.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var we=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,je=(o,t)=>{var n={};for(var l in o)Ne.call(o,l)&&t.indexOf(l)<0&&(n[l]=o[l]);if(o!=null&&we)for(var l of we(o))t.indexOf(l)<0&&ze.call(o,l)&&(n[l]=o[l]);return n};function Ke(o,t,n={}){const l=n,{window:r=Ae}=l,s=je(l,["window"]);let a;const u=Fe(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},p=e.watch(()=>Se(o),f=>{h(),u.value&&r&&f&&(a=new ResizeObserver(t),a.observe(f,s))},{immediate:!0,flush:"post"}),d=()=>{h(),p()};return ve(d),{isSupported:u,stop:d}}function We(o,t={width:0,height:0},n={}){const{box:l="content-box"}=n,r=e.ref(t.width),s=e.ref(t.height);return Ke(o,([a])=>{const u=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(r.value=u.reduce((h,{inlineSize:p})=>h+p,0),s.value=u.reduce((h,{blockSize:p})=>h+p,0)):(r.value=a.contentRect.width,s.value=a.contentRect.height)},n),e.watch(()=>Se(o),a=>{r.value=a?t.width:0,s.value=a?t.height:0}),{width:r,height:s}}var be;(function(o){o.UP="UP",o.RIGHT="RIGHT",o.DOWN="DOWN",o.LEFT="LEFT",o.NONE="NONE"})(be||(be={}));let Ye=0;function Ce(o,t={}){const n=e.ref(!1),{document:l=He,immediate:r=!0,manual:s=!1,id:a=`vueuse_styletag_${++Ye}`}=t,u=e.ref(o);let h=()=>{};const p=()=>{if(!l)return;const f=l.getElementById(a)||l.createElement("style");f.type="text/css",f.id=a,t.media&&(f.media=t.media),l.head.appendChild(f),!n.value&&(h=e.watch(u,c=>{f.innerText=c},{immediate:!0}),n.value=!0)},d=()=>{!l||!n.value||(h(),l.head.removeChild(l.getElementById(a)),n.value=!1)};return r&&!s&&Ee(p),s||ve(d),{id:a,css:u,unload:d,load:p,isLoaded:e.readonly(n)}}var Ue=Object.defineProperty,Te=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Le=(o,t,n)=>t in o?Ue(o,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[t]=n,Ge=(o,t)=>{for(var n in t||(t={}))qe.call(t,n)&&Le(o,n,t[n]);if(Te)for(var n of Te(t))Qe.call(t,n)&&Le(o,n,t[n]);return o};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 xe(o,t){const{scrollEndHook:n,itemHeight:l,overscan:r=5}=t,s=e.ref(null),a=We(s),u=e.ref(!0),h=ye(P,100);let p;const d=e.shallowRef(o),f=e.ref(0),c=e.ref({start:0,end:10});let i=0;const m=e.ref([]),C=e.computed(()=>{let{sum:v,height:E}={sum:0,height:0};return d.value.map((k,I)=>(typeof l=="number"?E=l:E=l(I),v+=E,{height:E,sum:v}))}),b=e.computed(()=>N(c.value.start)),S=e.computed(()=>typeof l=="number"?C.value.length*l:C.value[C.value.length-1]?.sum||0),w=e.computed(()=>{let v=m.value.length-r,E=Math.max(v-i,0);return m.value.slice(E,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(p)),e.watch([a.width,a.height,d],([v,E])=>{(v||E)&&H()},{deep:!0}),e.watch(f,()=>{R(),h()});function R(){u.value=!1}function P(){u.value=!0,n?.()}function H(){cancelAnimationFrame(p),p=requestAnimationFrame(B)}function B(){if(s.value){f.value=s.value.scrollTop,i=x();let v=T(f.value),E=v+i+r;v=v-r,v=v<0?0:v,E=E>d.value.length?d.value.length:E,c.value={start:v,end:E},m.value=d.value.slice(v,E).map((k,I)=>({data:k,index:I+v}))}}function T(v){let E=0,k=C.value.length-1,I=-1;for(;E<=k;){const O=Math.floor((E+k)/2);C.value[O].sum>=v?(I=O,k=O-1):E=O+1}return Math.max(0,I)}function x(){let v=0,E=0,k=M();for(let I=k;I<C.value.length&&(v++,E+=C.value[I].height,!(E>=a.height.value));I++);return v}function N(v){if(typeof l=="number")return v*l;let E=C.value[v];return E?E.sum-E.height:0}function z(v){return C.value[v]||{sum:0,height:0}}function M(){let v=c.value.start;return v>=r&&(v+=r),v}function K(v){if(s.value){const E=z(v);s.value.scrollTop=E.sum-E.height,B()}}const q=e.computed(()=>({style:{width:"100%",height:`${S.value}px`,pointerEvents:u.value?void 0:"none"}})),j=e.computed(()=>({style:{transform:`translate3d(0, ${b.value}px, 0)`,"will-change":"transform"}})),W={overflowY:"auto"};return{list:m,visiableList:w,getItemHeightData:z,getoffsetTopIndex:T,totalHeight:S,clientHeight:a.height,scrollTo:K,scrollTop:f,isScrollEnd:u,containerProps:{ref:s,onScroll:()=>{H()},style:W},wrapperProps:q,innerProps:j}}const te=Symbol(),oe=Symbol(),ne=Symbol(),le=Symbol(),re=Symbol(),ae=Symbol(),se=Symbol(),ie=Symbol(),ce=Symbol();function Xe(){const{voidFn:o,boolFn:t,boolRef:n,arrayRef:l}={voidFn:i=>{},boolFn:i=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},r=e.inject(le,l),s=e.inject(ne,t),a=e.inject(ie,n),u=e.inject(oe,o),h=e.inject(te,o),p=e.inject(re,o),d=e.inject(ae,o),f=e.inject(se,o),c=e.inject(ce,o);return{selected:r,isSelected:s,isAllSelected:a,toggle:u,toggleAll:h,select:p,selectAll:d,unselect:f,unselectAll:c}}function Ze(o,t){const n=e.ref({}),l=e.computed(()=>o.value.filter(c=>n.value[c[t]])),r=e.computed(()=>l.value.length!=0&&Object.keys(n.value).length==o.value.length);function s(){o.value.forEach(c=>{n.value[c[t]]=!0})}function a(){n.value={}}function u(c){c.forEach(i=>{n.value[i[t]]||(n.value[i[t]]=!0)})}function h(c){c.forEach(i=>{n.value[i[t]]&&delete n.value[i[t]]})}function p(c){return!!n.value[c[t]]}function d(c){c.forEach(i=>{p(i)?delete n.value[i[t]]:n.value[i[t]]=!0})}function f(){r.value?a():s()}return e.provide(te,f),e.provide(oe,d),e.provide(ne,p),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:d,toggleAll:f,isSelected:p,isAllSelected:r}}function ue(o){return()=>{console.debug(`\u9ED8\u8BA4${o}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function de({attribute:o,selectWay:t="colum",scrollOptions:n={},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(t==="colum"?F:G,50)),p=new Set,d=e.ref(!0),f=e.ref(),c=e.ref(!1),i=e.ref({x:0,y:0}),m=e.ref({x:0,y:0,scrollTop:0}),C=new ResizeObserver(g=>b.value=g[0].target.getBoundingClientRect()),b=e.ref({}),S=e.ref({top:0,height:0,sync(g=!1){S.value.top=f.value?.scrollTop||0,g&&(S.value.height=f.value?.scrollHeight||0)}}),w=e.computed(()=>c.value?{left:Math.min(i.value.x,m.value.x)-b.value.left,top:Math.min(i.value.y,m.value.y)-b.value.top,width:Math.abs(i.value.x-m.value.x),height:Math.abs(i.value.y-m.value.y)}:{left:0,top:0,width:0,height:0}),{margin:R=50,startSpeed:P=30,maxSpeed:H=30}=n;let B;const T=R,x=P,N=H,z=g=>g**1;let M=0;function K(g){if(cancelAnimationFrame(B),M=q(g),M=Math.max(Math.min(M,N),-N),M!==0){const y=f.value;if(!y||!c.value)return;const $=S.value.height-b.value.height;let L=S.value.top+Number(M);L=Math.min(Math.max(0,L),$),y.scrollTop=L,W(),B=requestAnimationFrame(()=>K(g))}}function q(g){if(f.value){const $=b.value,L=$.bottom-g;if(L<T)return x*z(1-L/T);const A=g-$.top;if(A<T)return-x*z(1-A/T)}return 0}function j(g){const y={...w.value,right:0,bottom:0};return y.left+=b.value.left,y.top+=b.value.top-S.value.top,y.right=y.width+y.left,y.bottom=y.height+y.top,y.left<g.right&&y.right>g.left&&y.top<g.bottom&&y.bottom>g.top}function W(){S.value.sync();const{top:g,height:y}=S.value;m.value.y=Math.min(y+b.value.top,m.value.y+g-m.value.scrollTop),m.value.scrollTop=g}function v(g,y,$="dynamic-styles"){let L=document.getElementById($);L||(L=document.createElement("style"),L.id=$,document.head.appendChild(L));const A=L.sheet.cssRules,U=A.length,At=`${g} { ${y} }`;for(let pe=0;pe<U;pe++){const Re=A[pe];if(Re.selectorText===g&&Re.style.cssText===y)return}L.sheet.insertRule(At,U)}function E(g,y){d.value=!0,c.value=!0,S.value.height?S.value.sync():S.value.sync(!0),i.value.x=g,i.value.y=y+S.value.top,m.value.x=i.value.x,m.value.y=i.value.y,f.value?.classList.add("disable-scroll-behavior"),p.clear()}function k(g,y,$){!c.value||(d.value&&t==="colum"&&!D()&&(a(),d.value=!1),$?.(),K(y),m.value.x=Math.max(g,b.value.left),m.value.y=Math.min(y+S.value.top,S.value.height+b.value.top),m.value.scrollTop=S.value.top,h.value())}function I(){c.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function O(){!c.value||(M||W(),h.value())}function D(){if(!c.value)return!1;const{width:g,height:y}=w.value;return!(Math.max(g,y)>5)}function Y(){D()&&a()}function F(){D()||f.value?.querySelectorAll(`[${o}]`).forEach(g=>{u[`${o}`]=g.getAttribute(`${o}`),j(g.getBoundingClientRect())?r([u]):s([u])})}function G(){const g=[];let y=null,$=0;f.value?.querySelectorAll(`[${o}]`).forEach((L,A)=>{const U=L.getAttribute(`${o}`);g.push(U),j(L.getBoundingClientRect())?(y===null&&(y=A),y=Math.min(y,A),$=Math.max($,A)):(u[`${o}`]=U,p.has(U)&&s([u]))});for(let L=y;L<$+1;L++)u[`${o}`]=g[L],r([u]),p.add(g[L])}function X(g){return!g?.value||(f.value=g.value,!f?.value)?!1:(C.observe(f.value),v(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:X,dragStart:E,dragMove:k,dragEnd:I,onScroll:O,isSingleClick:D,cancelSelectAllBySingleClick:Y,selectFn:h,selectRange:w,isPressing:c,containerEl:f,observer:C}}function Je(o){const t=de(o),{observer:n,selectRange:l}=t,{onScroll:r,dragStart:s,dragMove:a,dragEnd:u,cancelSelectAllBySingleClick:h}=t,p=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:d,unload:f}=Ce(`.drag-select-box {
1
+ (function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y.ui={},y.Vue))})(this,function(y,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 Q(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 Ie(t,n={}){let o,l;return s=>{const a=Q(t),u=Q(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 Me(t,n=!0,o=!0){let l=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return h=>{const p=Q(t),d=Date.now()-l;if(a(),p<=0)return l=Date.now(),h();d>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 ke(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 u=me(n)?n:n.get,h=me(n)?void 0:n.set,p=e.customRef((d,f)=>(l=d,r=f,{get(){return s.value&&(o=u(),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 _e(t,n=200,o={}){return ge(Ie(n,o),t)}function ye(t,n=200,o=!1,l=!0){return ge(Me(n,o,l),t)}function Ee(t,n=!0){e.getCurrentInstance()?e.onMounted(t):n?t():e.nextTick(t)}function we(t){var n;const o=Q(t);return(n=o?.$el)!=null?n:o}const Ae=Z?window:void 0,He=Z?window.document:void 0;function Fe(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 Ve(){const t=e.getCurrentInstance(),n=Pe(()=>null,()=>t.proxy.$el);return e.onUpdated(n.trigger),e.onMounted(n.trigger),n}var Se=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,je=(t,n)=>{var o={};for(var l in t)Ne.call(t,l)&&n.indexOf(l)<0&&(o[l]=t[l]);if(t!=null&&Se)for(var l of Se(t))n.indexOf(l)<0&&ze.call(t,l)&&(o[l]=t[l]);return o};function Ke(t,n,o={}){const l=o,{window:r=Ae}=l,s=je(l,["window"]);let a;const u=Fe(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},p=e.watch(()=>we(t),f=>{h(),u.value&&r&&f&&(a=new ResizeObserver(n),a.observe(f,s))},{immediate:!0,flush:"post"}),d=()=>{h(),p()};return ve(d),{isSupported:u,stop:d}}function We(t,n={width:0,height:0},o={}){const{box:l="content-box"}=o,r=e.ref(n.width),s=e.ref(n.height);return Ke(t,([a])=>{const u=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(r.value=u.reduce((h,{inlineSize:p})=>h+p,0),s.value=u.reduce((h,{blockSize:p})=>h+p,0)):(r.value=a.contentRect.width,s.value=a.contentRect.height)},o),e.watch(()=>we(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 Ye=0;function Ce(t,n={}){const o=e.ref(!1),{document:l=He,immediate:r=!0,manual:s=!1,id:a=`vueuse_styletag_${++Ye}`}=n,u=e.ref(t);let h=()=>{};const p=()=>{if(!l)return;const f=l.getElementById(a)||l.createElement("style");f.type="text/css",f.id=a,n.media&&(f.media=n.media),l.head.appendChild(f),!o.value&&(h=e.watch(u,c=>{f.innerText=c},{immediate:!0}),o.value=!0)},d=()=>{!l||!o.value||(h(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return r&&!s&&Ee(p),s||ve(d),{id:a,css:u,unload:d,load:p,isLoaded:e.readonly(o)}}var Ue=Object.defineProperty,Te=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Le=(t,n,o)=>n in t?Ue(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,Xe=(t,n)=>{for(var o in n||(n={}))qe.call(n,o)&&Le(t,o,n[o]);if(Te)for(var o of Te(n))Qe.call(n,o)&&Le(t,o,n[o]);return t};Xe({linear:ke},{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 xe(t,n){const{scrollEndHook:o,itemHeight:l,overscan:r=5}=n,s=e.ref(null),a=We(s),u=e.ref(!0),h=_e(P,100);let p;const d=e.shallowRef(t),f=e.ref(0),c=e.ref({start:0,end:10});let i=0;const m=e.ref([]),C=e.computed(()=>{let{sum:v,height:E}={sum:0,height:0};return d.value.map((M,I)=>(typeof l=="number"?E=l:E=l(I),v+=E,{height:E,sum:v}))}),b=e.computed(()=>N(c.value.start)),w=e.computed(()=>typeof l=="number"?C.value.length*l:C.value[C.value.length-1]?.sum||0),S=e.computed(()=>{let v=m.value.length-r,E=Math.max(v-i,0);return m.value.slice(E,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(p)),e.watch([a.width,a.height,d],([v,E])=>{(v||E)&&H()},{deep:!0}),e.watch(f,()=>{R(),h()});function R(){u.value=!1}function P(){u.value=!0,o?.()}function H(){cancelAnimationFrame(p),p=requestAnimationFrame(B)}function B(){if(s.value){f.value=s.value.scrollTop,i=x();let v=T(f.value),E=v+i+r;v=v-r,v=v<0?0:v,E=E>d.value.length?d.value.length:E,c.value={start:v,end:E},m.value=d.value.slice(v,E).map((M,I)=>({data:M,index:I+v}))}}function T(v){let E=0,M=C.value.length-1,I=-1;for(;E<=M;){const $=Math.floor((E+M)/2);C.value[$].sum>=v?(I=$,M=$-1):E=$+1}return Math.max(0,I)}function x(){let v=0,E=0,M=k();for(let I=M;I<C.value.length&&(v++,E+=C.value[I].height,!(E>=a.height.value));I++);return v}function N(v){if(typeof l=="number")return v*l;let E=C.value[v];return E?E.sum-E.height:0}function z(v){return C.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 E=z(v);s.value.scrollTop=E.sum-E.height,B()}}const q=e.computed(()=>({style:{width:"100%",height:`${w.value}px`,pointerEvents:u.value?void 0:"none"}})),j=e.computed(()=>({style:{transform:`translate3d(0, ${b.value}px, 0)`,"will-change":"transform"}})),W={overflowY:"auto"};return{list:m,visiableList:S,getItemHeightData:z,getoffsetTopIndex:T,totalHeight:w,clientHeight:a.height,scrollTo:K,scrollTop:f,isScrollEnd:u,containerProps:{ref:s,onScroll:()=>{H()},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),p=e.inject(re,t),d=e.inject(ae,t),f=e.inject(se,t),c=e.inject(ce,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:u,toggleAll:h,select:p,selectAll:d,unselect:f,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 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 p(c){return!!o.value[c[n]]}function d(c){c.forEach(i=>{p(i)?delete o.value[i[n]]:o.value[i[n]]=!0})}function f(){r.value?a():s()}return e.provide(te,f),e.provide(ne,d),e.provide(oe,p),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:d,toggleAll:f,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 u={};const h=e.computed(()=>ye(n==="colum"?F:X,50)),p=new Set,d=e.ref(!0),f=e.ref(),c=e.ref(!1),i=e.ref({x:0,y:0}),m=e.ref({x:0,y:0,scrollTop:0}),C=new ResizeObserver(g=>b.value=g[0].target.getBoundingClientRect()),b=e.ref({}),w=e.ref({top:0,height:0,sync(g=!1){w.value.top=f.value?.scrollTop||0,g&&(w.value.height=f.value?.scrollHeight||0)}}),S=e.computed(()=>c.value?{left:Math.min(i.value.x,m.value.x)-b.value.left,top:Math.min(i.value.y,m.value.y)-b.value.top,width:Math.abs(i.value.x-m.value.x),height:Math.abs(i.value.y-m.value.y)}:{left:0,top:0,width:0,height:0}),{margin:R=50,startSpeed:P=30,maxSpeed:H=30}=o;let B;const T=R,x=P,N=H,z=g=>g**1;let k=0;function K(g){if(cancelAnimationFrame(B),k=q(g),k=Math.max(Math.min(k,N),-N),k!==0){const _=f.value;if(!_||!c.value)return;const O=w.value.height-b.value.height;let L=w.value.top+Number(k);L=Math.min(Math.max(0,L),O),_.scrollTop=L,W(),B=requestAnimationFrame(()=>K(g))}}function q(g){if(f.value){const O=b.value,L=O.bottom-g;if(L<T)return x*z(1-L/T);const A=g-O.top;if(A<T)return-x*z(1-A/T)}return 0}function j(g){const _={...S.value,right:0,bottom:0};return _.left+=b.value.left,_.top+=b.value.top-w.value.top,_.right=_.width+_.left,_.bottom=_.height+_.top,_.left<g.right&&_.right>g.left&&_.top<g.bottom&&_.bottom>g.top}function W(){w.value.sync();const{top:g,height:_}=w.value;m.value.y=Math.min(_+b.value.top,m.value.y+g-m.value.scrollTop),m.value.scrollTop=g}function v(g,_,O="dynamic-styles"){let L=document.getElementById(O);L||(L=document.createElement("style"),L.id=O,document.head.appendChild(L));const A=L.sheet.cssRules,U=A.length,Ft=`${g} { ${_} }`;for(let pe=0;pe<U;pe++){const Re=A[pe];if(Re.selectorText===g&&Re.style.cssText===_)return}L.sheet.insertRule(Ft,U)}function E(g,_){d.value=!0,c.value=!0,w.value.height?w.value.sync():w.value.sync(!0),i.value.x=g,i.value.y=_+w.value.top,m.value.x=i.value.x,m.value.y=i.value.y,f.value?.classList.add("disable-scroll-behavior"),p.clear()}function M(g,_,O){!c.value||(d.value&&n==="colum"&&!D()&&(a(),d.value=!1),O?.(),K(_),m.value.x=Math.max(g,b.value.left),m.value.y=Math.min(_+w.value.top,w.value.height+b.value.top),m.value.scrollTop=w.value.top,h.value())}function I(){c.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function $(){!c.value||(k||W(),h.value())}function D(){if(!c.value)return!1;const{width:g,height:_}=S.value;return!(Math.max(g,_)>5)}function Y(){D()&&a()}function F(){D()||f.value?.querySelectorAll(`[${t}]`).forEach(g=>{u[`${t}`]=g.getAttribute(`${t}`),j(g.getBoundingClientRect())?r([u]):s([u])})}function X(){const g=[];let _=null,O=0;f.value?.querySelectorAll(`[${t}]`).forEach((L,A)=>{const U=L.getAttribute(`${t}`);g.push(U),j(L.getBoundingClientRect())?(_===null&&(_=A),_=Math.min(_,A),O=Math.max(O,A)):(u[`${t}`]=U,p.has(U)&&s([u]))});for(let L=_;L<O+1;L++)u[`${t}`]=g[L],r([u]),p.add(g[L])}function G(g){return!g?.value||(f.value=g.value,!f?.value)?!1:(C.observe(f.value),v(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:G,dragStart:E,dragMove:M,dragEnd:I,onScroll:$,isSingleClick:D,cancelSelectAllBySingleClick:Y,selectFn:h,selectRange:S,isPressing:c,containerEl:f,observer:C}}function Je(t){const n=de(t),{observer:o,selectRange:l}=n,{onScroll:r,dragStart:s,dragMove:a,dragEnd:u,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`})),{load:d,unload:f}=Ce(`.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
- }`),c=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:p.value})}});function i(w){w.button===0&&s(w.x,w.y)}function m(w){a(w.x,w.y)}function C(w){w.composedPath().some(P=>P?.getAttribute?.(o.attribute))||h(),u()}function b(w){try{if(!t.init(w))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!t.containerEl?.value)return!1;e.render(e.h(c),t.containerEl.value),d(),t.containerEl.value?.addEventListener("scroll",r),t.containerEl.value?.addEventListener("mousedown",i),window.addEventListener("mousemove",m),window.addEventListener("mouseup",C)}catch(R){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",R)}}function S(){f(),n.disconnect(),t.containerEl.value?.removeEventListener("scroll",r),t.containerEl.value?.removeEventListener("mousedown",i),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",C)}return{init:b,unMount:S}}function et(o,t,n=600){const l=de({...o,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=l,{onScroll:s,dragStart:a,dragMove:u,dragEnd:h}=l;let p;function d(){clearTimeout(p)}function f(b){d(),b.composedPath().some(w=>!!w?.getAttribute?.(o.attribute))&&(p=setTimeout(()=>{const{clientX:w,clientY:R}=b.targetTouches[0];a(w,R),t?.(),u(w,R,()=>b.preventDefault()),b.preventDefault()},n))}function c(b){d();const{clientX:S,clientY:w}=b.targetTouches[0];u(S,w,()=>b.preventDefault())}function i(){d(),h()}function m(b){try{if(!l.init(b))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",f),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 C(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",f),l.containerEl.value?.removeEventListener("touchmove",c),window.removeEventListener("touchcancel",i),window.removeEventListener("touchEnd",i)}return{init:m,unMount:C}}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(o,{emit:t}){const n=o,l=()=>{n.closeOnClickOverlay&&t("update:visiable",!1)};return e.provide(Be,()=>t("update:visiable",!1)),(r,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[o.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",o.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],2)])):e.createCommentVNode("",!0)]),_:3}))}}),Ft="",V=(o,t)=>{const n=o.__vccOpts||o;for(const[l,r]of t)n[l]=r;return n},ot=V(tt,[["__scopeId","data-v-e171c24d"]]);function nt(o){function t(n,l){const r=document.createElement("div"),s={setup(){return()=>e.h(ot,{visiable:!0,"onUpdate:visiable":()=>{r?.remove()},...o},{default:()=>e.h(n,l)})}};return document.body.appendChild(r),e.render(e.h(s),r),{close:()=>r?.remove()}}return{create:t}}function De({component:o,componentProps:t,delay:n=300}){const l=`${n}ms`,{load:r}=Ce(`@keyframes lzcDelayLoad {
6
+ }`),c=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:p.value})}});function i(S){S.button===0&&s(S.x,S.y)}function m(S){a(S.x,S.y)}function C(S){S.composedPath().some(P=>P?.getAttribute?.(t.attribute))||h(),u()}function b(S){try{if(!n.init(S))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(c),n.containerEl.value),d(),n.containerEl.value?.addEventListener("scroll",r),n.containerEl.value?.addEventListener("mousedown",i),window.addEventListener("mousemove",m),window.addEventListener("mouseup",C)}catch(R){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",R)}}function w(){f(),o.disconnect(),n.containerEl.value?.removeEventListener("scroll",r),n.containerEl.value?.removeEventListener("mousedown",i),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",C)}return{init:b,unMount:w}}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:u,dragEnd:h}=l;let p;function d(){clearTimeout(p)}function f(b){d(),b.composedPath().some(S=>!!S?.getAttribute?.(t.attribute))&&(p=setTimeout(()=>{const{clientX:S,clientY:R}=b.targetTouches[0];a(S,R),n?.(),u(S,R,()=>b.preventDefault()),b.preventDefault()},o))}function c(b){d();const{clientX:w,clientY:S}=b.targetTouches[0];u(w,S,()=>b.preventDefault())}function i(){d(),h()}function m(b){try{if(!l.init(b))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",f),l.containerEl.value?.addEventListener("touchmove",c),window.addEventListener("touchcancel",i),window.addEventListener("touchend",i)}catch(w){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",w)}}function C(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",f),l.containerEl.value?.removeEventListener("touchmove",c),window.removeEventListener("touchcancel",i),window.removeEventListener("touchEnd",i)}return{init:m,unMount:C}}const Be=Symbol(),tt={created(t,n){let o,l;function r(a){o=a.clientX,l=a.clientY}function s(a){if(o===void 0)return;const u=a.clientX,h=a.clientY,p=Math.abs(u-o),d=Math.abs(h-l);p>5||d>5||n.value&&n.value(a)}t.__mouse_down__=r,t.__mouse_up__=s,t.addEventListener("mousedown",r),t.addEventListener("mouseup",s)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},nt={key:0,class:"lzc-modal"},ot=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.withDirectives((e.openBlock(),e.createElementBlock("div",nt,[e.createElementVNode("div",{onMousedown:s[0]||(s[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],34)])),[[e.unref(tt),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),Nt="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},lt=V(ot,[["__scopeId","data-v-4ff684af"]]);function rt(t){function n(o,l){const r=document.createElement("div"),s={setup(){return()=>e.h(lt,{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 De({component:t,componentProps:n,delay:o=300}){const l=`${o}ms`,{load:r}=Ce(`@keyframes lzcDelayLoad {
7
7
  to {
8
8
  opacity: 1;
9
9
  }
@@ -11,4 +11,4 @@
11
11
  .lzc-delay-loading {
12
12
  opacity: 0;
13
13
  animation: lzcDelayLoad 0s ${l} forwards;
14
- }`);return{LoadingComp:e.defineComponent({setup(){const a=Ve();return e.onMounted(()=>{r(),a.value.classList.add("lzc-delay-loading")}),()=>e.h(o,t)}})}}function lt({component:o,componentProps:t,delay:n=300}){const{LoadingComp:l}=De({component:o,componentProps:t,delay:n}),r=e.ref(!1);function s(){r.value=!0}function a(){r.value=!1}return{LoadingComp:l,loading:r,load:s,unload:a}}const rt=[(o=>(e.pushScopeId("data-v-d0ad7597"),o=o(),e.popScopeId(),o))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],at=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(o){return e.useCssVars(t=>({d8dfa9f0:o.width+"px","2941c2e5":o.height+"px"})),(t,n)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),rt,16))}}),zt="",st=V(at,[["__scopeId","data-v-d0ad7597"]]),it=["onClick"],ct=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(o){const t=o,n=e.ref(),l=e.ref(),r=e.ref(),s=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(${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"}));function h(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=n.value.offsetWidth/2,r.value=n.value.offsetHeight/2}),(p,d)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(h,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:n,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(o.message),1)],4)],12,it))}}),jt="",ut=V(ct,[["__scopeId","data-v-533e986b"]]),Oe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class dt{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(ut),{...Oe,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const n=this.options.duration||Oe.duration;setTimeout(()=>{this.dismiss()},n)}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 ft=["xlink:href","fill","color"],pt=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(o){const t=o,n=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"}));return(r,s)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle(e.unref(l))},[e.createElementVNode("use",{"xlink:href":e.unref(n),fill:o.color,color:o.color},null,8,ft)],4))}});function ht(o){const{containerEl:t,sliderEl:n,autoHeight:l,performance:r={},maxHeightRatio:s=.9}=o,a=e.ref(!0),u=ye(N,100);let h,p="";const d=e.ref(0),f=e.ref(0),c=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),m=e.ref({clientHeight:0}),C=e.computed(()=>!!f.value),b=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),S=e.computed(()=>i.value.clientHeight-m.value.clientHeight),w=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),R=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),P=e.computed(()=>R.value>s?0:R.value*i.value.clientHeight),H=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:l?`${P.value}px`:void 0}));function B(O){x(),f.value=O.clientY-n.value.getBoundingClientRect().top||1,p=getComputedStyle(t.value).scrollBehavior,p==="smooth"&&(t.value.style.scrollBehavior="unset")}function T(){t.value.style.scrollBehavior=p,f.value=0,u()}function x(){a.value=!1}function N(){C.value||(a.value=!0)}function z(O){if(!C.value)return;let D=O.clientY-i.value.top-f.value;D<0?c.value=0:D>=S.value?c.value=S.value:c.value=D,t.value.scrollTo({top:c.value/S.value*w.value})}function M(){C.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(q)}function q(){t.value&&(d.value=r.scrollTop?.value??t.value.scrollTop,c.value=d.value/w.value*S.value)}function j(O){let D="addEventListener";O==="add"?D="addEventListener":D="removeEventListener",n.value?.[D]("pointerdown",B,{passive:!0}),window[D]("pointermove",z,{passive:!0}),window[D]("pointerup",T,{passive:!0})}const W=new MutationObserver(O=>{O.map(Y=>Y.oldValue).join().includes("height")&&v()});function v(){i.value.top=t.value?.getBoundingClientRect().top??0,i.value.scrollHeight=t.value?.scrollHeight??0,i.value.clientHeight=t.value?.clientHeight??0}function E(){x(),setTimeout(()=>{m.value.clientHeight=n.value?.clientHeight??0,N()},150)}function k(O,D,Y="dynamic-styles"){let F=document.getElementById(Y);F||(F=document.createElement("style"),F.id=Y,document.head.appendChild(F));const G=F.sheet.cssRules,X=G.length,g=`${O} { ${D} }`;for(let y=0;y<X;y++){const $=G[y];if($.selectorText===O&&$.style.cssText===D)return}F.sheet.insertRule(g,X)}function I(){t.value&&n.value?(k(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),k(".hide-scrollbar::-webkit-scrollbar","display: none"),t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",M,{passive:!0}),j("add"),W.observe(t.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{v()},100),E()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:n})}return e.watch(d,()=>{x(),u()}),{isScrollEnd:a,isDragSlider:C,offsetTop:c,scrollTop:d,scrollable:b,sliderPos:H,init:I,modifySliderEventListener:j}}const mt=(o=>(e.pushScopeId("data-v-edec7292"),o=o(),e.popScopeId(),o))(()=>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(o,{expose:t}){const n=o,l=!!e.useSlots().default,r=e.ref(null),s=e.computed(()=>n.containerEl),a=ht({containerEl:s,sliderEl:r,autoHeight:l?n.autoHeight:!0,performance:n.performance}),{scrollable:u,isScrollEnd:h,sliderPos:p}=a,d=e.ref(!1),f=n.autoHide?e.computed(()=>d.value||!h.value):e.computed(()=>u.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function c(){d.value=!0}function i(){d.value=!1}return t({uScrollBarReturn:a}),(m,C)=>(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(m.$slots,"default",{},()=>[mt],!0)],36),[[e.vShow,e.unref(f)]])]),_:3}))}}),Wt="",vt=V(gt,[["__scopeId","data-v-edec7292"]]),yt=o=>(e.pushScopeId("data-v-18377f18"),o=o(),e.popScopeId(),o),_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},xt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(o){const t=o,n=.7,l="#2EC1CC",r=e.ref(-999),s=e.ref(1),a=e.ref(0),u=e.ref(.3),h=e.ref(!1),p=e.ref(0),d=e.ref(0),f=e.ref(0),c=e.ref(0),i=e.ref(0),m=e.ref(),C=e.computed(()=>t.scrollTop),b=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:u.value}));e.watch(i,T=>{T===0&&(r.value=-50,u.value=.3)}),e.watch(d,T=>{if(i.value===2)return;const x=Math.pow(T,n);x===0&&(r.value=-50),x<=50&&x>0&&(r.value=x-45,a.value=Math.pow(x,1.5),x>15?h.value=!0:h.value=!1),x>50&&(r.value=5,u.value=1,i.value)});const w=e.ref(0),R=T=>{w.value=T.touches[0].pageY},P=T=>{const x=T.touches[0].pageY-w.value;w.value=T.touches[0].pageY,!t.refreshOff&&(!t?.refresh||i.value!==2&&C.value===0&&(p.value===0&&(p.value=T.touches[0].pageY),f.value=0,B.value.style.transition=`${f.value}ms`,c.value=0,d.value=T.touches[0].pageY-p.value,B.value.style.transform=`translate3d(0, ${Math.pow(d.value,n)}px, 0)`,x>0&&T.preventDefault()))},H=()=>{if(t.refreshOff||!t?.refresh||i.value===2)return;p.value=0,f.value=300;const T=Math.pow(d.value,n);B.value.style.transition=`${f.value}ms`,T>50?(i.value=2,d.value=Math.pow(50,1/n),B.value.style.transform=`translate3d(0, ${Math.pow(d.value,n)}px, 0)`,c.value=300,t?.refresh&&t?.refresh().then(()=>{m.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{m.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{i.value=0,d.value=0,B.value.style.transform=`translate3d(0, ${Math.pow(d.value,n)}px, 0)`,setTimeout(()=>{m.value=void 0},c.value)},600)})):(d.value=0,B.value.style.transform=`translate3d(0, ${Math.pow(d.value,n)}px, 0)`)},B=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(B.value=document.querySelector(t.pullRefreshContainer),B.value?.addEventListener("touchstart",R),B.value?.addEventListener("touchmove",P),B.value?.addEventListener("touchend",H))}),(T,x)=>(e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(b))},[m.value?(e.openBlock(),e.createElementBlock("div",Lt,e.toDisplayString(m.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)]))}}),Yt="",$e=V(xt,[["__scopeId","data-v-18377f18"]]),Bt={inheritAttrs:!1},Dt=e.defineComponent({...Bt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(o,{expose:t,emit:n}){const l=o,r=xe(e.toRef(l,"data"),{itemHeight:c=>l.itemHeight(l.data[c]),overscan:l.overscan,scrollEndHook:()=>{n("scrollEnd")}}),{list:s,containerProps:a,wrapperProps:u,innerProps:h,getItemHeightData:p,scrollTop:d}=r;t({vListReturn:r});const f="virtualListWrapper"+new Date().getTime();return(c,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode($e,{refresh:o.refresh,refreshOff:o.refreshOff,scrollTop:e.unref(d),pullRefreshContainer:"#"+f},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:f},[e.createElementVNode("div",e.mergeProps({onScrollPassive:i[0]||(i[0]=(...m)=>e.unref(a).onScroll&&e.unref(a).onScroll(...m)),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:m,data:C})=>(e.openBlock(),e.createElementBlock("div",{key:m,style:e.normalizeStyle({height:`${e.unref(p)(m).height}px`,display:"flex"})},[e.renderSlot(c.$slots,"default",{data:C,index:m},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Ut="",Ot=V(Dt,[["__scopeId","data-v-e0fb787f"]]),fe=o=>(e.pushScopeId("data-v-40e00f20"),o=o(),e.popScopeId(),o),$t={style:{position:"absolute"}},Rt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),It=["width","height"],kt=[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(o){const t=o;e.useCssVars(l=>({"703ef503":n}));const n=`${t.duration}ms`;return(l,r)=>(e.openBlock(),e.createElementBlock("div",$t,[Rt,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:o.width,height:o.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},kt,8,It))]))}}),Gt="",Pt=V(Mt,[["__scopeId","data-v-40e00f20"]]);_.DefaultLoading=st,_.Loading=Pt,_.PullRefresh=$e,_.ScrollBar=vt,_.SvgIcon=pt,_.ToastCreator=dt,_.VirtualList=Ot,_.allSelectedKey=le,_.closeDialogKey=Be,_.dialogController=nt,_.isAllSelectedKey=ie,_.isSelectedKey=ne,_.selectAllKey=ae,_.selectKey=re,_.toggleAllKey=te,_.toggleKey=oe,_.unselectAllKey=ce,_.unselectKey=se,_.useDelayLoad=lt,_.useDelayLoadComp=De,_.useDragSelect=de,_.useDragSelectByMobile=et,_.useDragSelectByPc=Je,_.useSelectable=Ze,_.useSelectableInjectors=Xe,_.useVirtualList=xe,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
14
+ }`);return{LoadingComp:e.defineComponent({setup(){const a=Ve();return e.onMounted(()=>{r(),a.value.classList.add("lzc-delay-loading")}),()=>e.h(t,n)}})}}function at({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=De({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 st=[(t=>(e.pushScopeId("data-v-d0ad7597"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],it=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({d8dfa9f0:t.width+"px","2941c2e5":t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),st,16))}}),Kt="",ct=V(it,[["__scopeId","data-v-d0ad7597"]]),ut=["onClick"],dt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent: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"}));function h(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,r.value=o.value.offsetHeight/2}),(p,d)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(h,["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(t.message),1)],4)],12,ut))}}),Wt="",ft=V(dt,[["__scopeId","data-v-533e986b"]]),$e={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class pt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(ft),{...$e,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||$e.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 ht=["xlink:href","fill","color"],mt=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,ht)],4))}});function gt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:r={},maxHeightRatio:s=.9}=t,a=e.ref(!0),u=_e(N,100);let h,p="";const d=e.ref(0),f=e.ref(0),c=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),m=e.ref({clientHeight:0}),C=e.computed(()=>!!f.value),b=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),w=e.computed(()=>i.value.clientHeight-m.value.clientHeight),S=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),R=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),P=e.computed(()=>R.value>s?0:R.value*i.value.clientHeight),H=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:l?`${P.value}px`:void 0}));function B($){x(),f.value=$.clientY-o.value.getBoundingClientRect().top||1,p=getComputedStyle(n.value).scrollBehavior,p==="smooth"&&(n.value.style.scrollBehavior="unset")}function T(){n.value.style.scrollBehavior=p,f.value=0,u()}function x(){a.value=!1}function N(){C.value||(a.value=!0)}function z($){if(!C.value)return;let D=$.clientY-i.value.top-f.value;D<0?c.value=0:D>=w.value?c.value=w.value:c.value=D,n.value.scrollTo({top:c.value/w.value*S.value})}function k(){C.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(q)}function q(){n.value&&(d.value=r.scrollTop?.value??n.value.scrollTop,c.value=d.value/S.value*w.value)}function j($){let D="addEventListener";$==="add"?D="addEventListener":D="removeEventListener",o.value?.[D]("pointerdown",B,{passive:!0}),window[D]("pointermove",z,{passive:!0}),window[D]("pointerup",T,{passive:!0})}const W=new MutationObserver($=>{$.map(Y=>Y.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 E(){x(),setTimeout(()=>{m.value.clientHeight=o.value?.clientHeight??0,N()},150)}function M($,D,Y="dynamic-styles"){let F=document.getElementById(Y);F||(F=document.createElement("style"),F.id=Y,document.head.appendChild(F));const X=F.sheet.cssRules,G=X.length,g=`${$} { ${D} }`;for(let _=0;_<G;_++){const O=X[_];if(O.selectorText===$&&O.style.cssText===D)return}F.sheet.insertRule(g,G)}function I(){n.value&&o.value?(M(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),M(".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),E()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(d,()=>{x(),u()}),{isScrollEnd:a,isDragSlider:C,offsetTop:c,scrollTop:d,scrollable:b,sliderPos:H,init:I,modifySliderEventListener:j}}const vt=(t=>(e.pushScopeId("data-v-edec7292"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),_t=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=gt({containerEl:s,sliderEl:r,autoHeight:l?o.autoHeight:!0,performance:o.performance}),{scrollable:u,isScrollEnd:h,sliderPos:p}=a,d=e.ref(!1),f=o.autoHide?e.computed(()=>d.value||!h.value):e.computed(()=>u.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function c(){d.value=!0}function i(){d.value=!1}return n({uScrollBarReturn:a}),(m,C)=>(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(m.$slots,"default",{},()=>[vt],!0)],36),[[e.vShow,e.unref(f)]])]),_:3}))}}),Ut="",yt=V(_t,[["__scopeId","data-v-edec7292"]]),Et=t=>(e.pushScopeId("data-v-18377f18"),t=t(),e.popScopeId(),t),wt={class:"pull-refresh"},St={key:0,class:"pull-arrow-circle"},bt={key:0,class:"box-load"},Ct={class:"left-load"},Tt={class:"right-load"},Lt=Et(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),xt={class:"pull-arrow"},Bt={key:1},Dt=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),p=e.ref(0),d=e.ref(0),f=e.ref(0),c=e.ref(0),i=e.ref(0),m=e.ref(),C=e.computed(()=>n.scrollTop),b=e.computed(()=>({transition:`${c.value}ms`,transform:`translate3d(0,${r.value}px, 0) scale(${s.value})`})),w=e.computed(()=>({borderColor:l,transition:c.value,transform:`rotate(${100+a.value}deg)`,opacity:u.value}));e.watch(i,T=>{T===0&&(r.value=-50,u.value=.3)}),e.watch(d,T=>{if(i.value===2)return;const x=Math.pow(T,o);x===0&&(r.value=-50),x<=50&&x>0&&(r.value=x-45,a.value=Math.pow(x,1.5),x>15?h.value=!0:h.value=!1),x>50&&(r.value=5,u.value=1,i.value)});const S=e.ref(0),R=T=>{S.value=T.touches[0].pageY},P=T=>{const x=T.touches[0].pageY-S.value;S.value=T.touches[0].pageY,!n.refreshOff&&(!n?.refresh||i.value!==2&&C.value===0&&(p.value===0&&(p.value=T.touches[0].pageY),f.value=0,B.value.style.transition=`${f.value}ms`,c.value=0,d.value=T.touches[0].pageY-p.value,B.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,x>0&&T.preventDefault()))},H=()=>{if(n.refreshOff||!n?.refresh||i.value===2)return;p.value=0,f.value=300;const T=Math.pow(d.value,o);B.value.style.transition=`${f.value}ms`,T>50?(i.value=2,d.value=Math.pow(50,1/o),B.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,c.value=300,n?.refresh&&n?.refresh().then(()=>{m.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{m.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{i.value=0,d.value=0,B.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,setTimeout(()=>{m.value=void 0},c.value)},600)})):(d.value=0,B.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`)},B=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(B.value=document.querySelector(n.pullRefreshContainer),B.value?.addEventListener("touchstart",R),B.value?.addEventListener("touchmove",P),B.value?.addEventListener("touchend",H))}),(T,x)=>(e.openBlock(),e.createElementBlock("div",wt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(b))},[m.value?(e.openBlock(),e.createElementBlock("div",Bt,e.toDisplayString(m.value),1)):(e.openBlock(),e.createElementBlock("div",St,[i.value==2?(e.openBlock(),e.createElementBlock("div",bt,[e.createElementVNode("div",Ct,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Tt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Lt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(w))},[e.createElementVNode("div",xt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:h.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),qt="",Oe=V(Dt,[["__scopeId","data-v-18377f18"]]),$t={inheritAttrs:!1},Ot=e.defineComponent({...$t,__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=xe(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:p,scrollTop:d}=r;n({vListReturn:r});const f="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(d),pullRefreshContainer:"#"+f},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:f},[e.createElementVNode("div",e.mergeProps({onScrollPassive:i[0]||(i[0]=(...m)=>e.unref(a).onScroll&&e.unref(a).onScroll(...m)),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:m,data:C})=>(e.openBlock(),e.createElementBlock("div",{key:m,style:e.normalizeStyle({height:`${e.unref(p)(m).height}px`,display:"flex"})},[e.renderSlot(c.$slots,"default",{data:C,index:m},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Qt="",Rt=V(Ot,[["__scopeId","data-v-e0fb787f"]]),fe=t=>(e.pushScopeId("data-v-40e00f20"),t=t(),e.popScopeId(),t),It={style:{position:"absolute"}},Mt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),kt=["width","height"],Pt=[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))],At=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",It,[Mt,(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"},Pt,8,kt))]))}}),Zt="",Ht=V(At,[["__scopeId","data-v-40e00f20"]]);y.DefaultLoading=ct,y.Loading=Ht,y.PullRefresh=Oe,y.ScrollBar=yt,y.SvgIcon=mt,y.ToastCreator=pt,y.VirtualList=Rt,y.allSelectedKey=le,y.closeDialogKey=Be,y.dialogController=rt,y.isAllSelectedKey=ie,y.isSelectedKey=oe,y.selectAllKey=ae,y.selectKey=re,y.toggleAllKey=te,y.toggleKey=ne,y.unselectAllKey=ce,y.unselectKey=se,y.useDelayLoad=at,y.useDelayLoadComp=De,y.useDragSelect=de,y.useDragSelectByMobile=et,y.useDragSelectByPc=Je,y.useSelectable=Ze,y.useSelectableInjectors=Ge,y.useVirtualList=xe,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .lzc-modal[data-v-e171c24d]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-e171c24d]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-d0ad7597]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-d0ad7597]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--d8dfa9f0);height:var(--2941c2e5);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-d0ad7597 .7s linear infinite}@keyframes ldio-mm5gwljcryb-d0ad7597{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-d0ad7597]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}@keyframes slide-533e986b{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-533e986b]{animation:slide-533e986b .3s linear}.v-leave-active[data-v-edec7292]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-edec7292]{opacity:0}.slider-wrapper[data-v-edec7292]{z-index:100;position:absolute;right:0;touch-action:none}.default-slider[data-v-edec7292]{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-40e00f20{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-40e00f20]{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-40e00f20 var(--703ef503) linear infinite}
1
+ .lzc-modal[data-v-4ff684af]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-4ff684af]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-d0ad7597]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-d0ad7597]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--d8dfa9f0);height:var(--2941c2e5);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-d0ad7597 .7s linear infinite}@keyframes ldio-mm5gwljcryb-d0ad7597{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-d0ad7597]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}@keyframes slide-533e986b{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-533e986b]{animation:slide-533e986b .3s linear}.v-leave-active[data-v-edec7292]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-edec7292]{opacity:0}.slider-wrapper[data-v-edec7292]{z-index:100;position:absolute;right:0;touch-action:none}.default-slider[data-v-edec7292]{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-40e00f20{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-40e00f20]{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-40e00f20 var(--703ef503) linear infinite}
@@ -0,0 +1,6 @@
1
+ import type { Directive } from "vue";
2
+ export declare const vSingleClick: Directive<HTMLElement, (event: MouseEvent) => any>;
3
+ export declare const vDebounceClick: Directive<HTMLElement, {
4
+ fn: Function;
5
+ ms?: number;
6
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.79",
3
+ "version": "0.0.81",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",