|
@@ -17,7 +17,7 @@ export const editActions = EditorModule.action({
|
|
|
this.actions.pickComp(compId);
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// if (
|
|
|
// index === undefined &&
|
|
|
// this.store.currComp?.compKey === "Container"
|
|
@@ -42,10 +42,12 @@ export const editActions = EditorModule.action({
|
|
|
// const comps = this.helper.getCompTrees(compId);
|
|
|
// nextCompId = comps[1].id;
|
|
|
// }
|
|
|
- // if (compId !== this.store.currCompId) {
|
|
|
-
|
|
|
+ this.store.currCompId = "";
|
|
|
+ this.store.currStreamCardId = "";
|
|
|
this.store.setCurrComp(compId);
|
|
|
- // }
|
|
|
+ if (this.store.currCompId == this.store.currStreamCardId) {
|
|
|
+ this.controls.transferCtrl.destroy();
|
|
|
+ }
|
|
|
},
|
|
|
// 切换到父组件
|
|
|
pickParentComp(compId: string) {
|
|
@@ -155,6 +157,8 @@ export const editActions = EditorModule.action({
|
|
|
|
|
|
// 设置组件变换
|
|
|
setCompTransform(comp: DesignComp, transform: Layout["transform"]) {
|
|
|
+ if (!comp) return;
|
|
|
+
|
|
|
comp.layout.transform = transform;
|
|
|
console.log(comp);
|
|
|
},
|