文档搜索
scrollToIndex
scrollToOffset
getTotalSize
getVirtualItems
getVirtualIndexes
通过组件 onReady 可获取虚拟列表实例
onReady
scrollToIndex(index: number, options?: ScrollToIndexOptions)
滚动到指定索引,固定尺寸支持配置 behavior: smooth 配置
behavior: smooth
scrollToOffset(offset: number, options?: ScrollToIndexOptions)
滚动到指定偏移,固定尺寸支持配置 behavior: smooth 配置
getTotalSize();
获取虚拟列表总的大小
getVirtualItems();
获取当前有效的虚拟项
getVirtualIndexes();
获取当前有效的虚拟项索引