Akryum / vue-virtual-scroller

⚡️ Blazing fast scrolling for any amount of data
https://vue-virtual-scroller-demo.netlify.app
9.43k stars 901 forks source link

有没有内置的监听滚动的事件? #798

Closed snow-sprite closed 1 year ago

snow-sprite commented 1 year ago

Clear and concise description of the problem

有没有内置的监听滚动的事件?因为列表每个td单元都是动态更新的,一滚动就会动态刷新td单元格,造成页面卡顿。所以想在滚动时不做任何操作,停止滚动后开始渲染td单元格数据

Suggested solution

添加一个监听滚动和停止滚动的事件

Alternative

No response

Additional context

No response

Validations

snow-sprite commented 1 year ago

solved.

<DynamicScroller
  ......
  @scroll.native.passive="handleScroll"
>
  <template v-slot="{ item, index, active }">
    <DynamicScrollerItem
      ......
    >
    </template>
</DynamicScroller>