From eced67ed0b3b0b2ac82eee95159c1daa7b67cffa Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 2 Sep 2024 11:22:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20?= =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC=E4=BA=8B=E4=BB=B6=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=BA=E5=88=B7=E6=96=B0=EF=BC=8C=E9=A2=84=E8=A7=88=E6=97=B6?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=88=B7=E6=96=B0=E5=90=8E=E4=BC=9A=E6=94=B9?= =?UTF-8?q?=E5=8F=98=E5=AF=8C=E6=96=87=E6=9C=AC=E7=BB=84=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/utils/canvasUtils.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/core-frontend/src/utils/canvasUtils.ts b/core/core-frontend/src/utils/canvasUtils.ts index dbb286d0d3..37a45f8464 100644 --- a/core/core-frontend/src/utils/canvasUtils.ts +++ b/core/core-frontend/src/utils/canvasUtils.ts @@ -250,6 +250,11 @@ export function refreshOtherComponent(dvId, busiFlag) { for (let i = 0; i < componentData.value.length; i++) { const component = componentData.value[i] if (refreshIdList.includes(component.id) && canvasDataResultMap[component.id]) { + const { top, left, height, width } = componentData.value[i] + canvasDataResultMap[component.id].style.top = top + canvasDataResultMap[component.id].style.left = left + canvasDataResultMap[component.id].style.height = height + canvasDataResultMap[component.id].style.width = width componentData.value[i] = canvasDataResultMap[component.id] } }