long Cai
long Cai
你可以使用一个中间组件,不需要把需要渲染的组件传递给他  
但是还有一种情况,就是接收到消息时,如果在底部,那么就需要保持滚动到底部的情况,你说的这种是每次都不会滚动到底部。 但是如果在底部,那么是需要保持滚动到底部的。我如何知道是否在底部,我目前是使用的伪代码  `throttle`是一个节流函数   我还有其他办法实现这种功能吗
好的,感谢你的付出! 但是npm仓库没有看见新版本0.2.1
但是真的沒有,淘宝npm镜像中也没有v0.2.1  `D:\vuecode\leaguetool>yarn add [email protected]` `yarn add v1.22.18` `warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix` `package managers...
Repository https://github.com/reactjser/vue3-virtual-scroll-list
> 我有一个类似的滚动问题。当我第一次渲染列表并调用 this.$refs.dynamicScrollerRef.scrollToBottom() 时。它首先将滚动呈现在顶部,然后滚动到底部,而不是呈现滚动已经在底部的列表。 > > 在添加列表中的所有项目后,我正在调用 this.$refs.dynamicScrollerRef.scrollToBottom() 。 Yes, I also encountered this problem, but I have solved it. You can view the repository I sent above. It helps...