Skip to content

merge 合并嵌套对象会修改原对象问题 #79

Description

@zkzgs

可复现的链接:

https://codesandbox.io/p/devbox/vxe-table-4-x-vue-3-0-wen-ti-yan-shi-forked-zsgffh?file=%2Fsrc%2Fviews%2FDemo1.vue%3A9%2C9-9%2C14&workspaceId=ws_92C7z26NFfMoAxM9fpPmty

问题描述与截图:

Image

这个问题我之前在table反馈过一次
x-extends/vxe-table#2582
后来用merge 合并时都需要先拷贝一下数据,避免源数据被修改
逻辑上是否可以修复?因为拷贝也是需要额外性能的

期望的结果:

No response

操作系统:

No response

浏览器版本:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixhas been fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions