mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
chore: cleanup
This commit is contained in:
@@ -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>()
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user