|
@@ -1,7 +1,7 @@
|
|
|
import { DesignComp } from "@/modules/editor/objects/DesignTemp/DesignComp";
|
|
|
import { css } from "@linaria/core";
|
|
|
import { defineUI } from "queenjs";
|
|
|
-import { onUnmounted, reactive, ref } from "vue";
|
|
|
+import { onUnmounted, reactive, ref , nextTick} from "vue";
|
|
|
import { Container, Draggable } from "vue-dndrop";
|
|
|
import { useEditor } from "../../..";
|
|
|
import { HotKeyCtrl } from "../../../controllers/HotKeyCtrl";
|
|
@@ -91,7 +91,10 @@ export default defineUI({
|
|
|
onClick={() => {
|
|
|
actions.selectObjs([]);
|
|
|
actions.pickComp(item, false);
|
|
|
- controls.editorCtrl.autoInScreen();
|
|
|
+
|
|
|
+ nextTick(()=>{
|
|
|
+ controls.editorCtrl.autoInScreen();
|
|
|
+ })
|
|
|
}}
|
|
|
>
|
|
|
{store.streamCardIds.length > 1 && (
|