Skip to content

Table 表格 动态添加树形结构未生效 #3378

@faithcoco

Description

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

Version

2.0.0-rc.4

Environment

1.6.4

Reproduction link

https://www.antdv.com/components/table-cn/#components-table-demo-ajax

Steps to reproduce

handleAddItem(record) { var child = [] child.push(JSON.parse(JSON.stringify(record))) record.children = child

console.log('data-->', JSON.stringify(this.detailsData))
},

What is expected?

列表动态变为树形结构

What is actually happening?

bug

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