Skip to content

TreeSelect 树选择 当文字不在一行后,虚拟滚动失效。问题不稳定,有的浏览器可以。 #7306

@791197071

Description

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

Version

3.2.10

Environment

mac、vue3.0 ts、 Chrome120

Reproduction link

https://www.antdv.com/components/tree-select-cn

Steps to reproduce

当文字换行后,虚拟滚动失效。初步猜测初始高度计算错误,不应该按照一行计算。还有可能数据量大,页面还没渲染完毕,默认按照一行计算了,到时虚拟滚动失效。

What is expected?

问题解决,当数据换行后,虚拟滚动不会失效,下拉树可以正常显示

What is actually happening?

TreeSelect 树选择 当文字超出换行,鼠标滚动不了,虚拟滚动失效。问题不稳定,有的浏览器可以。


还有希望不要隐藏滚动条,目前只要滚动才显示滚动条,体验不优化

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