@lazycatcloud/lzc-toolkit 0.0.63 → 0.0.65

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 +1,9 @@
1
- (function(b,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(b=typeof globalThis<"u"?globalThis:b||self,e(b.ui={},b.Vue))})(this,function(b,e){"use strict";var pe;const he=typeof window<"u";he&&((pe=window?.navigator)==null?void 0:pe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Y(t){return typeof t=="function"?t():e.unref(t)}function me(t,n){function l(...o){t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})}return l}function xe(t,n={}){let l,o;return i=>{const a=Y(t),u=Y(n.maxWait);if(l&&clearTimeout(l),a<=0||u!==void 0&&u<=0)return o&&(clearTimeout(o),o=null),i();u&&!o&&(o=setTimeout(()=>{l&&clearTimeout(l),o=null,i()},u)),l=setTimeout(()=>{o&&clearTimeout(o),o=null,i()},a)}}function Be(t,n=!0,l=!0){let o=0,r,i=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return y=>{const h=Y(t),p=Date.now()-o;if(a(),h<=0)return o=Date.now(),y();p>h&&(l||!i)?(o=Date.now(),y()):n&&(r=setTimeout(()=>{o=Date.now(),i=!0,a(),y()},h)),!l&&!r&&(r=setTimeout(()=>i=!0,h)),i=!1}}function De(t){return t}function Oe(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ge(t,n=200,l={}){return me(xe(n,l),t)}function ve(t,n=200,l=!1,o=!0){return me(Be(n,l,o),t)}function Re(t,n=!0){e.getCurrentInstance()?e.onMounted(t):n?t():e.nextTick(t)}function ye(t){var n;const l=Y(t);return(n=l?.$el)!=null?n:l}const Ie=he?window:void 0;function $e(t,n=!1){const l=e.ref(),o=()=>l.value=Boolean(t());return o(),Re(o,n),l}const Z=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__";Z[J]=Z[J]||{},Z[J];var _e=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,He=(t,n)=>{var l={};for(var o in t)Pe.call(t,o)&&n.indexOf(o)<0&&(l[o]=t[o]);if(t!=null&&_e)for(var o of _e(t))n.indexOf(o)<0&&Ae.call(t,o)&&(l[o]=t[o]);return l};function Me(t,n,l={}){const o=l,{window:r=Ie}=o,i=He(o,["window"]);let a;const u=$e(()=>r&&"ResizeObserver"in r),y=()=>{a&&(a.disconnect(),a=void 0)},h=e.watch(()=>ye(t),d=>{y(),u.value&&r&&d&&(a=new ResizeObserver(n),a.observe(d,i))},{immediate:!0,flush:"post"}),p=()=>{y(),h()};return Oe(p),{isSupported:u,stop:p}}function Fe(t,n={width:0,height:0},l={}){const{box:o="content-box"}=l,r=e.ref(n.width),i=e.ref(n.height);return Me(t,([a])=>{const u=o==="border-box"?a.borderBoxSize:o==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(r.value=u.reduce((y,{inlineSize:h})=>y+h,0),i.value=u.reduce((y,{blockSize:h})=>y+h,0)):(r.value=a.contentRect.width,i.value=a.contentRect.height)},l),e.watch(()=>ye(t),a=>{r.value=a?n.width:0,i.value=a?n.height:0}),{width:r,height:i}}var Se;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(Se||(Se={}));var ke=Object.defineProperty,be=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Ee=(t,n,l)=>n in t?ke(t,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[n]=l,je=(t,n)=>{for(var l in n||(n={}))Ve.call(n,l)&&Ee(t,l,n[l]);if(be)for(var l of be(n))Ne.call(n,l)&&Ee(t,l,n[l]);return t};je({linear:De},{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 we(t,n){const{scrollEndHook:l,itemHeight:o,overscan:r=5}=n,i=e.ref(null),a=Fe(i),u=e.ref(!0),y=ge(q,100);let h;const p=e.shallowRef(t),d=e.ref(0),c=e.ref({start:0,end:10});let s=0;const E=e.ref([]),w=e.computed(()=>{let{sum:m,height:_}={sum:0,height:0};return p.value.map((O,D)=>(typeof o=="number"?_=o:_=o(D),m+=_,{height:_,sum:m}))}),v=e.computed(()=>F(c.value.start)),S=e.computed(()=>typeof o=="number"?w.value.length*o:w.value[w.value.length-1]?.sum||0),L=e.computed(()=>{let m=E.value.length-r,_=Math.max(m-s,0);return E.value.slice(_,m)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(h)),e.watch([a.width,a.height,p],([m,_])=>{(m||_)&&j()},{deep:!0}),e.watch(d,()=>{I(),y()});function I(){u.value=!1}function q(){u.value=!0,l?.()}function j(){cancelAnimationFrame(h),h=requestAnimationFrame(M)}function M(){if(i.value){d.value=i.value.scrollTop,s=A();let m=$(d.value),_=m+s+r;m=m-r,m=m<0?0:m,_=_>p.value.length?p.value.length:_,c.value={start:m,end:_},E.value=p.value.slice(m,_).map((O,D)=>({data:O,index:D+m}))}}function $(m){let _=0,O=w.value.length-1,D=-1;for(;_<=O;){const x=Math.floor((_+O)/2);w.value[x].sum>=m?(D=x,O=x-1):_=x+1}return Math.max(0,D)}function A(){let m=0,_=0,O=R();for(let D=O;D<w.value.length&&(m++,_+=w.value[D].height,!(_>=a.height.value));D++);return m}function F(m){if(typeof o=="number")return m*o;let _=w.value[m];return _?_.sum-_.height:0}function k(m){return w.value[m]||{sum:0,height:0}}function R(){let m=c.value.start;return m>=r&&(m+=r),m}function z(m){if(i.value){const _=k(m);i.value.scrollTop=_.sum-_.height,M()}}const Q=e.computed(()=>({style:{width:"100%",height:`${S.value}px`,pointerEvents:u.value?void 0:"none"}})),V=e.computed(()=>({style:{transform:`translate3d(0, ${v.value}px, 0)`,"will-change":"transform"}})),K={overflowY:"auto"};return{list:E,visiableList:L,getItemHeightData:k,getoffsetTopIndex:$,totalHeight:S,clientHeight:a.height,scrollTo:z,scrollTop:d,isScrollEnd:u,containerProps:{ref:i,onScroll:()=>{j()},style:K},wrapperProps:Q,innerProps:V}}const ee=Symbol(),te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),re=Symbol(),ae=Symbol(),ie=Symbol(),se=Symbol();function ze(){const{voidFn:t,boolFn:n,boolRef:l,arrayRef:o}={voidFn:s=>{},boolFn:s=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},r=e.inject(oe,o),i=e.inject(ne,n),a=e.inject(ie,l),u=e.inject(te,t),y=e.inject(ee,t),h=e.inject(le,t),p=e.inject(re,t),d=e.inject(ae,t),c=e.inject(se,t);return{selected:r,isSelected:i,isAllSelected:a,toggle:u,toggleAll:y,select:h,selectAll:p,unselect:d,unselectAll:c}}function Ke(t,n){const l=e.ref({}),o=e.computed(()=>t.value.filter(c=>l.value[c[n]])),r=e.computed(()=>o.value.length!=0&&Object.keys(l.value).length==t.value.length);function i(){t.value.forEach(c=>{l.value[c[n]]=!0})}function a(){l.value={}}function u(c){c.forEach(s=>{l.value[s[n]]||(l.value[s[n]]=!0)})}function y(c){c.forEach(s=>{l.value[s[n]]&&delete l.value[s[n]]})}function h(c){return!!l.value[c[n]]}function p(c){c.forEach(s=>{h(s)?delete l.value[s[n]]:l.value[s[n]]=!0})}function d(){r.value?a():i()}return e.provide(ee,d),e.provide(te,p),e.provide(ne,h),e.provide(oe,o),e.provide(le,u),e.provide(re,i),e.provide(ae,y),e.provide(ie,r),e.provide(se,a),{selected:o,select:u,selectAll:i,unselect:y,unselectAll:a,toggle:p,toggleAll:d,isSelected:h,isAllSelected:r}}function ce(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ue({attribute:t,selectWay:n="colum",scrollOptions:l={},getSelectMap:o=()=>({})}){const{select:r=ce("\u9009\u62E9"),unselect:i=ce("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ce("\u53D6\u6D88\u5168\u9009")}=o();let u={};const y=e.computed(()=>ve(n==="colum"?H:G,50)),h=new Set,p=e.ref(!0),d=e.ref(),c=e.ref(!1),s=e.ref({x:0,y:0}),E=e.ref({x:0,y:0,scrollTop:0}),w=new ResizeObserver(f=>v.value=f[0].target.getBoundingClientRect()),v=e.ref({}),S=e.ref({top:0,height:0,sync(f=!1){S.value.top=d.value?.scrollTop||0,f&&(S.value.height=d.value?.scrollHeight||0)}}),L=e.computed(()=>c.value?{left:Math.min(s.value.x,E.value.x)-v.value.left,top:Math.min(s.value.y,E.value.y)-v.value.top,width:Math.abs(s.value.x-E.value.x),height:Math.abs(s.value.y-E.value.y)}:{left:0,top:0,width:0,height:0}),{margin:I=50,startSpeed:q=30,maxSpeed:j=30}=l;let M;const $=I,A=q,F=j,k=f=>f**1;let R=0;function z(f){if(cancelAnimationFrame(M),R=Q(f),R=Math.max(Math.min(R,F),-F),R!==0){const g=d.value;if(!g||!c.value)return;const B=S.value.height-v.value.height;let C=S.value.top+Number(R);C=Math.min(Math.max(0,C),B),g.scrollTop=C,K(),M=requestAnimationFrame(()=>z(f))}}function Q(f){if(d.value){const B=v.value,C=B.bottom-f;if(C<$)return A*k(1-C/$);const P=f-B.top;if(P<$)return-A*k(1-P/$)}return 0}function V(f){const g={...L.value,right:0,bottom:0};return g.left+=v.value.left,g.top+=v.value.top-S.value.top,g.right=g.width+g.left,g.bottom=g.height+g.top,g.left<f.right&&g.right>f.left&&g.top<f.bottom&&g.bottom>f.top}function K(){S.value.sync();const{top:f,height:g}=S.value;E.value.y=Math.min(g+v.value.top,E.value.y+f-E.value.scrollTop),E.value.scrollTop=f}function m(f,g,B="dynamic-styles"){let C=document.getElementById(B);C||(C=document.createElement("style"),C.id=B,document.head.appendChild(C));const P=C.sheet.cssRules,U=P.length,_t=`${f} { ${g} }`;for(let fe=0;fe<U;fe++){const Le=P[fe];if(Le.selectorText===f&&Le.style.cssText===g)return}C.sheet.insertRule(_t,U)}function _(f,g){p.value=!0,c.value=!0,S.value.height?S.value.sync():S.value.sync(!0),s.value.x=f,s.value.y=g+S.value.top,E.value.x=s.value.x,E.value.y=s.value.y,d.value?.classList.add("disable-scroll-behavior"),h.clear()}function O(f,g,B){!c.value||(p.value&&n==="colum"&&!T()&&(a(),p.value=!1),B?.(),z(g),E.value.x=Math.max(f,v.value.left),E.value.y=Math.min(g+S.value.top,S.value.height+v.value.top),E.value.scrollTop=S.value.top,y.value())}function D(){c.value=!1,d.value?.classList.remove("disable-scroll-behavior")}function x(){!c.value||(R||K(),y.value())}function T(){if(!c.value)return!1;const{width:f,height:g}=L.value;return!(Math.max(f,g)>5)}function W(){T()&&a()}function H(){T()||d.value?.querySelectorAll(`[${t}]`).forEach(f=>{u[`${t}`]=f.getAttribute(`${t}`),V(f.getBoundingClientRect())?r([u]):i([u])})}function G(){const f=[];let g=null,B=0;d.value?.querySelectorAll(`[${t}]`).forEach((C,P)=>{const U=C.getAttribute(`${t}`);f.push(U),V(C.getBoundingClientRect())?(g===null&&(g=P),g=Math.min(g,P),B=Math.max(B,P)):(u[`${t}`]=U,h.has(U)&&i([u]))});for(let C=g;C<B+1;C++)u[`${t}`]=f[C],r([u]),h.add(f[C])}function X(f){return!f?.value||(d.value=f.value,!d?.value)?!1:(w.observe(d.value),m(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:X,dragStart:_,dragMove:O,dragEnd:D,onScroll:x,isSingleClick:T,cancelSelectAllBySingleClick:W,selectFn:y,selectRange:L,isPressing:c,containerEl:d,observer:w}}function We(t){const n=ue(t),{observer:l,selectRange:o}=n,{onScroll:r,dragStart:i,dragMove:a,dragEnd:u,cancelSelectAllBySingleClick:y}=n,h=e.computed(()=>({left:`${o.value.left}px`,top:`${o.value.top}px`,width:`${o.value.width}px`,height:`${o.value.height}px`})),p=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"absolute z-50 bg-blue-200 opacity-50",style:h.value})}});function d(v){v.button===0&&i(v.x,v.y)}function c(v){a(v.x,v.y)}function s(v){v.composedPath().some(L=>L?.getAttribute?.(t.attribute))||y(),u()}function E(v){try{if(!n.init(v))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",s)}catch(S){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",S)}}function w(){l.disconnect(),n.containerEl.value?.removeEventListener("scroll",r),n.containerEl.value?.removeEventListener("mousedown",d),window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",s)}return{init:E,unMount:w}}function Ue(t,n,l=600){const o=ue({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=o,{onScroll:i,dragStart:a,dragMove:u,dragEnd:y}=o;let h;function p(){clearTimeout(h)}function d(v){p(),v.composedPath().some(L=>!!L?.getAttribute?.(t.attribute))&&(h=setTimeout(()=>{const{clientX:L,clientY:I}=v.targetTouches[0];a(L,I),n?.(),u(L,I,()=>v.preventDefault()),v.preventDefault()},l))}function c(v){p();const{clientX:S,clientY:L}=v.targetTouches[0];u(S,L,()=>v.preventDefault())}function s(){p(),y()}function E(v){try{if(!o.init(v))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!o.containerEl?.value)return!1;o.containerEl.value?.addEventListener("scroll",i),o.containerEl.value?.addEventListener("touchstart",d),o.containerEl.value?.addEventListener("touchmove",c),window.addEventListener("touchcancel",s),window.addEventListener("touchend",s)}catch(S){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",S)}}function w(){r.disconnect(),o.containerEl.value?.removeEventListener("scroll",i),o.containerEl.value?.removeEventListener("touchstart",d),o.containerEl.value?.removeEventListener("touchmove",c),window.removeEventListener("touchcancel",s),window.removeEventListener("touchEnd",s)}return{init:E,unMount:w}}const Ce=Symbol(),qe=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 l=t,o=()=>{l.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Ce,()=>n("update:visiable",!1)),(r,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:o,class:"lzc-modal"},[e.createElementVNode("div",{onClick:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],2)])):e.createCommentVNode("",!0)]),_:3}))}}),bt="",N=(t,n)=>{const l=t.__vccOpts||t;for(const[o,r]of n)l[o]=r;return l},Qe=N(qe,[["__scopeId","data-v-e171c24d"]]);function Ye(t){function n(l,o){const r=document.createElement("div"),i={setup(){return()=>e.h(Qe,{visiable:!0,"onUpdate:visiable":()=>{r?.remove()},...t},{default:()=>e.h(l,o)})}};return document.body.appendChild(r),e.render(e.h(i),r),{close:()=>r?.remove()}}return{create:n}}const Ge={class:"delay-load"},Xe=e.defineComponent({__name:"DelayWrapper",props:{delay:{default:1300}},setup(t){const n=t;e.useCssVars(o=>({"3b99be8e":l}));const l=`${n.delay}ms`;return(o,r)=>(e.openBlock(),e.createElementBlock("div",Ge,[e.renderSlot(o.$slots,"default",{},void 0,!0)]))}}),Et="",Ze=N(Xe,[["__scopeId","data-v-86c9cef1"]]);function Je({component:t,componentProps:n,delay:l=300}){const o=e.ref(!0),r=e.defineComponent({setup(){return()=>o.value&&e.h(Ze,{delay:l},{default:()=>e.h(t,n)})}});function i(){o.value=!0}function a(){o.value=!1}return{LoadingComp:r,loading:o,load:i,unload:a}}const et=e.defineComponent({__name:"Toast",props:{message:null,position:null},setup(t){const n=t,l=e.ref(),o=e.ref(),r=e.ref(),i=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(${i.value}% - ${r.value}px)`,left:`calc(50% - ${o.value}px)`})),u=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));return e.nextTick(()=>{o.value=l.value.offsetWidth/2,r.value=l.value.offsetHeight/2}),(y,h)=>(e.openBlock(),e.createElementBlock("div",{id:"toastWrapper",ref_key:"toastWrapper",ref:l,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))}}),wt="",tt=N(et,[["__scopeId","data-v-15ab4094"]]),Te={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500};class nt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(tt),{...Te,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const l=this.options.duration||Te.duration;setTimeout(()=>{this.dismiss()},l)}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 ot=["xlink:href","fill","color"],lt=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,l=e.computed(()=>`#${n.prefix}-${n.name}`),o=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,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle(e.unref(o))},[e.createElementVNode("use",{"xlink:href":e.unref(l),fill:t.color,color:t.color},null,8,ot)],4))}});function rt(t){const{containerEl:n,sliderEl:l,autoHeight:o,performance:r={},maxHeightRatio:i=.9}=t,a=e.ref(!0),u=ge(F,100);let y,h="";const p=e.ref(0),d=e.ref(0),c=e.ref(0),s=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),E=e.ref({clientHeight:0}),w=e.computed(()=>!!d.value),v=e.computed(()=>s.value.scrollHeight>s.value.clientHeight),S=e.computed(()=>s.value.clientHeight-E.value.clientHeight),L=e.computed(()=>s.value.scrollHeight-s.value.clientHeight),I=e.computed(()=>Math.max(s.value.clientHeight/s.value.scrollHeight,.05)),q=e.computed(()=>I.value>i?0:I.value*s.value.clientHeight),j=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:o?`${q.value}px`:void 0}));function M(x){A(),d.value=x.clientY-l.value.getBoundingClientRect().top||1,h=getComputedStyle(n.value).scrollBehavior,h==="smooth"&&(n.value.style.scrollBehavior="unset")}function $(){n.value.style.scrollBehavior=h,d.value=0,u()}function A(){a.value=!1}function F(){w.value||(a.value=!0)}function k(x){if(!w.value)return;let T=x.clientY-s.value.top-d.value;T<0?c.value=0:T>=S.value?c.value=S.value:c.value=T,n.value.scrollTo({top:c.value/S.value*L.value})}function R(){w.value||z()}function z(){cancelAnimationFrame(y),y=requestAnimationFrame(Q)}function Q(){n.value&&(p.value=r.scrollTop?.value??n.value.scrollTop,c.value=p.value/L.value*S.value)}function V(x){let T="addEventListener";x==="add"?T="addEventListener":T="removeEventListener",l.value?.[T]("pointerdown",M,{passive:!0}),window[T]("pointermove",k,{passive:!0}),window[T]("pointerup",$,{passive:!0})}const K=new MutationObserver(x=>{x.map(W=>W.oldValue).join().includes("height")&&m()});function m(){s.value.top=n.value?.getBoundingClientRect().top??0,s.value.scrollHeight=n.value?.scrollHeight??0,s.value.clientHeight=n.value?.clientHeight??0}function _(){A(),setTimeout(()=>{E.value.clientHeight=l.value?.clientHeight??0,F()},150)}function O(x,T,W="dynamic-styles"){let H=document.getElementById(W);H||(H=document.createElement("style"),H.id=W,document.head.appendChild(H));const G=H.sheet.cssRules,X=G.length,f=`${x} { ${T} }`;for(let g=0;g<X;g++){const B=G[g];if(B.selectorText===x&&B.style.cssText===T)return}H.sheet.insertRule(f,X)}function D(){n.value&&l.value?(O(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),O(".hide-scrollbar::-webkit-scrollbar","display: none"),n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",R,{passive:!0}),V("add"),K.observe(n.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{m()},100),_()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:l})}return e.watch(p,()=>{A(),u()}),{isScrollEnd:a,isDragSlider:w,offsetTop:c,scrollTop:p,scrollable:v,sliderPos:j,init:D,modifySliderEventListener:V}}const at=(t=>(e.pushScopeId("data-v-edec7292"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),it=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},performance:null},setup(t,{expose:n}){const l=t,o=!!e.useSlots().default,r=e.ref(null),i=e.computed(()=>l.containerEl),a=rt({containerEl:i,sliderEl:r,autoHeight:o?l.autoHeight:!0,performance:l.performance}),{scrollable:u,isScrollEnd:y,sliderPos:h}=a,p=e.ref(!1),d=l.autoHide?e.computed(()=>p.value||!y.value):e.computed(()=>u.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function c(){p.value=!0}function s(){p.value=!1}return n({uScrollBarReturn:a}),(E,w)=>(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:s,style:e.normalizeStyle(e.unref(h))},[e.renderSlot(E.$slots,"default",{},()=>[at],!0)],36),[[e.vShow,e.unref(d)]])]),_:3}))}}),Tt="",st=N(it,[["__scopeId","data-v-edec7292"]]),ct={class:"virtualListWrapper"},ut={inheritAttrs:!1},dt=e.defineComponent({...ut,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10}},emits:["scrollEnd"],setup(t,{expose:n,emit:l}){const o=t,r=we(e.toRef(o,"data"),{itemHeight:p=>o.itemHeight(o.data[p]),overscan:o.overscan,scrollEndHook:()=>{l("scrollEnd")}}),{list:i,containerProps:a,wrapperProps:u,innerProps:y,getItemHeightData:h}=r;return n({vListReturn:r}),(p,d)=>(e.openBlock(),e.createElementBlock("div",ct,[e.createElementVNode("div",e.mergeProps({onScrollPassive:d[0]||(d[0]=(...c)=>e.unref(a).onScroll&&e.unref(a).onScroll(...c)),ref:e.unref(a).ref,class:"virtualList"},p.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(y))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({index:c,data:s})=>(e.openBlock(),e.createElementBlock("div",{key:c,style:e.normalizeStyle({height:`${e.unref(h)(c).height}px`,display:"flex"})},[e.renderSlot(p.$slots,"default",{data:s,index:c},void 0,!0)],4))),128))],16)],16)],16)]))}}),Lt="",ft=N(dt,[["__scopeId","data-v-4ba97cce"]]),de=t=>(e.pushScopeId("data-v-40e00f20"),t=t(),e.popScopeId(),t),pt={style:{position:"absolute"}},ht=de(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),mt=["width","height"],gt=[de(()=>e.createElementVNode("title",null,"logo",-1)),de(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],vt=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(o=>({"703ef503":l}));const l=`${n.duration}ms`;return(o,r)=>(e.openBlock(),e.createElementBlock("div",pt,[ht,(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"},gt,8,mt))]))}}),Dt="",yt=N(vt,[["__scopeId","data-v-40e00f20"]]);b.Loading=yt,b.ScrollBar=st,b.SvgIcon=lt,b.ToastCreator=nt,b.VirtualList=ft,b.allSelectedKey=oe,b.closeDialogKey=Ce,b.dialogController=Ye,b.isAllSelectedKey=ie,b.isSelectedKey=ne,b.selectAllKey=re,b.selectKey=le,b.toggleAllKey=ee,b.toggleKey=te,b.unselectAllKey=se,b.unselectKey=ae,b.useDelayLoad=Je,b.useDragSelect=ue,b.useDragSelectByMobile=Ue,b.useDragSelectByPc=We,b.useSelectable=Ke,b.useSelectableInjectors=ze,b.useVirtualList=we,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(S,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(S=typeof globalThis<"u"?globalThis:S||self,e(S.ui={},S.Vue))})(this,function(S,e){"use strict";var he;const Z=typeof window<"u";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 me(t,n){function l(...o){t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})}return l}function $e(t,n={}){let l,o;return i=>{const a=Y(t),f=Y(n.maxWait);if(l&&clearTimeout(l),a<=0||f!==void 0&&f<=0)return o&&(clearTimeout(o),o=null),i();f&&!o&&(o=setTimeout(()=>{l&&clearTimeout(l),o=null,i()},f)),l=setTimeout(()=>{o&&clearTimeout(o),o=null,i()},a)}}function Oe(t,n=!0,l=!0){let o=0,r,i=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return h=>{const c=Y(t),p=Date.now()-o;if(a(),c<=0)return o=Date.now(),h();p>c&&(l||!i)?(o=Date.now(),h()):n&&(r=setTimeout(()=>{o=Date.now(),i=!0,a(),h()},c)),!l&&!r&&(r=setTimeout(()=>i=!0,c)),i=!1}}function De(t){return t}function ge(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ve(t,n=200,l={}){return me($e(n,l),t)}function _e(t,n=200,l=!1,o=!0){return me(Oe(n,l,o),t)}function ye(t,n=!0){e.getCurrentInstance()?e.onMounted(t):n?t():e.nextTick(t)}function Ee(t){var n;const l=Y(t);return(n=l?.$el)!=null?n:l}const Re=Z?window:void 0,Ie=Z?window.document:void 0;function ke(t,n=!1){const l=e.ref(),o=()=>l.value=Boolean(t());return o(),ye(o,n),l}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];var Se=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ae=(t,n)=>{var l={};for(var o in t)Pe.call(t,o)&&n.indexOf(o)<0&&(l[o]=t[o]);if(t!=null&&Se)for(var o of Se(t))n.indexOf(o)<0&&Me.call(t,o)&&(l[o]=t[o]);return l};function He(t,n,l={}){const o=l,{window:r=Re}=o,i=Ae(o,["window"]);let a;const f=ke(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},c=e.watch(()=>Ee(t),d=>{h(),f.value&&r&&d&&(a=new ResizeObserver(n),a.observe(d,i))},{immediate:!0,flush:"post"}),p=()=>{h(),c()};return ge(p),{isSupported:f,stop:p}}function Fe(t,n={width:0,height:0},l={}){const{box:o="content-box"}=l,r=e.ref(n.width),i=e.ref(n.height);return He(t,([a])=>{const f=o==="border-box"?a.borderBoxSize:o==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;f?(r.value=f.reduce((h,{inlineSize:c})=>h+c,0),i.value=f.reduce((h,{blockSize:c})=>h+c,0)):(r.value=a.contentRect.width,i.value=a.contentRect.height)},l),e.watch(()=>Ee(t),a=>{r.value=a?n.width:0,i.value=a?n.height:0}),{width:r,height:i}}var we;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(we||(we={}));let Ve=0;function Ne(t,n={}){const l=e.ref(!1),{document:o=Ie,immediate:r=!0,manual:i=!1,id:a=`vueuse_styletag_${++Ve}`}=n,f=e.ref(t);let h=()=>{};const c=()=>{if(!o)return;const d=o.getElementById(a)||o.createElement("style");d.type="text/css",d.id=a,n.media&&(d.media=n.media),o.head.appendChild(d),!l.value&&(h=e.watch(f,u=>{d.innerText=u},{immediate:!0}),l.value=!0)},p=()=>{!o||!l.value||(h(),o.head.removeChild(o.getElementById(a)),l.value=!1)};return r&&!i&&ye(c),i||ge(p),{id:a,css:f,unload:p,load:c,isLoaded:e.readonly(l)}}var ze=Object.defineProperty,be=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,Ce=(t,n,l)=>n in t?ze(t,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[n]=l,We=(t,n)=>{for(var l in n||(n={}))je.call(n,l)&&Ce(t,l,n[l]);if(be)for(var l of be(n))Ke.call(n,l)&&Ce(t,l,n[l]);return t};We({linear:De},{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 Te(t,n){const{scrollEndHook:l,itemHeight:o,overscan:r=5}=n,i=e.ref(null),a=Fe(i),f=e.ref(!0),h=ve(L,100);let c;const p=e.shallowRef(t),d=e.ref(0),u=e.ref({start:0,end:10});let s=0;const w=e.ref([]),b=e.computed(()=>{let{sum:g,height:E}={sum:0,height:0};return p.value.map((R,D)=>(typeof o=="number"?E=o:E=o(D),g+=E,{height:E,sum:g}))}),_=e.computed(()=>N(u.value.start)),y=e.computed(()=>typeof o=="number"?b.value.length*o:b.value[b.value.length-1]?.sum||0),T=e.computed(()=>{let g=w.value.length-r,E=Math.max(g-s,0);return w.value.slice(E,g)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(c)),e.watch([a.width,a.height,p],([g,E])=>{(g||E)&&F()},{deep:!0}),e.watch(d,()=>{B(),h()});function B(){f.value=!1}function L(){f.value=!0,l?.()}function F(){cancelAnimationFrame(c),c=requestAnimationFrame(V)}function V(){if(i.value){d.value=i.value.scrollTop,s=A();let g=k(d.value),E=g+s+r;g=g-r,g=g<0?0:g,E=E>p.value.length?p.value.length:E,u.value={start:g,end:E},w.value=p.value.slice(g,E).map((R,D)=>({data:R,index:D+g}))}}function k(g){let E=0,R=b.value.length-1,D=-1;for(;E<=R;){const $=Math.floor((E+R)/2);b.value[$].sum>=g?(D=$,R=$-1):E=$+1}return Math.max(0,D)}function A(){let g=0,E=0,R=I();for(let D=R;D<b.value.length&&(g++,E+=b.value[D].height,!(E>=a.height.value));D++);return g}function N(g){if(typeof o=="number")return g*o;let E=b.value[g];return E?E.sum-E.height:0}function z(g){return b.value[g]||{sum:0,height:0}}function I(){let g=u.value.start;return g>=r&&(g+=r),g}function K(g){if(i.value){const E=z(g);i.value.scrollTop=E.sum-E.height,V()}}const Q=e.computed(()=>({style:{width:"100%",height:`${y.value}px`,pointerEvents:f.value?void 0:"none"}})),j=e.computed(()=>({style:{transform:`translate3d(0, ${_.value}px, 0)`,"will-change":"transform"}})),W={overflowY:"auto"};return{list:w,visiableList:T,getItemHeightData:z,getoffsetTopIndex:k,totalHeight:y,clientHeight:a.height,scrollTo:K,scrollTop:d,isScrollEnd:f,containerProps:{ref:i,onScroll:()=>{F()},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 qe(){const{voidFn:t,boolFn:n,boolRef:l,arrayRef:o}={voidFn:s=>{},boolFn:s=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},r=e.inject(le,o),i=e.inject(oe,n),a=e.inject(ie,l),f=e.inject(ne,t),h=e.inject(te,t),c=e.inject(re,t),p=e.inject(ae,t),d=e.inject(se,t),u=e.inject(ce,t);return{selected:r,isSelected:i,isAllSelected:a,toggle:f,toggleAll:h,select:c,selectAll:p,unselect:d,unselectAll:u}}function Ue(t,n){const l=e.ref({}),o=e.computed(()=>t.value.filter(u=>l.value[u[n]])),r=e.computed(()=>o.value.length!=0&&Object.keys(l.value).length==t.value.length);function i(){t.value.forEach(u=>{l.value[u[n]]=!0})}function a(){l.value={}}function f(u){u.forEach(s=>{l.value[s[n]]||(l.value[s[n]]=!0)})}function h(u){u.forEach(s=>{l.value[s[n]]&&delete l.value[s[n]]})}function c(u){return!!l.value[u[n]]}function p(u){u.forEach(s=>{c(s)?delete l.value[s[n]]:l.value[s[n]]=!0})}function d(){r.value?a():i()}return e.provide(te,d),e.provide(ne,p),e.provide(oe,c),e.provide(le,o),e.provide(re,f),e.provide(ae,i),e.provide(se,h),e.provide(ie,r),e.provide(ce,a),{selected:o,select:f,selectAll:i,unselect:h,unselectAll:a,toggle:p,toggleAll:d,isSelected:c,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:l={},getSelectMap:o=()=>({})}){const{select:r=ue("\u9009\u62E9"),unselect:i=ue("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ue("\u53D6\u6D88\u5168\u9009")}=o();let f={};const h=e.computed(()=>_e(n==="colum"?H:G,50)),c=new Set,p=e.ref(!0),d=e.ref(),u=e.ref(!1),s=e.ref({x:0,y:0}),w=e.ref({x:0,y:0,scrollTop:0}),b=new ResizeObserver(m=>_.value=m[0].target.getBoundingClientRect()),_=e.ref({}),y=e.ref({top:0,height:0,sync(m=!1){y.value.top=d.value?.scrollTop||0,m&&(y.value.height=d.value?.scrollHeight||0)}}),T=e.computed(()=>u.value?{left:Math.min(s.value.x,w.value.x)-_.value.left,top:Math.min(s.value.y,w.value.y)-_.value.top,width:Math.abs(s.value.x-w.value.x),height:Math.abs(s.value.y-w.value.y)}:{left:0,top:0,width:0,height:0}),{margin:B=50,startSpeed:L=30,maxSpeed:F=30}=l;let V;const k=B,A=L,N=F,z=m=>m**1;let I=0;function K(m){if(cancelAnimationFrame(V),I=Q(m),I=Math.max(Math.min(I,N),-N),I!==0){const v=d.value;if(!v||!u.value)return;const O=y.value.height-_.value.height;let C=y.value.top+Number(I);C=Math.min(Math.max(0,C),O),v.scrollTop=C,W(),V=requestAnimationFrame(()=>K(m))}}function Q(m){if(d.value){const O=_.value,C=O.bottom-m;if(C<k)return A*z(1-C/k);const P=m-O.top;if(P<k)return-A*z(1-P/k)}return 0}function j(m){const v={...T.value,right:0,bottom:0};return v.left+=_.value.left,v.top+=_.value.top-y.value.top,v.right=v.width+v.left,v.bottom=v.height+v.top,v.left<m.right&&v.right>m.left&&v.top<m.bottom&&v.bottom>m.top}function W(){y.value.sync();const{top:m,height:v}=y.value;w.value.y=Math.min(v+_.value.top,w.value.y+m-w.value.scrollTop),w.value.scrollTop=m}function g(m,v,O="dynamic-styles"){let C=document.getElementById(O);C||(C=document.createElement("style"),C.id=O,document.head.appendChild(C));const P=C.sheet.cssRules,U=P.length,Ft=`${m} { ${v} }`;for(let pe=0;pe<U;pe++){const xe=P[pe];if(xe.selectorText===m&&xe.style.cssText===v)return}C.sheet.insertRule(Ft,U)}function E(m,v){p.value=!0,u.value=!0,y.value.height?y.value.sync():y.value.sync(!0),s.value.x=m,s.value.y=v+y.value.top,w.value.x=s.value.x,w.value.y=s.value.y,d.value?.classList.add("disable-scroll-behavior"),c.clear()}function R(m,v,O){!u.value||(p.value&&n==="colum"&&!x()&&(a(),p.value=!1),O?.(),K(v),w.value.x=Math.max(m,_.value.left),w.value.y=Math.min(v+y.value.top,y.value.height+_.value.top),w.value.scrollTop=y.value.top,h.value())}function D(){u.value=!1,d.value?.classList.remove("disable-scroll-behavior")}function $(){!u.value||(I||W(),h.value())}function x(){if(!u.value)return!1;const{width:m,height:v}=T.value;return!(Math.max(m,v)>5)}function q(){x()&&a()}function H(){x()||d.value?.querySelectorAll(`[${t}]`).forEach(m=>{f[`${t}`]=m.getAttribute(`${t}`),j(m.getBoundingClientRect())?r([f]):i([f])})}function G(){const m=[];let v=null,O=0;d.value?.querySelectorAll(`[${t}]`).forEach((C,P)=>{const U=C.getAttribute(`${t}`);m.push(U),j(C.getBoundingClientRect())?(v===null&&(v=P),v=Math.min(v,P),O=Math.max(O,P)):(f[`${t}`]=U,c.has(U)&&i([f]))});for(let C=v;C<O+1;C++)f[`${t}`]=m[C],r([f]),c.add(m[C])}function X(m){return!m?.value||(d.value=m.value,!d?.value)?!1:(b.observe(d.value),g(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:X,dragStart:E,dragMove:R,dragEnd:D,onScroll:$,isSingleClick:x,cancelSelectAllBySingleClick:q,selectFn:h,selectRange:T,isPressing:u,containerEl:d,observer:b}}function Qe(t){const n=de(t),{observer:l,selectRange:o}=n,{onScroll:r,dragStart:i,dragMove:a,dragEnd:f,cancelSelectAllBySingleClick:h}=n,c=e.computed(()=>({left:`${o.value.left}px`,top:`${o.value.top}px`,width:`${o.value.width}px`,height:`${o.value.height}px`})),p=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"absolute z-50 bg-blue-200 opacity-50",style:c.value})}});function d(_){_.button===0&&i(_.x,_.y)}function u(_){a(_.x,_.y)}function s(_){_.composedPath().some(T=>T?.getAttribute?.(t.attribute))||h(),f()}function w(_){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",u),window.addEventListener("mouseup",s)}catch(y){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",y)}}function b(){l.disconnect(),n.containerEl.value?.removeEventListener("scroll",r),n.containerEl.value?.removeEventListener("mousedown",d),window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",s)}return{init:w,unMount:b}}function Ye(t,n,l=600){const o=de({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=o,{onScroll:i,dragStart:a,dragMove:f,dragEnd:h}=o;let c;function p(){clearTimeout(c)}function d(_){p(),_.composedPath().some(T=>!!T?.getAttribute?.(t.attribute))&&(c=setTimeout(()=>{const{clientX:T,clientY:B}=_.targetTouches[0];a(T,B),n?.(),f(T,B,()=>_.preventDefault()),_.preventDefault()},l))}function u(_){p();const{clientX:y,clientY:T}=_.targetTouches[0];f(y,T,()=>_.preventDefault())}function s(){p(),h()}function w(_){try{if(!o.init(_))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!o.containerEl?.value)return!1;o.containerEl.value?.addEventListener("scroll",i),o.containerEl.value?.addEventListener("touchstart",d),o.containerEl.value?.addEventListener("touchmove",u),window.addEventListener("touchcancel",s),window.addEventListener("touchend",s)}catch(y){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",y)}}function b(){r.disconnect(),o.containerEl.value?.removeEventListener("scroll",i),o.containerEl.value?.removeEventListener("touchstart",d),o.containerEl.value?.removeEventListener("touchmove",u),window.removeEventListener("touchcancel",s),window.removeEventListener("touchEnd",s)}return{init:w,unMount:b}}const Be=Symbol(),Ge=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 l=t,o=()=>{l.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Be,()=>n("update:visiable",!1)),(r,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:o,class:"lzc-modal"},[e.createElementVNode("div",{onClick:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],2)])):e.createCommentVNode("",!0)]),_:3}))}}),Nt="",M=(t,n)=>{const l=t.__vccOpts||t;for(const[o,r]of n)l[o]=r;return l},Xe=M(Ge,[["__scopeId","data-v-e171c24d"]]);function Ze(t){function n(l,o){const r=document.createElement("div"),i={setup(){return()=>e.h(Xe,{visiable:!0,"onUpdate:visiable":()=>{r?.remove()},...t},{default:()=>e.h(l,o)})}};return document.body.appendChild(r),e.render(e.h(i),r),{close:()=>r?.remove()}}return{create:n}}function Je({component:t,componentProps:n,delay:l=300}){const o=`${l}ms`,r=e.ref(!1),{load:i}=Ne(`@keyframes delayLoad {
2
+ to {
3
+ opacity: 1;
4
+ }
5
+ }
6
+ .delay-load {
7
+ opacity: 0;
8
+ animation: delayLoad 0s ${o} forwards;
9
+ }`),a=e.defineComponent({setup(){const c=e.h(t,n);return e.onMounted(()=>{i(),c.el&&c.el.classList.add("delay-load")}),()=>r.value&&c}});function f(){r.value=!0}function h(){r.value=!1}return{LoadingComp:a,loading:r,load:f,unload:h}}const zt="",et={},tt={class:"wrapper"},nt=[e.createElementVNode("div",{class:"loading"},null,-1)];function ot(t,n){return e.openBlock(),e.createElementBlock("div",tt,nt)}const lt=M(et,[["render",ot]]),Kt="",rt={},at=[(t=>(e.pushScopeId("data-v-9d3ce674"),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=M(rt,[["render",st],["__scopeId","data-v-9d3ce674"]]),ct=e.defineComponent({__name:"Toast",props:{message:null,position:null},setup(t){const n=t,l=e.ref(),o=e.ref(),r=e.ref(),i=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(${i.value}% - ${r.value}px)`,left:`calc(50% - ${o.value}px)`})),f=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));return e.nextTick(()=>{o.value=l.value.offsetWidth/2,r.value=l.value.offsetHeight/2}),(h,c)=>(e.openBlock(),e.createElementBlock("div",{id:"toastWrapper",ref_key:"toastWrapper",ref:l,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(f))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],4))}}),Ut="",ut=M(ct,[["__scopeId","data-v-15ab4094"]]),Le={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),{...Le,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const l=this.options.duration||Le.duration;setTimeout(()=>{this.dismiss()},l)}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,l=e.computed(()=>`#${n.prefix}-${n.name}`),o=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,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle(e.unref(o))},[e.createElementVNode("use",{"xlink:href":e.unref(l),fill:t.color,color:t.color},null,8,ft)],4))}});function ht(t){const{containerEl:n,sliderEl:l,autoHeight:o,performance:r={},maxHeightRatio:i=.9}=t,a=e.ref(!0),f=ve(N,100);let h,c="";const p=e.ref(0),d=e.ref(0),u=e.ref(0),s=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),w=e.ref({clientHeight:0}),b=e.computed(()=>!!d.value),_=e.computed(()=>s.value.scrollHeight>s.value.clientHeight),y=e.computed(()=>s.value.clientHeight-w.value.clientHeight),T=e.computed(()=>s.value.scrollHeight-s.value.clientHeight),B=e.computed(()=>Math.max(s.value.clientHeight/s.value.scrollHeight,.05)),L=e.computed(()=>B.value>i?0:B.value*s.value.clientHeight),F=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${u.value}px,0)`,height:o?`${L.value}px`:void 0}));function V($){A(),d.value=$.clientY-l.value.getBoundingClientRect().top||1,c=getComputedStyle(n.value).scrollBehavior,c==="smooth"&&(n.value.style.scrollBehavior="unset")}function k(){n.value.style.scrollBehavior=c,d.value=0,f()}function A(){a.value=!1}function N(){b.value||(a.value=!0)}function z($){if(!b.value)return;let x=$.clientY-s.value.top-d.value;x<0?u.value=0:x>=y.value?u.value=y.value:u.value=x,n.value.scrollTo({top:u.value/y.value*T.value})}function I(){b.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(Q)}function Q(){n.value&&(p.value=r.scrollTop?.value??n.value.scrollTop,u.value=p.value/T.value*y.value)}function j($){let x="addEventListener";$==="add"?x="addEventListener":x="removeEventListener",l.value?.[x]("pointerdown",V,{passive:!0}),window[x]("pointermove",z,{passive:!0}),window[x]("pointerup",k,{passive:!0})}const W=new MutationObserver($=>{$.map(q=>q.oldValue).join().includes("height")&&g()});function g(){s.value.top=n.value?.getBoundingClientRect().top??0,s.value.scrollHeight=n.value?.scrollHeight??0,s.value.clientHeight=n.value?.clientHeight??0}function E(){A(),setTimeout(()=>{w.value.clientHeight=l.value?.clientHeight??0,N()},150)}function R($,x,q="dynamic-styles"){let H=document.getElementById(q);H||(H=document.createElement("style"),H.id=q,document.head.appendChild(H));const G=H.sheet.cssRules,X=G.length,m=`${$} { ${x} }`;for(let v=0;v<X;v++){const O=G[v];if(O.selectorText===$&&O.style.cssText===x)return}H.sheet.insertRule(m,X)}function D(){n.value&&l.value?(R(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),R(".hide-scrollbar::-webkit-scrollbar","display: none"),n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",I,{passive:!0}),j("add"),W.observe(n.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{g()},100),E()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:l})}return e.watch(p,()=>{A(),f()}),{isScrollEnd:a,isDragSlider:b,offsetTop:u,scrollTop:p,scrollable:_,sliderPos:F,init:D,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 l=t,o=!!e.useSlots().default,r=e.ref(null),i=e.computed(()=>l.containerEl),a=ht({containerEl:i,sliderEl:r,autoHeight:o?l.autoHeight:!0,performance:l.performance}),{scrollable:f,isScrollEnd:h,sliderPos:c}=a,p=e.ref(!1),d=l.autoHide?e.computed(()=>p.value||!h.value):e.computed(()=>f.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function u(){p.value=!0}function s(){p.value=!1}return n({uScrollBarReturn:a}),(w,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:u,onMouseleave:s,style:e.normalizeStyle(e.unref(c))},[e.renderSlot(w.$slots,"default",{},()=>[mt],!0)],36),[[e.vShow,e.unref(d)]])]),_:3}))}}),Yt="",vt=M(gt,[["__scopeId","data-v-edec7292"]]),_t=t=>(e.pushScopeId("data-v-09f2db7d"),t=t(),e.popScopeId(),t),yt={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=_t(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Tt={class:"pull-arrow"},Bt={key:1},Lt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,l="#2EC1CC",o=e.ref(-999),r=e.ref(1),i=e.ref(0),a=e.ref(.3),f=e.ref(!1),h=e.ref(0),c=e.ref(0),p=e.ref(0),d=e.ref(0),u=e.ref(0),s=e.ref(),w=e.computed(()=>n.scrollTop),b=e.computed(()=>({transition:`${d.value}ms`,transform:`translate3d(0,${o.value}px, 0) scale(${r.value})`})),_=e.computed(()=>({borderColor:l,transition:d.value,transform:`rotate(${100+i.value}deg)`,opacity:a.value}));e.watch(u,L=>{L===0&&(o.value=-50,a.value=.3)}),e.watch(c,L=>{u.value!==2&&(L===0&&(o.value=-50),L<=50&&L>0&&(o.value=L-45,i.value=Math.pow(L,1.5),L>15?f.value=!0:f.value=!1),L>50&&(o.value=5,a.value=1,u.value))});const y=L=>{n.refreshOff||!n?.refresh||u.value!==2&&w.value===0&&(h.value===0&&(h.value=L.touches[0].pageY),p.value=0,B.value.style.transition=`${p.value}ms`,d.value=0,c.value=L.touches[0].pageY-h.value,B.value.style.transform=`translate3d(0, ${c.value}px, 0)`)},T=()=>{n.refreshOff||!n?.refresh||u.value!==2&&(h.value=0,p.value=300,B.value.style.transition=`${p.value}ms`,c.value>50?(u.value=2,c.value=36,B.value.style.transform=`translate3d(0, ${c.value}px, 0)`,d.value=300,n?.refresh&&n?.refresh().then(()=>{s.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{s.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{u.value=0,c.value=0,B.value.style.transform=`translate3d(0, ${c.value}px, 0)`,setTimeout(()=>{s.value=void 0},d.value)},600)})):(c.value=0,B.value.style.transform=`translate3d(0, ${c.value}px, 0)`))},B=e.ref(null);return e.onMounted(()=>{B.value=document.querySelector(n.pullRefreshContainer),B.value.addEventListener("touchmove",y),B.value.addEventListener("touchend",T)}),(L,F)=>(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(b))},[s.value?(e.openBlock(),e.createElementBlock("div",Bt,e.toDisplayString(s.value),1)):(e.openBlock(),e.createElementBlock("div",Et,[u.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(_))},[e.createElementVNode("div",Tt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:f.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Gt="",xt=M(Lt,[["__scopeId","data-v-09f2db7d"]]),$t={class:"virtualListWrapper"},Ot={inheritAttrs:!1},Dt=e.defineComponent({...Ot,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:l}){const o=t,r=Te(e.toRef(o,"data"),{itemHeight:d=>o.itemHeight(o.data[d]),overscan:o.overscan,scrollEndHook:()=>{l("scrollEnd")}}),{list:i,containerProps:a,wrapperProps:f,innerProps:h,getItemHeightData:c,scrollTop:p}=r;return n({vListReturn:r}),(d,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(xt,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(p),pullRefreshContainer:".virtualListWrapper"},null,8,["refresh","refreshOff","scrollTop"]),e.createElementVNode("div",$t,[e.createElementVNode("div",e.mergeProps({onScrollPassive:u[0]||(u[0]=(...s)=>e.unref(a).onScroll&&e.unref(a).onScroll(...s)),ref:e.unref(a).ref,class:"virtualList"},d.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(f))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(h))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({index:s,data:w})=>(e.openBlock(),e.createElementBlock("div",{key:s,style:e.normalizeStyle({height:`${e.unref(c)(s).height}px`,display:"flex"})},[e.renderSlot(d.$slots,"default",{data:w,index:s},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Xt="",Rt=M(Dt,[["__scopeId","data-v-259e2930"]]),fe=t=>(e.pushScopeId("data-v-40e00f20"),t=t(),e.popScopeId(),t),It={style:{position:"absolute"}},kt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Pt=["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))],At=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(o=>({"703ef503":l}));const l=`${n.duration}ms`;return(o,r)=>(e.openBlock(),e.createElementBlock("div",It,[kt,(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,Pt))]))}}),en="",Ht=M(At,[["__scopeId","data-v-40e00f20"]]);S.BackgroundLoading=lt,S.DefaultLoading=it,S.Loading=Ht,S.ScrollBar=vt,S.SvgIcon=pt,S.ToastCreator=dt,S.VirtualList=Rt,S.allSelectedKey=le,S.closeDialogKey=Be,S.dialogController=Ze,S.isAllSelectedKey=ie,S.isSelectedKey=oe,S.selectAllKey=ae,S.selectKey=re,S.toggleAllKey=te,S.toggleKey=ne,S.unselectAllKey=ce,S.unselectKey=se,S.useDelayLoad=Je,S.useDragSelect=de,S.useDragSelectByMobile=Ye,S.useDragSelectByPc=Qe,S.useSelectable=Ue,S.useSelectableInjectors=qe,S.useVirtualList=Te,Object.defineProperties(S,{__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}@keyframes delayLoad-86c9cef1{to{opacity:1}}.delay-load[data-v-86c9cef1]{opacity:0;animation:delayLoad-86c9cef1 0s var(--3b99be8e) forwards}@keyframes slide-15ab4094{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-15ab4094]{animation:slide-15ab4094 .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}.virtualList[data-v-4ba97cce]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-4ba97cce]{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-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}.wrapper{width:84px;height:72px;position:absolute;top:calc(50% - 36px);left:calc(50% - 42px);z-index:999999999;background-color:rgba(0,0,0,0,8);border-radius:8px;display:flex;justify-content:center;align-items:center}.loading{width:32px;height:32px;border-radius:50%;display:inline-block;border-top:3px solid #909090;border-right:3px solid transparent;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ldio-mm5gwljcryb[data-v-9d3ce674]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-9d3ce674]{box-sizing:content-box;position:absolute;top:calc(50% - 12px);left:calc(50% - 12px);width:24px;height:24px;border:4px solid #ddd;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-9d3ce674 1s linear infinite}@keyframes ldio-mm5gwljcryb-9d3ce674{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-9d3ce674]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}@keyframes slide-15ab4094{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-15ab4094]{animation:slide-15ab4094 .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-09f2db7d]{position:relative}.pull-refresh-box[data-v-09f2db7d]{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-09f2db7d]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-09f2db7d]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-09f2db7d 3s infinite linear forwards}@keyframes boxs-09f2db7d{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-09f2db7d]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-09f2db7d]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-09f2db7d 3s infinite linear forwards}@keyframes pr1A-09f2db7d{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-09f2db7d]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-09f2db7d]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-09f2db7d 3s infinite linear forwards}@keyframes pr2A-09f2db7d{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-09f2db7d]{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-09f2db7d]{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-09f2db7d]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-09f2db7d]{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-09f2db7d]{opacity:1}.left-item[data-v-09f2db7d]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-09f2db7d]{color:#e93b3d}.virtualList[data-v-259e2930]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-259e2930]{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,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as BackgroundLoading } from "./BackgroundLoading.vue";
2
+ export { default as DefaultLoading } from "./DefaultLoading.vue";
@@ -3,6 +3,7 @@ export * from "./useSelectable";
3
3
  export * from "./useDragSelect";
4
4
  export * from "./dialog";
5
5
  export * from "./useDelayLoad";
6
+ export * from "./Loading/index";
6
7
  export { ToastCreator } from "./toast/ToastCreator";
7
8
  export { default as SvgIcon } from "./svgIcon/SvgIcon.vue";
8
9
  export { default as ScrollBar } from "./scroll-bar";
@@ -0,0 +1,32 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ refresh?: Function | undefined;
3
+ refreshOff?: boolean | undefined;
4
+ scrollTop: number;
5
+ pullRefreshContainer: string;
6
+ }>, {
7
+ refreshOff: boolean;
8
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ refresh?: Function | undefined;
10
+ refreshOff?: boolean | undefined;
11
+ scrollTop: number;
12
+ pullRefreshContainer: string;
13
+ }>, {
14
+ refreshOff: boolean;
15
+ }>>>, {
16
+ refreshOff: boolean;
17
+ }>;
18
+ export default _default;
19
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
21
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
22
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
23
+ } : {
24
+ type: import('vue').PropType<T[K]>;
25
+ required: true;
26
+ };
27
+ };
28
+ declare type __VLS_WithDefaults<P, D> = {
29
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
30
+ default: D[K];
31
+ } : P[K];
32
+ };
@@ -3,16 +3,20 @@ declare const _default: {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
+ refreshOff: boolean;
6
7
  overscan: number;
7
8
  }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
9
  data: any[];
9
10
  itemHeight: (d: any) => number;
10
11
  overscan?: number | undefined;
12
+ refresh?: Function | undefined;
13
+ refreshOff?: boolean | undefined;
11
14
  }>, {
15
+ refreshOff: boolean;
12
16
  overscan: number;
13
17
  }>>> & {
14
18
  onScrollEnd?: (() => any) | undefined;
15
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "overscan">;
19
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "refreshOff" | "overscan">;
16
20
  $attrs: {
17
21
  [x: string]: unknown;
18
22
  };
@@ -30,7 +34,10 @@ declare const _default: {
30
34
  data: any[];
31
35
  itemHeight: (d: any) => number;
32
36
  overscan?: number | undefined;
37
+ refresh?: Function | undefined;
38
+ refreshOff?: boolean | undefined;
33
39
  }>, {
40
+ refreshOff: boolean;
34
41
  overscan: number;
35
42
  }>>> & {
36
43
  onScrollEnd?: (() => any) | undefined;
@@ -66,6 +73,7 @@ declare const _default: {
66
73
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
67
74
  scrollEnd: () => void;
68
75
  }, string, {
76
+ refreshOff: boolean;
69
77
  overscan: number;
70
78
  }> & {
71
79
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
@@ -91,7 +99,10 @@ declare const _default: {
91
99
  data: any[];
92
100
  itemHeight: (d: any) => number;
93
101
  overscan?: number | undefined;
102
+ refresh?: Function | undefined;
103
+ refreshOff?: boolean | undefined;
94
104
  }>, {
105
+ refreshOff: boolean;
95
106
  overscan: number;
96
107
  }>>> & {
97
108
  onScrollEnd?: (() => any) | undefined;
@@ -132,7 +143,10 @@ declare const _default: {
132
143
  data: any[];
133
144
  itemHeight: (d: any) => number;
134
145
  overscan?: number | undefined;
146
+ refresh?: Function | undefined;
147
+ refreshOff?: boolean | undefined;
135
148
  }>, {
149
+ refreshOff: boolean;
136
150
  overscan: number;
137
151
  }>>> & {
138
152
  onScrollEnd?: (() => any) | undefined;
@@ -168,6 +182,7 @@ declare const _default: {
168
182
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
169
183
  scrollEnd: () => void;
170
184
  }, string, {
185
+ refreshOff: boolean;
171
186
  overscan: number;
172
187
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
173
188
  $slots: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -1,84 +0,0 @@
1
- declare const _default: {
2
- new (...args: any[]): {
3
- $: import("vue").ComponentInternalInstance;
4
- $data: {};
5
- $props: Partial<{
6
- delay: number;
7
- }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
- delay?: number | undefined;
9
- }>, {
10
- delay: number;
11
- }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "delay">;
12
- $attrs: {
13
- [x: string]: unknown;
14
- };
15
- $refs: {
16
- [x: string]: unknown;
17
- };
18
- $slots: Readonly<{
19
- [name: string]: import("vue").Slot | undefined;
20
- }>;
21
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
22
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
23
- $emit: (event: string, ...args: any[]) => void;
24
- $el: any;
25
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
26
- delay?: number | undefined;
27
- }>, {
28
- delay: number;
29
- }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
30
- delay: number;
31
- }> & {
32
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
33
- created?: ((() => void) | (() => void)[]) | undefined;
34
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
35
- mounted?: ((() => void) | (() => void)[]) | undefined;
36
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
37
- updated?: ((() => void) | (() => void)[]) | undefined;
38
- activated?: ((() => void) | (() => void)[]) | undefined;
39
- deactivated?: ((() => void) | (() => void)[]) | undefined;
40
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
41
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
42
- destroyed?: ((() => void) | (() => void)[]) | undefined;
43
- unmounted?: ((() => void) | (() => void)[]) | undefined;
44
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
45
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
46
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
47
- };
48
- $forceUpdate: () => void;
49
- $nextTick: typeof import("vue").nextTick;
50
- $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
51
- } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
52
- delay?: number | undefined;
53
- }>, {
54
- delay: number;
55
- }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
56
- __isFragment?: undefined;
57
- __isTeleport?: undefined;
58
- __isSuspense?: undefined;
59
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
60
- delay?: number | undefined;
61
- }>, {
62
- delay: number;
63
- }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
64
- delay: number;
65
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
66
- $slots: {
67
- default: (_: {}) => any;
68
- };
69
- });
70
- export default _default;
71
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
72
- declare type __VLS_TypePropsToRuntimeProps<T> = {
73
- [K in keyof T]-?: {} extends Pick<T, K> ? {
74
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
75
- } : {
76
- type: import('vue').PropType<T[K]>;
77
- required: true;
78
- };
79
- };
80
- declare type __VLS_WithDefaults<P, D> = {
81
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
82
- default: D[K];
83
- } : P[K];
84
- };