@tmagic/editor 1.0.0-beta.6 → 1.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tmagic-editor.es.js
CHANGED
|
@@ -913,7 +913,7 @@ class Editor$1 extends BaseService {
|
|
|
913
913
|
throw new Error(`\u83B7\u53D6\u4E0D\u5230id\u4E3A${config2.id}\u7684\u8282\u70B9`);
|
|
914
914
|
const node = cloneDeep(toRaw(info.node));
|
|
915
915
|
let newConfig = await this.toggleFixedPosition(toRaw(config2), node, this.get("root"));
|
|
916
|
-
newConfig = mergeWith(node, newConfig, (objValue, srcValue) => {
|
|
916
|
+
newConfig = mergeWith(cloneDeep(node), newConfig, (objValue, srcValue) => {
|
|
917
917
|
if (Array.isArray(srcValue)) {
|
|
918
918
|
return srcValue;
|
|
919
919
|
}
|