Jelajahi Sumber

fix: 处理移动记录的类型错误bug

奔跑的面条 3 tahun lalu
induk
melakukan
6d38d61816

+ 2 - 0
src/views/chart/ContentEdit/components/EditAlignLine/index.vue

@@ -85,6 +85,8 @@ const canvasPositionList = computed(() => {
       h: cloneDeep(chartEditStore.getEditCanvasConfig.height),
       x: 0,
       y: 0,
+      offsetX: 0,
+      offsetY: 0,
       zIndex: 0
     }
   }

+ 4 - 1
src/views/chart/ContentEdit/components/EditSelect/index.vue

@@ -41,7 +41,10 @@ watch(
       // 宽
       w: 0,
       // 高
-      h: 0
+      h: 0,
+      // 偏移
+      offsetX: 0,
+      offsetY: 0
     }
 
     // 处理位置