Skip to content
New issue

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

Tree组件half-checked-keys的绑定值不正确 #3095

Open
1 task
JasperPan opened this issue Apr 19, 2024 · 1 comment
Open
1 task

Tree组件half-checked-keys的绑定值不正确 #3095

JasperPan opened this issue Apr 19, 2024 · 1 comment

Comments

@JasperPan
Copy link

Basic Info

  • Package Name And Version: @arco-design/web-vue@2.55.1
  • Framework version: 3.4.23
  • Browser: chrome124.0.0.0

Extra info

What is expected?

half-checked-keys的值包含未直接选中的父节点

Steps to reproduce

步骤1. check-strictly设置为false
步骤2. 双向绑定checked-keys和half-checked-keys
步骤3. checked-keys赋值,包含所有子节点的key
步骤4. 子节点和父节点均为选中状态
步骤5. 打印checked-keys的值,为所有子节点的key,同步骤3
步骤6. 打印half-checked-keys的值,为空数组(不包含父节点)

修改步骤3则正常
步骤3:checked-keys赋值,仅包含部分子节点的key
步骤6:half-checked-keys的值包含父节点

也可能是我对API的使用和理解有偏差,若是如此望指明

@dddddd1
Copy link

dddddd1 commented Apr 24, 2024

我half-checked-keys 一直没有值不知道要怎么设置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants