Skip to content

Commit

Permalink
sub: 滚动虚化补充
Browse files Browse the repository at this point in the history
  • Loading branch information
lengyibai committed Jul 7, 2024
1 parent 082cdf4 commit d435f96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/common/LibVirtualList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { onMounted, ref, watch } from "vue";
import KLoadMore from "@/components/business/Parts/K-LoadMore/index.vue";
import { _LoadMore, _debounce } from "@/utils/tool";
import { vScrollVirtualization } from "@/directives";
interface Props {
/** 数据列表 */
Expand Down Expand Up @@ -175,7 +176,7 @@ defineExpose({
</script>

<template>
<div ref="virtualListRef" class="lib-virtual-list" @scroll="handleScroll">
<div ref="virtualListRef" v-scroll-virtualization class="lib-virtual-list" @scroll="handleScroll">
<div
ref="fillListRef"
class="fill-list"
Expand Down

0 comments on commit d435f96

Please sign in to comment.