Skip to content

table组件获取选中数据时候,数据格式化时候用了解构复制了一份数据的BUG #2619

@a526672351

Description

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

Version

1.6.4

Environment

chorme

Reproduction link

const newItem = { ...item };

Steps to reproduce

table表单勾选数据后,进行了数据编辑,获取勾选数据selectedRows

What is expected?

期望应该selectedRows实时和源data-source保持一致

What is actually happening?

selectedRows数据副本会和修改后数据不一致


flatArray 使用了 const newItem = { ...item }导致了引用类型拷贝导致,应该修改为const newItem = item 保留地址引用

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