|
@@ -885,8 +885,12 @@ export const editActions = EditorModule.action({
|
|
|
const sels = this.store.selected.slice(0);
|
|
|
const chils = this.store.currStreamCard.children.default || [];
|
|
|
const newChilds :any = [];
|
|
|
+ const groupChilds :any = [];
|
|
|
chils.forEach(c=>{
|
|
|
if (sels.indexOf(c) == -1) newChilds.push(c);
|
|
|
+ else {
|
|
|
+ groupChilds.push(c);
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
newChilds.push(id);
|
|
@@ -902,7 +906,8 @@ export const editActions = EditorModule.action({
|
|
|
//再添加新的节点
|
|
|
comp.layout.size = [this.helper.pxToDesignSize(Objc.width), this.helper.pxToDesignSize(Objc.height)];
|
|
|
comp.layout.transformMatrix = selectCtrl.transferStyle.matrix;
|
|
|
- comp.children.default = sels;
|
|
|
+
|
|
|
+ comp.children.default = groupChilds;
|
|
|
|
|
|
this.actions.selectObjs([])
|
|
|
setTimeout(() => {
|