keno-lee / vue-virt-list

【持续更新中】⚡️ 一个支持vue2&vue3的高性能虚拟(滚动)列表组件 👉🏻 轻量5KB 百万数据渲染 满帧率滚动 丰富场景支持 📑 [vue虚拟列表] [vue虚拟滚动列表][vue虚拟树] [vue-virtual-list] [vue-virtual-scroll-list] [vue-virtual-scroller] [vue-virt-tree]
https://keno-lee.github.io/vue-virt-list/
MIT License
294 stars 39 forks source link

绑定的数据源发生变化之后,视图不会改变 #41

Closed Jerry930326 closed 4 months ago

Jerry930326 commented 4 months ago

视图show过之后,数据源在发生增删的情况下,视图的数据不会变化,需要手动调用一次forceUpdate方法

keno-lee commented 4 months ago

如果你使用了shallowRef,那么就需要手动更新,是符合逻辑的 https://keno-lee.github.io/vue-virt-list/zh/examples/huge-data

Jerry930326 commented 4 months ago

如果你使用了shallowRef,那么就需要手动更新,是符合逻辑的 https://keno-lee.github.io/vue-virt-list/zh/examples/huge-data

没有使用shallowRef,使用的ref

keno-lee commented 4 months ago

list.length是否发生变化?你可以加我微信