ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

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

Open rose-sun opened this issue 1 year ago • 1 comments
trafficstars

  • [ ] 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版本升级,有没有别的解决办法?

rose-sun avatar Aug 20 '24 09:08 rose-sun

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Oct 20 '24 02:10 github-actions[bot]

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Oct 28 '25 01:10 github-actions[bot]