|
@@ -129,6 +129,7 @@ export const editActions = EditorModule.action({
|
|
|
);
|
|
|
const currCard = this.helper.findComp(cardId) as DesignComp;
|
|
|
|
|
|
+ debugger
|
|
|
const comp = this.store.addUserCard(result);
|
|
|
|
|
|
const compId = comp.id;
|
|
@@ -396,6 +397,13 @@ export const editActions = EditorModule.action({
|
|
|
this.helper.clearUnusedComps(data.compMap, comp.id);
|
|
|
data.compMap.root = data.compMap[comp.id];
|
|
|
data.compMap.root.id = "root";
|
|
|
+
|
|
|
+ //清除平移距离
|
|
|
+ const mtx = Matrix.createFromMatrixStr(data.compMap.root.layout.transformMatrix as string);
|
|
|
+ mtx.tx = 0;
|
|
|
+ mtx.ty = 0;
|
|
|
+ data.compMap.root.layout.transformMatrix = mtx.getMatrixStr();
|
|
|
+
|
|
|
delete data.compMap[comp.id];
|
|
|
|
|
|
queenApi.showLoading("保存中");
|
|
@@ -557,7 +565,7 @@ export const editActions = EditorModule.action({
|
|
|
const parentChilds = (card.children.default || []).filter(item=>item != groupComp.id);
|
|
|
parentChilds.push(...childs);
|
|
|
card.children.default = childs;
|
|
|
-
|
|
|
+
|
|
|
this.actions.selectObjs([childs[0]]);
|
|
|
},
|
|
|
|