@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.
package/dist/tmagic-editor.es.js
CHANGED
|
@@ -978,8 +978,8 @@ class Editor$1 extends BaseService {
|
|
|
978
978
|
parentNodeItems[index] = newConfig;
|
|
979
979
|
if (`${newConfig.id}` === `${this.get("node").id}`) {
|
|
980
980
|
this.set("node", newConfig);
|
|
981
|
-
this.get("stage")?.update({ config: cloneDeep(newConfig), root: this.get("root") });
|
|
982
981
|
}
|
|
982
|
+
this.get("stage")?.update({ config: cloneDeep(newConfig), root: this.get("root") });
|
|
983
983
|
if (newConfig.type === NodeType.PAGE) {
|
|
984
984
|
this.set("page", newConfig);
|
|
985
985
|
}
|
|
@@ -1097,7 +1097,12 @@ class Editor$1 extends BaseService {
|
|
|
1097
1097
|
this.isHistoryStateChange = true;
|
|
1098
1098
|
await this.update(value.data);
|
|
1099
1099
|
this.set("modifiedNodeIds", value.modifiedNodeIds);
|
|
1100
|
-
setTimeout(() =>
|
|
1100
|
+
setTimeout(async () => {
|
|
1101
|
+
if (!value.nodeId)
|
|
1102
|
+
return;
|
|
1103
|
+
await this.select(value.nodeId);
|
|
1104
|
+
this.get("stage")?.select(value.nodeId);
|
|
1105
|
+
}, 0);
|
|
1101
1106
|
}
|
|
1102
1107
|
async toggleFixedPosition(dist, src, root) {
|
|
1103
1108
|
let newConfig = cloneDeep(dist);
|