Skip to content

Tree-Select组件,在antd的2.x 中,选项使用了disabled为true的属性,但是input框中仍能取消勾选 #7794

@rose-sun

Description

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

Version

2.2.6

Environment

vue: 3.2.6

Reproduction link

Edit on CodeSandbox

Steps to reproduce

如示例,Child Node3已被选中,但是被禁用了,仍然可以通过input框中的 clearIcon 去叉掉这个选项,这不符合禁用逻辑。

What is expected?

被禁用的选项,在input框中不显示 clearIcon,用户无法通过叉号取消选项。

What is actually happening?

antd的2.x版本,不支持自定义 #tagRender 中的closable。除了让项目中的antd版本升级,有没有别的解决办法?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions