@tmagic/editor 1.0.0-beta.10 → 1.0.0-beta.11
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.
|
@@ -996,8 +996,8 @@
|
|
|
996
996
|
parentNodeItems[index] = newConfig;
|
|
997
997
|
if (`${newConfig.id}` === `${this.get("node").id}`) {
|
|
998
998
|
this.set("node", newConfig);
|
|
999
|
-
this.get("stage")?.update({ config: lodashEs.cloneDeep(newConfig), root: this.get("root") });
|
|
1000
999
|
}
|
|
1000
|
+
this.get("stage")?.update({ config: lodashEs.cloneDeep(newConfig), root: this.get("root") });
|
|
1001
1001
|
if (newConfig.type === schema.NodeType.PAGE) {
|
|
1002
1002
|
this.set("page", newConfig);
|
|
1003
1003
|
}
|
|
@@ -1115,7 +1115,12 @@
|
|
|
1115
1115
|
this.isHistoryStateChange = true;
|
|
1116
1116
|
await this.update(value.data);
|
|
1117
1117
|
this.set("modifiedNodeIds", value.modifiedNodeIds);
|
|
1118
|
-
setTimeout(() =>
|
|
1118
|
+
setTimeout(async () => {
|
|
1119
|
+
if (!value.nodeId)
|
|
1120
|
+
return;
|
|
1121
|
+
await this.select(value.nodeId);
|
|
1122
|
+
this.get("stage")?.select(value.nodeId);
|
|
1123
|
+
}, 0);
|
|
1119
1124
|
}
|
|
1120
1125
|
async toggleFixedPosition(dist, src, root) {
|
|
1121
1126
|
let newConfig = lodashEs.cloneDeep(dist);
|