Skip to content

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

Description

@lshnltt

多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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions