From f403d1a2800148ad90c8639461a5778dd7036989 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 31 Oct 2024 10:12:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=91=E9=A9=AC=E7=81=AF=E6=9C=AA=E8=B7=9F?= =?UTF-8?q?=E9=9A=8F=E5=A4=A7=E5=B1=8F=E5=88=B7=E6=96=B0=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, 4 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/utils/canvasUtils.ts b/core/core-frontend/src/utils/canvasUtils.ts index 971c317222..9aa19c96eb 100644 --- a/core/core-frontend/src/utils/canvasUtils.ts +++ b/core/core-frontend/src/utils/canvasUtils.ts @@ -258,11 +258,14 @@ 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].style + const { top, left, height, width, fontSize } = componentData.value[i].style canvasDataResultMap[component.id].style.top = top canvasDataResultMap[component.id].style.left = left canvasDataResultMap[component.id].style.height = height canvasDataResultMap[component.id].style.width = width + if (fontSize) { + canvasDataResultMap[component.id].style.fontSize = fontSize + } componentData.value[i] = canvasDataResultMap[component.id] } }