Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多Tab导航栏,如果先把每个tab的list渲染完,切换tab时,首屏cell无法触发appear事件 #36

Open
lshnltt opened this issue Oct 12, 2019 · 0 comments

Comments

@lshnltt
Copy link

lshnltt commented Oct 12, 2019

多tab页面,如果进入页面把所有的tab的list(部分为空)都展示的话,则所有的list在首次进入会触发mounted事件,导致appearWatched最终指向最后一个tab下的list,这样切换到其他tab时,新增cell会触发对应list的updated周期函数,调用debouncedWatchAppear方法,由于appearWatched指向最后一个tab下的list,此时最后一个tab的list没有数据,无法触发其他tab下list内元素的appear事件
image
image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant