2 lines
15 KiB
JavaScript
2 lines
15 KiB
JavaScript
![]() |
import{d as H,r as g,al as Z,bF as ie,dl as re,o as r,b as T,e as _,aM as ne,Z as ce,a0 as ue,bs as de,q as _e,bT as me,c as d,w as s,f as t,g as w,h,au as A,t as W,cs as G,B as ee,X as O,x as pe,bE as U,ai as z,F as he,ap as fe,aj as ve,a8 as ge,_ as be,de as ye,df as ke,cP as xe,cQ as we,a3 as te,l as Se}from"./index-BxI_8ir5.js";import{a as $e,_ as Ie}from"./CollapseItem-CUobLCgj.js";const ze={scrollbarProps:Object,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},Te=H({name:"VirtualList",props:ze,setup(u){const l=g(null),f=g(null);function m(){const{value:i}=l;i&&i.sync()}function S(i){var a;m(),(a=u.onScroll)===null||a===void 0||a.call(u,i)}function C(i){var a;m(),(a=u.onResize)===null||a===void 0||a.call(u,i)}function N(i){var a;(a=u.onWheel)===null||a===void 0||a.call(u,i)}function b(i,a){var k,x;typeof i=="number"?(k=f.value)===null||k===void 0||k.scrollTo(i,a??0):(x=f.value)===null||x===void 0||x.scrollTo(i)}function p(){var i;return(i=f.value)===null||i===void 0?void 0:i.listElRef}function $(){var i;return(i=f.value)===null||i===void 0?void 0:i.itemsElRef}return{scrollTo:b,scrollbarInstRef:l,virtualListInstRef:f,getScrollContainer:p,getScrollContent:$,handleScroll:S,handleResize:C,handleWheel:N}},render(){return Z(re,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",container:this.getScrollContainer,content:this.getScrollContent}),{default:()=>Z(ie,{ref:"virtualListInstRef",showScrollbar:!1,items:this.items,itemSize:this.itemSize,itemResizable:this.itemResizable,itemsStyle:this.itemsStyle,visibleItemsTag:this.visibleItemsTag,visibleItemsProps:this.visibleItemsProps,ignoreItemResize:this.ignoreItemResize,keyField:this.keyField,defaultScrollKey:this.defaultScrollKey,defaultScrollIndex:this.defaultScrollIndex,paddingTop:this.paddingTop,paddingBottom:this.paddingBottom,onScroll:this.handleScroll,onResize:this.handleResize,onWheel:this.handleWheel},{default:({item:u,index:l})=>{var f,m;return(m=(f=this.$slots).default)===null||m===void 0?void 0:m.call(f,{item:u,index:l})}})})}}),Ce={class:"inline-block",viewBox:"0 0 14 14",width:"1em",height:"1em"},je=_("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"},[_("path",{d:"M10.13 3.48L7.26.61a.36.36 0 0 0-.52 0L3.87 3.48m6.26 7.04l-2.87 2.87a.36.36 0 0 1-.52 0l-2.87-2.87"}),_("circle",{cx:"7",cy:"7",r:"1.25"})],-1),Be=[je];function De(u,l){return r(),T("svg",Ce,[...Be])}const Ne={name:"streamline-interface-arrows-vertical-scroll-point-move-scroll-vertical",render:De},Me={class:"inline-block",viewBox:"0 0 14 14",width:"1em",height:"1em"},Le=_("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"},[_("path",{d:"m5 11l.5 2l-2 .5"}),_("path",{d:"M5.5 13A6.76 6.76 0 0 1 1 7a6 6 0 0 1 .66-2.736M4.95 1.36a6 6 0 0 0-2.19 1.394M9 3l-.5-2l2-.5"}),_("path",{d:"M8.5 1c2.3.84 4.5 3.42 4.5 6a6 6 0 0 1-1.731 4.2M9 12.64c.22-.078.434-.168.642-.27M.5.5l13 13"})],-1),Re=[Le];function Fe(u,l){return r(),T("svg",Me,[...Re])}const Ve={name:"streamline-synchronize-disable",render:Fe},qe={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ee=_("path",{fill:"currentColor","fill-rule":"evenodd",d:"M2.93 11.2c.072-4.96 4.146-8.95 9.149-8.95a9.158 9.158 0 0 1 7.814 4.357a.75.75 0 0 1-1.277.786a7.658 7.658 0 0 0-6.537-3.643c-4.185 0-7.575 3.328-7.648 7.448l.4-.397a.75.75 0 0 1 1.057 1.065l-1.68 1.666a.75.75 0 0 1-1.056 0l-1.68-1.666A.75.75 0 1 1 2.528 10.8zm16.856-.733a.75.75 0 0 1 1.055 0l1.686 1.666a.75.75 0 1 1-1.054 1.067l-.41-.405c-.07 4.965-4.161 8.955-9.18 8.955a9.197 9.197 0 0 1-7.842-4.356a.75.75 0 1 1 1.277-.788a7.697 7.697 0 0 0 6.565 3.644c4.206 0 7.61-3.333 7.68-7.453l-.408.403a.7
|