We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
支持展开面板已选项居中
The text was updated successfully, but these errors were encountered:
Hello,是指开启虚拟滚动时,选中选项后再次打开选项列表时将所选项垂直居中吗
Sorry, something went wrong.
@l123wx 目前仅 TreeSelect 在选项展示情况下支持了虚拟化,Cascader 的虚拟化仅在搜索状态中,因此和此需求无关。
对于单选的 TreeSelect,无论启用虚拟化/未启用虚拟化,在面板打开时候,如果面板中有已选择项目,则打开面板时候,将滚动到已选项目。
对于单选的 Cascader, 在面板打开时候,如果面板中有已选择项目,则打开面板时候,将滚动到以选择项目。
为什么仅处理单选,不处理多选呢? TreeSelect, Cascader 是支持收起展开的, 通常来将讲,如果有多个选择项目的话,应该滚动到第一个选择项目,但是如果第一个选择项目是收起状态,则需要滚动到其他项目,具体的滚动行为受到展开收起的影响,比较复杂,不确定用户具体的需要。因此不做处理。
YyumeiZhang
No branches or pull requests
Which Component Need Enhancement 期望新增功能的组件
What does the proposed API look like 期望支持的API
Feature Description 功能描述
支持展开面板已选项居中
Additional information 补充说明
The text was updated successfully, but these errors were encountered: