|
@@ -1,7 +1,7 @@
|
|
import { DesignComp } from "@/modules/editor/objects/DesignTemp/DesignComp";
|
|
import { DesignComp } from "@/modules/editor/objects/DesignTemp/DesignComp";
|
|
import { css } from "@linaria/core";
|
|
import { css } from "@linaria/core";
|
|
import { defineUI } from "queenjs";
|
|
import { defineUI } from "queenjs";
|
|
-import { onUnmounted, reactive } from "vue";
|
|
|
|
|
|
+import { onUnmounted, reactive, onMounted , ref} from "vue";
|
|
import { Container, Draggable } from "vue-dndrop";
|
|
import { Container, Draggable } from "vue-dndrop";
|
|
import { useEditor } from "../../..";
|
|
import { useEditor } from "../../..";
|
|
import { HotKeyCtrl } from "../../../controllers/HotKeyCtrl";
|
|
import { HotKeyCtrl } from "../../../controllers/HotKeyCtrl";
|
|
@@ -25,11 +25,18 @@ export default defineUI({
|
|
});
|
|
});
|
|
|
|
|
|
const NotFoundComp = () => <div>无效的组件</div>;
|
|
const NotFoundComp = () => <div>无效的组件</div>;
|
|
|
|
+ const flagRef = ref();
|
|
|
|
|
|
return () => {
|
|
return () => {
|
|
const pageRoot = helper.findRootComp();
|
|
const pageRoot = helper.findRootComp();
|
|
if (!pageRoot) return;
|
|
if (!pageRoot) return;
|
|
const streamCardIndex = store.streamCardIds.indexOf(store.currStreamCardId)
|
|
const streamCardIndex = store.streamCardIds.indexOf(store.currStreamCardId)
|
|
|
|
+ if (!flagRef.value ) {
|
|
|
|
+ flagRef.value = true;
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ actions.onViewReady();
|
|
|
|
+ }, 0);
|
|
|
|
+ }
|
|
|
|
|
|
return (
|
|
return (
|
|
<div class="scrollbar overflow-y-auto h-1/1">
|
|
<div class="scrollbar overflow-y-auto h-1/1">
|
|
@@ -57,6 +64,7 @@ export default defineUI({
|
|
{children}
|
|
{children}
|
|
</Container>
|
|
</Container>
|
|
{store.currCompId &&
|
|
{store.currCompId &&
|
|
|
|
+ store.currStreamCardId &&
|
|
store.currCompId !== "root" &&
|
|
store.currCompId !== "root" &&
|
|
!store.textEditingState &&
|
|
!store.textEditingState &&
|
|
store.currCompId !== store.currStreamCardId &&
|
|
store.currCompId !== store.currStreamCardId &&
|