Skip to content

Add an API: when a-cascader clicks the first level option, the second level option automatically slides to the top #4837

@michealiu

Description

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

What problem does this feature solve?

假设cascader的一级选项对应的二级选项的值有很多,会形成滚动。初始选择一个一级选项,并滑动它的二级选项到最下方之后,重新选择另外一个一级选项,这时它对应的二级选项会默认保持在最下方,需要手动滑回最上方。

What does the proposed API look like?

可以添加一个配置选项,设置为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