@lazycatcloud/lzc-toolkit 0.0.51 → 0.0.53

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 @@
1
- (function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.ui={},h.Vue))})(this,function(h,e){"use strict";var Z;const T=typeof window<"u";T&&((Z=window?.navigator)==null?void 0:Z.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function $(n){return typeof n=="function"?n():e.unref(n)}function ue(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function de(n,t={}){let o,l;return a=>{const r=$(n),d=$(t.maxWait);if(o&&clearTimeout(o),r<=0||d!==void 0&&d<=0)return l&&(clearTimeout(l),l=null),a();d&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,a()},d)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,a()},r)}}function fe(n){return n}function pe(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function ee(n,t=200,o={}){return ue(de(t,o),n)}function he(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function te(n){var t;const o=$(n);return(t=o?.$el)!=null?t:o}const me=T?window:void 0;T&&window.document,T&&window.navigator,T&&window.location;function ge(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),he(l,t),o}const F=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},L="__vueuse_ssr_handlers__";F[L]=F[L]||{},F[L];var ne=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,ve=(n,t)=>{var o={};for(var l in n)ye.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&ne)for(var l of ne(n))t.indexOf(l)<0&&be.call(n,l)&&(o[l]=n[l]);return o};function _e(n,t,o={}){const l=o,{window:i=me}=l,a=ve(l,["window"]);let r;const d=ge(()=>i&&"ResizeObserver"in i),y=()=>{r&&(r.disconnect(),r=void 0)},m=e.watch(()=>te(n),g=>{y(),d.value&&i&&g&&(r=new ResizeObserver(t),r.observe(g,a))},{immediate:!0,flush:"post"}),p=()=>{y(),m()};return pe(p),{isSupported:d,stop:p}}function Se(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,i=e.ref(t.width),a=e.ref(t.height);return _e(n,([r])=>{const d=l==="border-box"?r.borderBoxSize:l==="content-box"?r.contentBoxSize:r.devicePixelContentBoxSize;d?(i.value=d.reduce((y,{inlineSize:m})=>y+m,0),a.value=d.reduce((y,{blockSize:m})=>y+m,0)):(i.value=r.contentRect.width,a.value=r.contentRect.height)},o),e.watch(()=>te(n),r=>{i.value=r?t.width:0,a.value=r?t.height:0}),{width:i,height:a}}var oe;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(oe||(oe={}));var we=Object.defineProperty,le=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,re=(n,t,o)=>t in n?we(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,Te=(n,t)=>{for(var o in t||(t={}))Ee.call(t,o)&&re(n,o,t[o]);if(le)for(var o of le(t))Oe.call(t,o)&&re(n,o,t[o]);return n};Te({linear:fe},{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 ie(n,t){const{scrollEndHook:o,itemHeight:l,overscan:i=5}=t,a=e.ref(null),r=Se(a),d=e.ref(!0),y=ee(q,100);let m;const p=e.shallowRef(n),g=e.ref(0),c=e.ref({start:0,end:10});let u=0;const E=e.ref([]),b=e.computed(()=>{let{sum:s,height:f}={sum:0,height:0};return p.value.map((S,v)=>(typeof l=="number"?f=l:f=l(v),s+=f,{height:f,sum:s}))}),U=e.computed(()=>R(c.value.start)),O=e.computed(()=>typeof l=="number"?b.value.length*l:b.value[b.value.length-1]?.sum||0),I=e.computed(()=>{let s=E.value.length-i,f=Math.max(s-u,0);return E.value.slice(f,s)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(m)),e.watch([r.width,r.height,p],([s,f])=>{(s||f)&&H()},{deep:!0}),e.watch(g,()=>{C(),y()});function C(){d.value=!1}function q(){d.value=!0,o?.()}function H(){cancelAnimationFrame(m),m=requestAnimationFrame(x)}function x(){if(a.value){g.value=a.value.scrollTop,u=B();let s=P(g.value),f=s+u+i;s=s-i,s=s<0?0:s,f=f>p.value.length?p.value.length:f,c.value={start:s,end:f},E.value=p.value.slice(s,f).map((S,v)=>({data:S,index:v+s}))}}function P(s){let f=0,S=b.value.length-1,v=-1;for(;f<=S;){const _=Math.floor((f+S)/2);b.value[_].sum>=s?(v=_,S=_-1):f=_+1}return Math.max(0,v)}function B(){let s=0,f=0,S=Y();for(let v=S;v<b.value.length&&(s++,f+=b.value[v].height,!(f>=r.height.value));v++);return s}function R(s){if(typeof l=="number")return s*l;let f=b.value[s];return f?f.sum-f.height:0}function k(s){return b.value[s]||{sum:0,height:0}}function Y(){let s=c.value.start;return s>=i&&(s+=i),s}function G(s){if(a.value){const f=k(s);a.value.scrollTop=f.sum-f.height,x()}}const J=e.computed(()=>({style:{width:"100%",height:`${O.value}px`,pointerEvents:d.value?void 0:"none"}})),A=e.computed(()=>({style:{transform:`translate3d(0, ${U.value}px, 0)`,"will-change":"transform"}})),X={overflowY:"auto"};return{list:E,visiableList:I,getItemHeightData:k,getoffsetTopIndex:P,totalHeight:O,clientHeight:r.height,scrollTo:G,scrollTop:g,isScrollEnd:d,containerProps:{ref:a,onScroll:()=>{H()},style:X},wrapperProps:J,innerProps:A}}const D=Symbol(),V=Symbol(),j=Symbol(),K=Symbol(),M=Symbol(),N=Symbol(),z=Symbol(),W=Symbol(),Q=Symbol();function Be(){const{voidFn:n,boolFn:t,boolRef:o,arrayRef:l}={voidFn:u=>{},boolFn:u=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},i=e.inject(K,l),a=e.inject(j,t),r=e.inject(W,o),d=e.inject(V,n),y=e.inject(D,n),m=e.inject(M,n),p=e.inject(N,n),g=e.inject(z,n),c=e.inject(Q,n);return{selected:i,isSelected:a,isAllSelected:r,toggle:d,toggleAll:y,select:m,selectAll:p,unselect:g,unselectAll:c}}function Ie(n,t){const o=e.ref({}),l=e.computed(()=>n.value.filter(c=>o.value[c[t]])),i=e.computed(()=>l.value.length!=0&&Object.keys(o.value).length==n.value.length);function a(){n.value.forEach(c=>{o.value[c[t]]=!0})}function r(){o.value={}}function d(c){c.forEach(u=>{o.value[u[t]]||(o.value[u[t]]=!0)})}function y(c){c.forEach(u=>{o.value[u[t]]&&delete o.value[u[t]]})}function m(c){return!!o.value[c[t]]}function p(c){c.forEach(u=>{m(u)?delete o.value[u[t]]:o.value[u[t]]=!0})}function g(){i.value?r():a()}return e.provide(D,g),e.provide(V,p),e.provide(j,m),e.provide(K,l),e.provide(M,d),e.provide(N,a),e.provide(z,y),e.provide(W,i),e.provide(Q,r),{selected:l,select:d,selectAll:a,unselect:y,unselectAll:r,toggle:p,toggleAll:g,isSelected:m,isAllSelected:i}}const ae=Symbol(),Ce=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(n,{emit:t}){const o=n,l=()=>{o.closeOnClickOverlay&&t("update:visiable",!1)};return e.provide(ae,()=>t("update:visiable",!1)),(i,a)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[n.visiable?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l,class:"modal absolute inset-0 bottom-0 flex bg-stone-900 bg-opacity-50 z-[999]"},[e.createElementVNode("div",{onClick:a[0]||(a[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["dialog m-auto flex flex-col",n.dialogClass])},[e.renderSlot(i.$slots,"default")],2)])):e.createCommentVNode("",!0)]),_:3}))}});function He(n){function t(o,l){const i=document.createElement("div"),a={setup(){return()=>e.h(Ce,{visiable:!0,"onUpdate:visiable":()=>{i?.remove()},...n},{default:()=>e.h(o,l)})}};return document.body.appendChild(i),e.render(e.h(a),i),{close:()=>i?.remove()}}return{create:t}}const xe=e.defineComponent({__name:"Toast",props:{message:null,position:null},setup(n){const t=n,o=e.ref(),l=e.ref(),i=e.ref(),a=e.computed(()=>{switch(t.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),r=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${a.value}% - ${i.value}px)`,left:`calc(50% - ${l.value}px)`})),d=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));return e.nextTick(()=>{l.value=o.value.offsetWidth/2,i.value=o.value.offsetHeight/2}),(y,m)=>(e.openBlock(),e.createElementBlock("div",{id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(r),{zIndex:9999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(d))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],4))}}),se={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500};class Pe{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(xe),{...se,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||se.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){this.container&&(this.container.querySelector("#toastWrapper")?.classList.add("animate-toastAnimation"),setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500))}}const Re=["xlink:href","fill","color"],ke=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(n){const t=n,o=e.computed(()=>`#${t.prefix}-${t.name}`),l=e.computed(()=>({width:`${t.width??t.height}px`,height:`${t.height??t.width}px`,aspectRatio:t.width&&t.height?void 0:"1/1"}));return(i,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle(e.unref(l))},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:n.color,color:n.color},null,8,Re)],4))}});function Ae(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:i={},maxHeightRatio:a=.9}=n,r=e.ref(!0),d=ee(R,100);let y,m="";const p=e.ref(0),g=e.ref(0),c=e.ref(0),u=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),E=e.ref({clientHeight:0}),b=e.computed(()=>!!g.value),U=e.computed(()=>u.value.scrollHeight>u.value.clientHeight),O=e.computed(()=>u.value.clientHeight-E.value.clientHeight),I=e.computed(()=>u.value.scrollHeight-u.value.clientHeight),C=e.computed(()=>Math.max(u.value.clientHeight/u.value.scrollHeight,.05)),q=e.computed(()=>C.value>a?0:C.value*u.value.clientHeight),H=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:l?`${q.value}px`:void 0}));function x(_){B(),g.value=_.clientY-o.value.getBoundingClientRect().top||1,m=getComputedStyle(t.value).scrollBehavior,m==="smooth"&&(t.value.style.scrollBehavior="unset")}function P(){t.value.style.scrollBehavior=m,g.value=0,d()}function B(){r.value=!1}function R(){b.value||(r.value=!0)}function k(_){if(!b.value)return;let w=_.clientY-u.value.top-g.value;w<0?c.value=0:w>=O.value?c.value=O.value:c.value=w,t.value.scrollTo({top:c.value/O.value*I.value})}function Y(){b.value||G()}function G(){cancelAnimationFrame(y),y=requestAnimationFrame(J)}function J(){t.value&&(p.value=i.scrollTop?.value??t.value.scrollTop,c.value=p.value/I.value*O.value)}function A(_){let w="addEventListener";_==="add"?w="addEventListener":w="removeEventListener",o.value?.[w]("pointerdown",x,{passive:!0}),window[w]("pointermove",k,{passive:!0}),window[w]("pointerup",P,{passive:!0})}const X=new MutationObserver(_=>{_.map(Me=>Me.oldValue).join().includes("height")&&s()});function s(){u.value.top=t.value?.getBoundingClientRect().top??0,u.value.scrollHeight=t.value?.scrollHeight??0,u.value.clientHeight=t.value?.clientHeight??0}function f(){B(),setTimeout(()=>{E.value.clientHeight=o.value?.clientHeight??0,R()},150)}function S(){document.styleSheets[0].insertRule(".hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }",0),document.styleSheets[0].insertRule(".hide-scrollbar::-webkit-scrollbar{ display: none }",0),t.value?.classList.add("hide-scrollbar")}function v(){t.value&&o.value?(S(),t.value.addEventListener("scroll",Y,{passive:!0}),A("add"),X.observe(t.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{s()},100),f()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(p,()=>{B(),d()}),{isScrollEnd:r,isDragSlider:b,offsetTop:c,scrollTop:p,scrollable:U,sliderPos:H,init:v,modifySliderEventListener:A}}const $e=(n=>(e.pushScopeId("data-v-edec7292"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Fe=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},performance:null},setup(n,{expose:t}){const o=n,l=!!e.useSlots().default,i=e.ref(null),a=e.computed(()=>o.containerEl),r=Ae({containerEl:a,sliderEl:i,autoHeight:l?o.autoHeight:!0,performance:o.performance}),{scrollable:d,isScrollEnd:y,sliderPos:m}=r,p=e.ref(!1),g=o.autoHide?e.computed(()=>p.value||!y.value):e.computed(()=>d.value);e.onMounted(()=>{e.nextTick(()=>{r.init()})}),e.onUnmounted(()=>{r.modifySliderEventListener("remove")});function c(){p.value=!0}function u(){p.value=!1}return t({uScrollBarReturn:r}),(E,b)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:i,class:"slider-wrapper",onMouseenter:c,onMouseleave:u,style:e.normalizeStyle(e.unref(m))},[e.renderSlot(E.$slots,"default",{},()=>[$e],!0)],36),[[e.vShow,e.unref(g)]])]),_:3}))}}),We="",ce=(n,t)=>{const o=n.__vccOpts||n;for(const[l,i]of t)o[l]=i;return o},Le=ce(Fe,[["__scopeId","data-v-edec7292"]]),De={class:"virtualListWrapper"},Ve={inheritAttrs:!1},je=e.defineComponent({...Ve,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10}},emits:["scrollEnd"],setup(n,{expose:t,emit:o}){const l=n,i=ie(e.toRef(l,"data"),{itemHeight:p=>l.itemHeight(l.data[p]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:a,containerProps:r,wrapperProps:d,innerProps:y,getItemHeightData:m}=i;return t({vListReturn:i}),(p,g)=>(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("div",e.mergeProps({onScrollPassive:g[0]||(g[0]=(...c)=>e.unref(r).onScroll&&e.unref(r).onScroll(...c)),ref:e.unref(r).ref,class:"virtualList"},p.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(y))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),({index:c,data:u})=>(e.openBlock(),e.createElementBlock("div",{key:c,style:e.normalizeStyle({height:`${e.unref(m)(c).height}px`,display:"flex"})},[e.renderSlot(p.$slots,"default",{data:u,index:c},void 0,!0)],4))),128))],16)],16)],16)]))}}),Qe="",Ke=ce(je,[["__scopeId","data-v-4ba97cce"]]);h.ScrollBar=Le,h.SvgIcon=ke,h.ToastCreator=Pe,h.VirtualList=Ke,h.allSelectedKey=K,h.closeDialogKey=ae,h.dialogController=He,h.isAllSelectedKey=W,h.isSelectedKey=j,h.selectAllKey=N,h.selectKey=M,h.toggleAllKey=D,h.toggleKey=V,h.unselectAllKey=Q,h.unselectKey=z,h.useSelectable=Ie,h.useSelectableInjectors=Be,h.useVirtualList=ie,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
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 fe;const pe=typeof window<"u";pe&&((fe=window?.navigator)==null?void 0:fe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Q(n){return typeof n=="function"?n():e.unref(n)}function he(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function Be(n,t={}){let o,l;return i=>{const a=Q(n),u=Q(t.maxWait);if(o&&clearTimeout(o),a<=0||u!==void 0&&u<=0)return l&&(clearTimeout(l),l=null),i();u&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,i()},u)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,i()},a)}}function Oe(n,t=!0,o=!0){let l=0,r,i=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return g=>{const v=Q(n),p=Date.now()-l;if(a(),v<=0)return l=Date.now(),g();p>v&&(o||!i)?(l=Date.now(),g()):t&&(r=setTimeout(()=>{l=Date.now(),i=!0,a(),g()},v-p)),!o&&!r&&(r=setTimeout(()=>i=!0,v)),i=!1}}function Ce(n){return n}function De(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function me(n,t=200,o={}){return he(Be(t,o),n)}function ve(n,t=200,o=!1,l=!0){return he(Oe(t,o,l),n)}function Re(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function ge(n){var t;const o=Q(n);return(t=o?.$el)!=null?t:o}const Ie=pe?window:void 0;function Le(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),Re(l,t),o}const X=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__";X[J]=X[J]||{},X[J];var ye=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Pe=(n,t)=>{var o={};for(var l in n)Ae.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&ye)for(var l of ye(n))t.indexOf(l)<0&&He.call(n,l)&&(o[l]=n[l]);return o};function Me(n,t,o={}){const l=o,{window:r=Ie}=l,i=Pe(l,["window"]);let a;const u=Le(()=>r&&"ResizeObserver"in r),g=()=>{a&&(a.disconnect(),a=void 0)},v=e.watch(()=>ge(n),d=>{g(),u.value&&r&&d&&(a=new ResizeObserver(t),a.observe(d,i))},{immediate:!0,flush:"post"}),p=()=>{g(),v()};return De(p),{isSupported:u,stop:p}}function $e(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,r=e.ref(t.width),i=e.ref(t.height);return Me(n,([a])=>{const u=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(r.value=u.reduce((g,{inlineSize:v})=>g+v,0),i.value=u.reduce((g,{blockSize:v})=>g+v,0)):(r.value=a.contentRect.width,i.value=a.contentRect.height)},o),e.watch(()=>ge(n),a=>{r.value=a?t.width:0,i.value=a?t.height:0}),{width:r,height:i}}var Se;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(Se||(Se={}));var Fe=Object.defineProperty,Ee=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,be=(n,t,o)=>t in n?Fe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,je=(n,t)=>{for(var o in t||(t={}))ke.call(t,o)&&be(n,o,t[o]);if(Ee)for(var o of Ee(t))Ve.call(t,o)&&be(n,o,t[o]);return n};je({linear:Ce},{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(n,t){const{scrollEndHook:o,itemHeight:l,overscan:r=5}=t,i=e.ref(null),a=$e(i),u=e.ref(!0),g=me(U,100);let v;const p=e.shallowRef(n),d=e.ref(0),s=e.ref({start:0,end:10});let c=0;const E=e.ref([]),_=e.computed(()=>{let{sum:h,height:S}={sum:0,height:0};return p.value.map((R,D)=>(typeof l=="number"?S=l:S=l(D),h+=S,{height:S,sum:h}))}),w=e.computed(()=>F(s.value.start)),y=e.computed(()=>typeof l=="number"?_.value.length*l:_.value[_.value.length-1]?.sum||0),O=e.computed(()=>{let h=E.value.length-r,S=Math.max(h-c,0);return E.value.slice(S,h)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(v)),e.watch([a.width,a.height,p],([h,S])=>{(h||S)&&j()},{deep:!0}),e.watch(d,()=>{I(),g()});function I(){u.value=!1}function U(){u.value=!0,o?.()}function j(){cancelAnimationFrame(v),v=requestAnimationFrame($)}function $(){if(i.value){d.value=i.value.scrollTop,c=P();let h=A(d.value),S=h+c+r;h=h-r,h=h<0?0:h,S=S>p.value.length?p.value.length:S,s.value={start:h,end:S},E.value=p.value.slice(h,S).map((R,D)=>({data:R,index:D+h}))}}function A(h){let S=0,R=_.value.length-1,D=-1;for(;S<=R;){const B=Math.floor((S+R)/2);_.value[B].sum>=h?(D=B,R=B-1):S=B+1}return Math.max(0,D)}function P(){let h=0,S=0,R=L();for(let D=R;D<_.value.length&&(h++,S+=_.value[D].height,!(S>=a.height.value));D++);return h}function F(h){if(typeof l=="number")return h*l;let S=_.value[h];return S?S.sum-S.height:0}function k(h){return _.value[h]||{sum:0,height:0}}function L(){let h=s.value.start;return h>=r&&(h+=r),h}function K(h){if(i.value){const S=k(h);i.value.scrollTop=S.sum-S.height,$()}}const q=e.computed(()=>({style:{width:"100%",height:`${y.value}px`,pointerEvents:u.value?void 0:"none"}})),V=e.computed(()=>({style:{transform:`translate3d(0, ${w.value}px, 0)`,"will-change":"transform"}})),N={overflowY:"auto"};return{list:E,visiableList:O,getItemHeightData:k,getoffsetTopIndex:A,totalHeight:y,clientHeight:a.height,scrollTo:K,scrollTop:d,isScrollEnd:u,containerProps:{ref:i,onScroll:()=>{j()},style:N},wrapperProps:q,innerProps:V}}const Z=Symbol(),ee=Symbol(),te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),re=Symbol(),ae=Symbol(),ie=Symbol();function Ke(){const{voidFn:n,boolFn:t,boolRef:o,arrayRef:l}={voidFn:c=>{},boolFn:c=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},r=e.inject(ne,l),i=e.inject(te,t),a=e.inject(ae,o),u=e.inject(ee,n),g=e.inject(Z,n),v=e.inject(oe,n),p=e.inject(le,n),d=e.inject(re,n),s=e.inject(ie,n);return{selected:r,isSelected:i,isAllSelected:a,toggle:u,toggleAll:g,select:v,selectAll:p,unselect:d,unselectAll:s}}function Ne(n,t){const o=e.ref({}),l=e.computed(()=>n.value.filter(s=>o.value[s[t]])),r=e.computed(()=>l.value.length!=0&&Object.keys(o.value).length==n.value.length);function i(){n.value.forEach(s=>{o.value[s[t]]=!0})}function a(){o.value={}}function u(s){s.forEach(c=>{o.value[c[t]]||(o.value[c[t]]=!0)})}function g(s){s.forEach(c=>{o.value[c[t]]&&delete o.value[c[t]]})}function v(s){return!!o.value[s[t]]}function p(s){s.forEach(c=>{v(c)?delete o.value[c[t]]:o.value[c[t]]=!0})}function d(){r.value?a():i()}return e.provide(Z,d),e.provide(ee,p),e.provide(te,v),e.provide(ne,l),e.provide(oe,u),e.provide(le,i),e.provide(re,g),e.provide(ae,r),e.provide(ie,a),{selected:l,select:u,selectAll:i,unselect:g,unselectAll:a,toggle:p,toggleAll:d,isSelected:v,isAllSelected:r}}function se(n){return()=>{console.debug(`\u9ED8\u8BA4${n}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ce({attribute:n,selectWay:t="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:r=se("\u9009\u62E9"),unselect:i=se("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=se("\u53D6\u6D88\u5168\u9009")}=l();let u={};const g=e.computed(()=>ve(t==="colum"?M:Y,50)),v=new Set,p=e.ref(!0),d=e.ref(),s=e.ref(!1),c=e.ref({x:0,y:0}),E=e.ref({x:0,y:0,scrollTop:0}),_=new ResizeObserver(f=>w.value=f[0].target.getBoundingClientRect()),w=e.ref({}),y=e.ref({top:0,height:0,sync(f=!1){y.value.top=d.value?.scrollTop||0,f&&(y.value.height=d.value?.scrollHeight||0)}}),O=e.computed(()=>s.value?{left:Math.min(c.value.x,E.value.x)-w.value.left,top:Math.min(c.value.y,E.value.y)-w.value.top,width:Math.abs(c.value.x-E.value.x),height:Math.abs(c.value.y-E.value.y)}:{left:0,top:0,width:0,height:0}),{margin:I=50,startSpeed:U=30,maxSpeed:j=30}=o;let $;const A=I,P=U,F=j,k=f=>f**1;let L=0;function K(f){if(cancelAnimationFrame($),L=q(f),L=Math.max(Math.min(L,F),-F),L!==0){const m=d.value;if(!m||!s.value)return;const C=y.value.height-w.value.height;let T=y.value.top+Number(L);T=Math.min(Math.max(0,T),C),m.scrollTop=T,N(),$=requestAnimationFrame(()=>K(f))}}function q(f){if(d.value){const C=w.value,T=C.bottom-f;if(T<A)return P*k(1-T/A);const H=f-C.top;if(H<A)return-P*k(1-H/A)}return 0}function V(f){const m={...O.value,right:0,bottom:0};return m.left+=w.value.left,m.top+=w.value.top-y.value.top,m.right=m.width+m.left,m.bottom=m.height+m.top,m.left<f.right&&m.right>f.left&&m.top<f.bottom&&m.bottom>f.top}function N(){y.value.sync();const{top:f,height:m}=y.value;E.value.y=Math.min(m+w.value.top,E.value.y+f-E.value.scrollTop),E.value.scrollTop=f}function h(f,m,C="dynamic-styles"){let T=document.getElementById(C);T||(T=document.createElement("style"),T.id=C,document.head.appendChild(T));const H=T.sheet.cssRules,W=H.length,it=`${f} { ${m} }`;for(let de=0;de<W;de++){const xe=H[de];if(xe.selectorText===f&&xe.style.cssText===m)return}T.sheet.insertRule(it,W)}function S(f,m){p.value=!0,s.value=!0,y.value.height?y.value.sync():y.value.sync(!0),c.value.x=f,c.value.y=m+y.value.top,E.value.x=c.value.x,E.value.y=c.value.y,d.value?.classList.add("disable-scroll-behavior"),v.clear()}function R(f,m,C){!s.value||(p.value&&t==="colum"&&!x()&&(a(),p.value=!1),C?.(),K(m),E.value.x=Math.max(f,w.value.left),E.value.y=Math.min(m+y.value.top,y.value.height+w.value.top),E.value.scrollTop=y.value.top,g.value())}function D(){s.value=!1,d.value?.classList.remove("disable-scroll-behavior")}function B(){!s.value||(L||N(),g.value())}function x(){if(!s.value)return!1;const{width:f,height:m}=O.value;return!(Math.max(f,m)>5)}function z(){x()&&a()}function M(){x()||d.value?.querySelectorAll(`[${n}]`).forEach(f=>{u[`${n}`]=f.getAttribute(`${n}`),V(f.getBoundingClientRect())?r([u]):i([u])})}function Y(){const f=[];let m=null,C=0;d.value?.querySelectorAll(`[${n}]`).forEach((T,H)=>{const W=T.getAttribute(`${n}`);f.push(W),V(T.getBoundingClientRect())?(m===null&&(m=H),m=Math.min(m,H),C=Math.max(C,H)):(u[`${n}`]=W,v.has(W)&&i([u]))});for(let T=m;T<C+1;T++)u[`${n}`]=f[T],r([u]),v.add(f[T])}function G(f){return!f?.value||(d.value=f.value,!d?.value)?!1:(_.observe(d.value),h(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:G,dragStart:S,dragMove:R,dragEnd:D,onScroll:B,isSingleClick:x,cancelSelectAllBySingleClick:z,selectFn:g,selectRange:O,isPressing:s,containerEl:d,observer:_}}function ze(n){const t=ce(n),{observer:o,selectRange:l}=t,{onScroll:r,dragStart:i,dragMove:a,dragEnd:u,cancelSelectAllBySingleClick:g}=t,v=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),p=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"absolute z-50 bg-blue-200 opacity-50",style:v.value})}});function d(w){w.button===0&&i(w.x,w.y)}function s(w){a(w.x,w.y)}function c(w){w.composedPath().some(O=>O?.getAttribute?.(n.attribute))||g(),u()}function E(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(p),t.containerEl.value),t.containerEl.value?.addEventListener("scroll",r),t.containerEl.value?.addEventListener("mousedown",d),window.addEventListener("mousemove",s),window.addEventListener("mouseup",c)}catch(y){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",y)}}function _(){o.disconnect(),t.containerEl.value?.removeEventListener("scroll",r),t.containerEl.value?.removeEventListener("mousedown",d),window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",c)}return{init:E,unMount:_}}function We(n,t,o=600){const l=ce({...n,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=l,{onScroll:i,dragStart:a,dragMove:u,dragEnd:g,selectFn:v}=l;let p;function d(){clearTimeout(p)}function s(y){d(),p=setTimeout(()=>{const{clientX:O,clientY:I}=y.targetTouches[0];a(O,I),t?.(),v.value(),y.preventDefault()},o)}function c(y){d();const{clientX:O,clientY:I}=y.targetTouches[0];u(O,I,()=>y.preventDefault())}function E(){d(),g()}function _(y){try{if(!l.init(y))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",i),l.containerEl.value?.addEventListener("touchstart",s),l.containerEl.value?.addEventListener("touchmove",c),window.addEventListener("touchcancel",E),window.addEventListener("touchend",E)}catch(O){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",O)}}function w(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",i),l.containerEl.value?.removeEventListener("touchstart",s),l.containerEl.value?.removeEventListener("touchmove",c),window.removeEventListener("touchcancel",E),window.removeEventListener("touchEnd",E)}return{init:_,unMount:w}}const _e=Symbol(),Ue=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(n,{emit:t}){const o=n,l=()=>{o.closeOnClickOverlay&&t("update:visiable",!1)};return e.provide(_e,()=>t("update:visiable",!1)),(r,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[n.visiable?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l,class:"modal"},[e.createElementVNode("div",{onClick:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["dialog",n.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],2)])):e.createCommentVNode("",!0)]),_:3}))}}),ct="",ue=(n,t)=>{const o=n.__vccOpts||n;for(const[l,r]of t)o[l]=r;return o},qe=ue(Ue,[["__scopeId","data-v-415900d3"]]);function Qe(n){function t(o,l){const r=document.createElement("div"),i={setup(){return()=>e.h(qe,{visiable:!0,"onUpdate:visiable":()=>{r?.remove()},...n},{default:()=>e.h(o,l)})}};return document.body.appendChild(r),e.render(e.h(i),r),{close:()=>r?.remove()}}return{create:t}}const Ye=e.defineComponent({__name:"Toast",props:{message:null,position:null},setup(n){const t=n,o=e.ref(),l=e.ref(),r=e.ref(),i=e.computed(()=>{switch(t.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),a=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${i.value}% - ${r.value}px)`,left:`calc(50% - ${l.value}px)`})),u=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));return e.nextTick(()=>{l.value=o.value.offsetWidth/2,r.value=o.value.offsetHeight/2}),(g,v)=>(e.openBlock(),e.createElementBlock("div",{id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],4))}}),Te={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500};class Ge{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(Ye),{...Te,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Te.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){this.container&&(this.container.querySelector("#toastWrapper")?.classList.add("animate-toastAnimation"),setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500))}}const Xe=["xlink:href","fill","color"],Je=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(n){const t=n,o=e.computed(()=>`#${t.prefix}-${t.name}`),l=e.computed(()=>({width:`${t.width??t.height}px`,height:`${t.height??t.width}px`,aspectRatio:t.width&&t.height?void 0:"1/1"}));return(r,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle(e.unref(l))},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:n.color,color:n.color},null,8,Xe)],4))}});function Ze(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:r={},maxHeightRatio:i=.9}=n,a=e.ref(!0),u=me(F,100);let g,v="";const p=e.ref(0),d=e.ref(0),s=e.ref(0),c=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),E=e.ref({clientHeight:0}),_=e.computed(()=>!!d.value),w=e.computed(()=>c.value.scrollHeight>c.value.clientHeight),y=e.computed(()=>c.value.clientHeight-E.value.clientHeight),O=e.computed(()=>c.value.scrollHeight-c.value.clientHeight),I=e.computed(()=>Math.max(c.value.clientHeight/c.value.scrollHeight,.05)),U=e.computed(()=>I.value>i?0:I.value*c.value.clientHeight),j=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${s.value}px,0)`,height:l?`${U.value}px`:void 0}));function $(B){P(),d.value=B.clientY-o.value.getBoundingClientRect().top||1,v=getComputedStyle(t.value).scrollBehavior,v==="smooth"&&(t.value.style.scrollBehavior="unset")}function A(){t.value.style.scrollBehavior=v,d.value=0,u()}function P(){a.value=!1}function F(){_.value||(a.value=!0)}function k(B){if(!_.value)return;let x=B.clientY-c.value.top-d.value;x<0?s.value=0:x>=y.value?s.value=y.value:s.value=x,t.value.scrollTo({top:s.value/y.value*O.value})}function L(){_.value||K()}function K(){cancelAnimationFrame(g),g=requestAnimationFrame(q)}function q(){t.value&&(p.value=r.scrollTop?.value??t.value.scrollTop,s.value=p.value/O.value*y.value)}function V(B){let x="addEventListener";B==="add"?x="addEventListener":x="removeEventListener",o.value?.[x]("pointerdown",$,{passive:!0}),window[x]("pointermove",k,{passive:!0}),window[x]("pointerup",A,{passive:!0})}const N=new MutationObserver(B=>{B.map(z=>z.oldValue).join().includes("height")&&h()});function h(){c.value.top=t.value?.getBoundingClientRect().top??0,c.value.scrollHeight=t.value?.scrollHeight??0,c.value.clientHeight=t.value?.clientHeight??0}function S(){P(),setTimeout(()=>{E.value.clientHeight=o.value?.clientHeight??0,F()},150)}function R(B,x,z="dynamic-styles"){let M=document.getElementById(z);M||(M=document.createElement("style"),M.id=z,document.head.appendChild(M));const Y=M.sheet.cssRules,G=Y.length,f=`${B} { ${x} }`;for(let m=0;m<G;m++){const C=Y[m];if(C.selectorText===B&&C.style.cssText===x)return}M.sheet.insertRule(f,G)}function D(){t.value&&o.value?(R(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),R(".hide-scrollbar::-webkit-scrollbar","display: none"),t.value.addEventListener("scroll",L,{passive:!0}),V("add"),N.observe(t.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{h()},100),S()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(p,()=>{P(),u()}),{isScrollEnd:a,isDragSlider:_,offsetTop:s,scrollTop:p,scrollable:w,sliderPos:j,init:D,modifySliderEventListener:V}}const et=(n=>(e.pushScopeId("data-v-edec7292"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),tt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},performance:null},setup(n,{expose:t}){const o=n,l=!!e.useSlots().default,r=e.ref(null),i=e.computed(()=>o.containerEl),a=Ze({containerEl:i,sliderEl:r,autoHeight:l?o.autoHeight:!0,performance:o.performance}),{scrollable:u,isScrollEnd:g,sliderPos:v}=a,p=e.ref(!1),d=o.autoHide?e.computed(()=>p.value||!g.value):e.computed(()=>u.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function s(){p.value=!0}function c(){p.value=!1}return t({uScrollBarReturn:a}),(E,_)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:r,class:"slider-wrapper",onMouseenter:s,onMouseleave:c,style:e.normalizeStyle(e.unref(v))},[e.renderSlot(E.$slots,"default",{},()=>[et],!0)],36),[[e.vShow,e.unref(d)]])]),_:3}))}}),dt="",nt=ue(tt,[["__scopeId","data-v-edec7292"]]),ot={class:"virtualListWrapper"},lt={inheritAttrs:!1},rt=e.defineComponent({...lt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10}},emits:["scrollEnd"],setup(n,{expose:t,emit:o}){const l=n,r=we(e.toRef(l,"data"),{itemHeight:p=>l.itemHeight(l.data[p]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:i,containerProps:a,wrapperProps:u,innerProps:g,getItemHeightData:v}=r;return t({vListReturn:r}),(p,d)=>(e.openBlock(),e.createElementBlock("div",ot,[e.createElementVNode("div",e.mergeProps({onScrollPassive:d[0]||(d[0]=(...s)=>e.unref(a).onScroll&&e.unref(a).onScroll(...s)),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(g))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({index:s,data:c})=>(e.openBlock(),e.createElementBlock("div",{key:s,style:e.normalizeStyle({height:`${e.unref(v)(s).height}px`,display:"flex"})},[e.renderSlot(p.$slots,"default",{data:c,index:s},void 0,!0)],4))),128))],16)],16)],16)]))}}),ft="",at=ue(rt,[["__scopeId","data-v-4ba97cce"]]);b.ScrollBar=nt,b.SvgIcon=Je,b.ToastCreator=Ge,b.VirtualList=at,b.allSelectedKey=ne,b.closeDialogKey=_e,b.dialogController=Qe,b.isAllSelectedKey=ae,b.isSelectedKey=te,b.selectAllKey=le,b.selectKey=oe,b.toggleAllKey=Z,b.toggleKey=ee,b.unselectAllKey=ie,b.unselectKey=re,b.useDragSelect=ce,b.useDragSelectByMobile=We,b.useDragSelectByPc=ze,b.useSelectable=Ne,b.useSelectableInjectors=Ke,b.useVirtualList=we,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .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}
1
+ .modal[data-v-415900d3]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.dialog[data-v-415900d3]{margin:auto;display:flex;flex-direction:column}.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}
@@ -27,8 +27,8 @@ declare const _default: {
27
27
  $slots: Readonly<{
28
28
  [name: string]: import("vue").Slot | undefined;
29
29
  }>;
30
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
31
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
30
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
31
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
32
32
  $emit: (event: "update:visiable", ...args: any[]) => void;
33
33
  $el: any;
34
34
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DialogProps>, {
@@ -41,7 +41,7 @@ declare const _default: {
41
41
  visiable: boolean;
42
42
  closeOnClickOverlay: boolean;
43
43
  dialogClass: string | object | string[];
44
- }> & {
44
+ }, {}, string> & {
45
45
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
46
46
  created?: ((() => void) | (() => void)[]) | undefined;
47
47
  beforeMount?: ((() => void) | (() => void)[]) | undefined;
@@ -56,18 +56,18 @@ declare const _default: {
56
56
  unmounted?: ((() => void) | (() => void)[]) | undefined;
57
57
  renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
58
58
  renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
59
- 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;
59
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
60
60
  };
61
61
  $forceUpdate: () => void;
62
62
  $nextTick: typeof import("vue").nextTick;
63
- $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
63
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
64
64
  } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DialogProps>, {
65
65
  visiable: boolean;
66
66
  closeOnClickOverlay: boolean;
67
67
  dialogClass: string;
68
68
  }>>> & {
69
69
  "onUpdate:visiable"?: ((...args: any[]) => any) | undefined;
70
- } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
70
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
71
71
  __isFragment?: undefined;
72
72
  __isTeleport?: undefined;
73
73
  __isSuspense?: undefined;
@@ -81,14 +81,14 @@ declare const _default: {
81
81
  visiable: boolean;
82
82
  closeOnClickOverlay: boolean;
83
83
  dialogClass: string | object | string[];
84
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
84
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
85
85
  $slots: {
86
86
  default: (_: {}) => any;
87
87
  };
88
88
  });
89
89
  export default _default;
90
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
91
- declare type __VLS_TypePropsToRuntimeProps<T> = {
90
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
91
+ type __VLS_TypePropsToRuntimeProps<T> = {
92
92
  [K in keyof T]-?: {} extends Pick<T, K> ? {
93
93
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
94
94
  } : {
@@ -96,7 +96,7 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
96
96
  required: true;
97
97
  };
98
98
  };
99
- declare type __VLS_WithDefaults<P, D> = {
99
+ type __VLS_WithDefaults<P, D> = {
100
100
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
101
101
  default: D[K];
102
102
  } : P[K];
@@ -9,7 +9,7 @@ interface Constructor<P = any> {
9
9
  $props: P;
10
10
  };
11
11
  }
12
- declare type DialogControllerOptions = Omit<DialogProps, "visiable">;
12
+ type DialogControllerOptions = Omit<DialogProps, "visiable">;
13
13
  export declare function dialogController(dialogProps?: DialogControllerOptions): {
14
14
  create: <P>(component: Constructor<P>, componentProps?: (VNodeProps & P) | undefined) => {
15
15
  close: () => void;
@@ -1,5 +1,6 @@
1
1
  export * from "./useVirtualList";
2
2
  export * from "./useSelectable";
3
+ export * from "./useDragSelect";
3
4
  export * from "./dialog";
4
5
  export { ToastCreator } from "./toast/ToastCreator";
5
6
  export { default as SvgIcon } from "./svgIcon/SvgIcon.vue";
@@ -21,8 +21,8 @@ declare const _default: {
21
21
  $slots: Readonly<{
22
22
  [name: string]: import("vue").Slot | undefined;
23
23
  }>;
24
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
25
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
24
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
25
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
26
26
  $emit: (event: string, ...args: any[]) => void;
27
27
  $el: any;
28
28
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>>, {
@@ -36,7 +36,7 @@ declare const _default: {
36
36
  init: () => void;
37
37
  modifySliderEventListener: (action: "add" | "remove") => void;
38
38
  };
39
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & {
39
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
40
40
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
41
41
  created?: ((() => void) | (() => void)[]) | undefined;
42
42
  beforeMount?: ((() => void) | (() => void)[]) | undefined;
@@ -51,11 +51,11 @@ declare const _default: {
51
51
  unmounted?: ((() => void) | (() => void)[]) | undefined;
52
52
  renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
53
53
  renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
54
- 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;
54
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
55
55
  };
56
56
  $forceUpdate: () => void;
57
57
  $nextTick: typeof nextTick;
58
- $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
58
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
59
59
  } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & import("vue").ShallowUnwrapRef<{
60
60
  uScrollBarReturn: {
61
61
  isScrollEnd: Ref<boolean>;
@@ -67,7 +67,7 @@ declare const _default: {
67
67
  init: () => void;
68
68
  modifySliderEventListener: (action: "add" | "remove") => void;
69
69
  };
70
- }> & {} & import("vue").ComponentCustomProperties;
70
+ }> & {} & import("vue").ComponentCustomProperties & {};
71
71
  __isFragment?: undefined;
72
72
  __isTeleport?: undefined;
73
73
  __isSuspense?: undefined;
@@ -82,14 +82,14 @@ declare const _default: {
82
82
  init: () => void;
83
83
  modifySliderEventListener: (action: "add" | "remove") => void;
84
84
  };
85
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
85
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
86
86
  $slots: {
87
87
  default: (_: {}) => any;
88
88
  };
89
89
  });
90
90
  export default _default;
91
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
92
- declare type __VLS_TypePropsToRuntimeProps<T> = {
91
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
92
+ type __VLS_TypePropsToRuntimeProps<T> = {
93
93
  [K in keyof T]-?: {} extends Pick<T, K> ? {
94
94
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
95
95
  } : {
@@ -97,7 +97,7 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
97
97
  required: true;
98
98
  };
99
99
  };
100
- declare type __VLS_WithDefaults<P, D> = {
100
+ type __VLS_WithDefaults<P, D> = {
101
101
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
102
102
  default: D[K];
103
103
  } : P[K];
@@ -1,5 +1,5 @@
1
1
  import type { Ref } from "vue";
2
- export declare type ScrollBarOptions = {
2
+ export type ScrollBarOptions = {
3
3
  containerEl: Ref<HTMLElement | null>;
4
4
  sliderEl: Ref<HTMLElement | null>;
5
5
  autoHeight?: boolean;
@@ -21,8 +21,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
21
21
  color: string;
22
22
  }>;
23
23
  export default _default;
24
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
- declare type __VLS_TypePropsToRuntimeProps<T> = {
24
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ type __VLS_TypePropsToRuntimeProps<T> = {
26
26
  [K in keyof T]-?: {} extends Pick<T, K> ? {
27
27
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
28
  } : {
@@ -30,7 +30,7 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
30
30
  required: true;
31
31
  };
32
32
  };
33
- declare type __VLS_WithDefaults<P, D> = {
33
+ type __VLS_WithDefaults<P, D> = {
34
34
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
35
35
  default: D[K];
36
36
  } : P[K];
@@ -6,8 +6,8 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
6
6
  position: "top" | "middle" | "bottom";
7
7
  }>>>, {}>;
8
8
  export default _default;
9
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
- declare type __VLS_TypePropsToRuntimeProps<T> = {
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToRuntimeProps<T> = {
11
11
  [K in keyof T]-?: {} extends Pick<T, K> ? {
12
12
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
13
  } : {
@@ -0,0 +1,44 @@
1
+ import { type Ref } from "vue";
2
+ interface DragOptions {
3
+ attribute: string;
4
+ selectWay?: "row" | "colum";
5
+ scrollOptions?: {
6
+ margin?: number;
7
+ startSpeed?: number;
8
+ maxSpeed?: number;
9
+ };
10
+ getSelectMap?: () => {
11
+ select?: (_: any[]) => void;
12
+ unselect?: (_: any[]) => void;
13
+ unselectAll?: () => void;
14
+ };
15
+ }
16
+ type ContainsRefType = Ref<HTMLElement | null | undefined>;
17
+ export declare function useDragSelect({ attribute, selectWay, scrollOptions, getSelectMap, }: DragOptions): {
18
+ init: (_containerEl: ContainsRefType) => boolean;
19
+ dragStart: (x: number, y: number) => void;
20
+ dragMove: (x: number, y: number, hook?: Function) => void;
21
+ dragEnd: () => void;
22
+ onScroll: () => void;
23
+ isSingleClick: () => boolean;
24
+ cancelSelectAllBySingleClick: () => void;
25
+ selectFn: import("vue").ComputedRef<() => void>;
26
+ selectRange: import("vue").ComputedRef<{
27
+ left: number;
28
+ top: number;
29
+ width: number;
30
+ height: number;
31
+ }>;
32
+ isPressing: Ref<boolean>;
33
+ containerEl: ContainsRefType;
34
+ observer: ResizeObserver;
35
+ };
36
+ export declare function useDragSelectByPc(options: DragOptions): {
37
+ init: (_containerEl: ContainsRefType) => false | undefined;
38
+ unMount: () => void;
39
+ };
40
+ export declare function useDragSelectByMobile(options: DragOptions, joinSelectMode?: Function, pressTime?: number): {
41
+ init: (_containerEl: ContainsRefType) => false | undefined;
42
+ unMount: () => void;
43
+ };
44
+ export {};
@@ -22,8 +22,8 @@ declare const _default: {
22
22
  $slots: Readonly<{
23
23
  [name: string]: import("vue").Slot | undefined;
24
24
  }>;
25
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
26
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
25
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
26
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
27
27
  $emit: (event: "scrollEnd") => void;
28
28
  $el: any;
29
29
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -67,7 +67,7 @@ declare const _default: {
67
67
  scrollEnd: () => void;
68
68
  }, string, {
69
69
  overscan: number;
70
- }> & {
70
+ }, {}, string> & {
71
71
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
72
72
  created?: ((() => void) | (() => void)[]) | undefined;
73
73
  beforeMount?: ((() => void) | (() => void)[]) | undefined;
@@ -82,11 +82,11 @@ declare const _default: {
82
82
  unmounted?: ((() => void) | (() => void)[]) | undefined;
83
83
  renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
84
84
  renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
85
- 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;
85
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
86
86
  };
87
87
  $forceUpdate: () => void;
88
88
  $nextTick: typeof import("vue").nextTick;
89
- $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
89
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
90
90
  } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
91
91
  data: any[];
92
92
  itemHeight: (d: any) => number;
@@ -124,7 +124,7 @@ declare const _default: {
124
124
  };
125
125
  }>;
126
126
  };
127
- }> & {} & import("vue").ComponentCustomProperties;
127
+ }> & {} & import("vue").ComponentCustomProperties & {};
128
128
  __isFragment?: undefined;
129
129
  __isTeleport?: undefined;
130
130
  __isSuspense?: undefined;
@@ -169,7 +169,7 @@ declare const _default: {
169
169
  scrollEnd: () => void;
170
170
  }, string, {
171
171
  overscan: number;
172
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
172
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
173
173
  $slots: {
174
174
  default: (_: {
175
175
  data: any;
@@ -178,8 +178,8 @@ declare const _default: {
178
178
  };
179
179
  });
180
180
  export default _default;
181
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
182
- declare type __VLS_TypePropsToRuntimeProps<T> = {
181
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
182
+ type __VLS_TypePropsToRuntimeProps<T> = {
183
183
  [K in keyof T]-?: {} extends Pick<T, K> ? {
184
184
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
185
185
  } : {
@@ -187,7 +187,7 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
187
187
  required: true;
188
188
  };
189
189
  };
190
- declare type __VLS_WithDefaults<P, D> = {
190
+ type __VLS_WithDefaults<P, D> = {
191
191
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
192
192
  default: D[K];
193
193
  } : P[K];
@@ -46,4 +46,4 @@ export declare function useVirtualList<T = any>(list: Ref<T[]>, options: UseVirt
46
46
  };
47
47
  }>;
48
48
  };
49
- export declare type UseVirtualListReturn = ReturnType<typeof useVirtualList>;
49
+ export type UseVirtualListReturn = ReturnType<typeof useVirtualList>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -32,4 +32,4 @@
32
32
  "vue": "^3.2.39",
33
33
  "vue-tsc": "^0.40.13"
34
34
  }
35
- }
35
+ }