Skip to content

关闭卡片式标签页的弹窗中的所有标签页之后,弹窗自动关闭,再次添加几个新的标签页,标签页弹窗会自动打开。 #6653

@huangfuwenhao

Description

@huangfuwenhao
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.20

Environment

macOS Ventura 13.1; Microsoft Edge 版本 114.0.1823.43 (正式版本) (arm64); Vue 3.2.33;

Reproduction link

https://antdv.com/components/tabs-cn

Steps to reproduce

1.打开 antdv 官网。定位到标签页。找到“自定义新增页签触发器”的示例。
2.一直点击“ADD”新增标签页,直到出现"..."。
3.点击“...”打开标签页弹窗,点击标签页的“X”关掉弹窗中所有的标签页,直到弹窗自动关闭。
4.再次添加几个新的标签页,这时标签页弹窗会自动打开。

What is expected?

新增标签页到一定数量,标签页弹窗会自动打开。期望标签页弹窗不会自动打开。

What is actually happening?

根据调试,关掉标签页弹窗中的所有标签页后,弹窗会自动关闭,但是标记弹窗是否显示(sPopupVisible)的变量值依旧是 true,所以再次新增标签页到一定数量,标签页弹窗会自动打开。

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions