vue-virtual-scroller 提供了 scrollToItem 方法用于滚动到特定项。 vue-virtual-scroller 是一个用于处理大量数据的虚拟滚动列表插件,它提供了多种方法和属性来优化滚动体验。其中,scrollToItem 方法允许你滚动到列表中的特定项。 使用scrollToItem 方法 要使用 scrollToItem 方法,你首先需要确保你的虚拟滚动组件已经正...
在当前实现中,scrollToItem(index) 滚动(并非总是很好,正如此错误报告中所述)具有指定索引的项目只有一种方式:仅将项目“移动”到可滚动区域的顶部。 我有一个案例,当项目需要移动到可滚动区域的中心或底部时。 我尝试了一个“包装器”解决方案,它可以做到: const itemsScroller = this.$refs.itemsScroller; ite...
-`scrollToIndex`:用于滚动到指定索引的元素。 你可以在`<virtual-scroller>`标签中通过这些配置选项来设置虚拟滚动组件的行为。例如: <virtual-scroller :items="data" mode="vertical" itemSize="40" buffer="10" keyField="id" variableSize scrollToIndex="0" > <!列表元素的渲染逻辑> </virtual-scroller...
For those who want to use this lib with Nuxt 3: 1 - Create apluginsfolder and a file namedvirtualScroller.ts 2 - Paste the code below inside the file: import"vue-virtual-scroller/dist/vue-virtual-scroller.css";import{DynamicScroller,DynamicScrollerItem,RecycleScroller,}from"vue-virtual-scroll...
RecycleScroller: gridItems is undefined when scrollToItem, fix #773 (#761) (7c809ad) sorting views not working, #772 (0b199d1) view not unused if item no longer present, fix #774 (bd51403) views not reused correctly (d5a8d75) Features allow throttling update calls (#764) (9ba57d...
I want to use DynamicScroll's scrollToItem method, but it is useless, how can i use it , is it useful?leahciMic commented Nov 13, 2019 @nabaonan can you describe what your expectations of the method are and what you observe? Do you get any errors in the logs? Does it scroll ...
y: ComputedRef<number> scroll position;virtualContainerHeight: ComputedRef<number> height of the virtual container;startIndex: ComputedRef<number> index of the first virtual item;endIndex: ComputedRef<number> index of the last virtual item;
zoosewu/vue-virtual-scrollerPublic forked fromAkryum/vue-virtual-scroller NotificationsYou must be signed in to change notification settings Fork0 Star0 Code Pull requests Actions Projects Security Insights Additional navigation options Files develop ...
* itemComponent Component 单条数据渲染 二选一:一个组件 * itemKey String 'id' 使用itemComponent 时需要,单项的唯一值的键名 itemProps Object 使用itemComponent 时需要,传给它的其他数据 * minItemSize Number 20 一个数据项的最小高度/宽度 getScrollElem Function () => $el 当组件根元素不是滚动层时...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...