Skip to content

Tree树形控件:在选中子节点1-1-1时,变更checkStrictly的值为false,此时应该为非受控模式,父节点1-1显示选中状态,但是checkedKeys的值并没有1-1 #3431

@NiKlaus-K

Description

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

Version

1.7.2

Environment

windows10 1607 Chrome 87.0.4280.88 vue 2.6.11

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Tree树形控件
1、选中1-1-1
2、点击“父子关联”按钮,使checkStrictly变为false
3、检查checkedKeys的值,发现“1-1”并没有在选中列表中

What is expected?

在切换checkStrictly的时候,重新获取父子关联后的checkedKeys

What is actually happening?

在选中子节点1-1-1时,变更checkStrictly的值为false,此时应该为非受控模式,父节点1-1显示选中状态,但是checkedKeys的值并没有1-1

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