chore: cleanup

This commit is contained in:
Dsaquel
2025-05-22 00:31:17 +02:00
parent 92e9533d1b
commit c0a82c4d56
2 changed files with 2 additions and 15 deletions

View File

@@ -1,13 +1,7 @@
<template>
<el-scrollbar
ref="scrollbarRef"
height="400px"
always
:end-reached="loadMore"
@scroll="scroll"
>
<el-scrollbar ref="scrollbarRef" height="400px" always @scroll="scroll">
<div ref="innerRef">
<p v-for="item in num" :key="item" class="scrollbar-demo-item">
<p v-for="item in 20" :key="item" class="scrollbar-demo-item">
{{ item }}
</p>
</div>
@@ -29,10 +23,6 @@ type Arrayable<T> = T | T[]
const max = ref(0)
const value = ref(0)
const num = ref(20)
const loadMore = () => {
num.value += 5
}
const innerRef = ref<HTMLDivElement>()
const scrollbarRef = ref<ScrollbarInstance>()

View File

@@ -125,6 +125,3 @@ export const scrollbarEmits = {
export type ScrollbarEmits = typeof scrollbarEmits
export type ScrollbarInstance = InstanceType<typeof Scrollbar> & unknown
//#import { useScroll } from '@vueuse/core'
//#import type { UnwrapNestedRefs } from 'vue'