1import{b2 as n,B as a,C as i,D as f,ac as m,ao as _}from"./vendor-0c36d451.js";import{_ as p}from"./plugin-vue_export-helper-c27b6911.js";const S={name:"ScrollBar",components:{PerfectScrollbar:n},props:{options:{type:Object,default:()=>({})}},data(){return{settings:{maxScrollbarLength:10,minScrollbarLength:10}}},methods:{getCurrentScroll(){const{scrollArea:r}=this.$refs;if(!r)return{};const{offsetHeight:o,scrollHeight:e,scrollTop:l}=r;return{offsetHeight:o,scrollHeight:e-o,scrollTop:l}},onScroll(r){this.$emit("scroll",r)},scrollToBottom(r){this.$emit("scrolledToBottom",r)},scrollBy(r){return this.$refs.scrollArea.scrollBy(r)},scrollTo(r){return this.$refs.scrollArea.ps.element.scroll(r)}}};function h(r,o,e,l,s,t){const c=a("PerfectScrollbar");return i(),f(c,{ref:"scrollArea",settings:s.settings,onPsScrollY:t.onScroll,onPsYReachEnd:t.scrollToBottom},{default:m(()=>[_(r.$slots,"default")]),_:3},8,["settings","onPsScrollY","onPsYReachEnd"])}const g=p(S,[["render",h]]);export{g as S};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.