hilongjw / vue-recyclerview

Mastering Large Lists with the vue-recyclerview
https://hilongjw.github.io/vue-recyclerview/
MIT License
1.45k stars 121 forks source link

能否实现拉到底的时候再加载,而不是快拉到底时提前预加载 #1

Closed Smith-Cruise closed 7 years ago

Smith-Cruise commented 7 years ago

能否实现拉到底的时候再加载,而不是快拉到底时提前预加载,因为这样的用户体验更好一点

hilongjw commented 7 years ago

目前实现的机制的持续滚动加载,如果数据暂未加载完成会使用 tombstone 占位。滚动到底部再加载不是很符合该组件的设计。

shaoxiong789 commented 7 years ago

既然你的item 是绝对定位的,不懂你为啥还需要大量的tombstone隐藏元素来占位,好像没有必要

hilongjw commented 7 years ago

因为用户滑动是不确定的,预加载会提升滑动性能。其实也可以做的不使用 tombstone 占位

prerender应该大于当前视图展示的数据 ,如

 <RecyclerView 
      :prerender="5"
 ></RecyclerView>