فهرست منبع

Merge branch 'v1.2.0-ga' of http://192.168.0.115:3000/bill/fuse-code into v1.2.0-ga

xzw 4 ماه پیش
والد
کامیت
39da6aa418
2فایلهای تغییر یافته به همراه8 افزوده شده و 5 حذف شده
  1. 1 1
      src/layout/model-list/style.scss
  2. 7 4
      src/sdk/association/animation.ts

+ 1 - 1
src/layout/model-list/style.scss

@@ -51,7 +51,7 @@
   height          : 34px;
   border-radius   : 17px;
   margin-left     : 10px;
-  bottom          : calc(10px + var(--editor-menu-bottom));
+  bottom          : 10px;
   left            : calc(var(--left-pano-left) + var(--left-pano-width));
   padding         : 0 5px;
 

+ 7 - 4
src/sdk/association/animation.ts

@@ -14,7 +14,7 @@ import sdk, {
   SDK,
   sdk as _sdk,
 } from "../sdk";
-import { computed, nextTick, reactive, ref, watch, watchEffect } from "vue";
+import { computed, nextTick, reactive, ref, toRaw, watch, watchEffect } from "vue";
 import { ams } from "@/store/animation";
 import { mergeFuns, uuid } from "@/components/drawing/hook";
 import { getPathNode } from "./path";
@@ -266,9 +266,12 @@ export const addPath = (
     watchEffect(() =>
       amMap[key]?.paths[data.id]?.changeDuration(data.duration)
     ),
-    watchEffect(() => {
-      path.value && amMap[key]?.paths[data.id]?.changePath(path.value);
-    })
+    watch(path, (p) => {
+      console.log('0.0 changePath', p)
+      const path = toRaw(p)
+      path && amMap[key]?.paths[data.id]?.changePath(path);
+
+    }, {immediate: true})
   );
 
   const stopWatch = watch(