Skip to content

Tree component ,after clicking, the data format of the data source will change #5412

@yemaozi999

Description

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

Version

3.1.0-rc.3

Environment

node16

Reproduction link

Edit on CodeSandbox

Steps to reproduce

The default selection data of the tree under checkstrict is a one-dimensional array [1,2,3], but it becomes an object when clicked

What is expected?

The incoming data is one-dimensional, the dynamic data after clicking is one-dimensional, or the incoming object array after click is also object array

What is actually happening?

The default selection data of the tree under checkstrict is a one-dimensional array, but once clicked, it becomes a object array of checked: and halfchecked,When I first passed the object array, the whole tree couldn't be clicked,
and halfChecked is empty all the time

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