mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(editor): 复制组件后添加组件id一直是之前复制的组件的id
This commit is contained in:
parent
ce5ac67b2d
commit
6eb1f2418a
@ -98,10 +98,10 @@ class Props extends BaseService {
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return cloneDeep({
|
return {
|
||||||
...getDefaultPropsValue(type),
|
...getDefaultPropsValue(type),
|
||||||
...mergeWith(this.state.propsValueMap[type] || {}, defaultValue),
|
...mergeWith(cloneDeep(this.state.propsValueMap[type] || {}), cloneDeep(defaultValue)),
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user