From 7c660f84455f6c9877a7c7f3be66d4fc3ebd9794 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 28 Feb 2024 12:53:03 +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=E5=AE=BD=E9=AB=98=E6=AF=94=E4=BF=9D=E6=8C=81?= =?UTF-8?q?=E6=97=B6=E5=A4=A7=E5=B9=85=E5=BA=A6=E7=A7=BB=E5=8A=A8=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E6=AF=94=E4=BE=8B=E6=94=B9=E5=8F=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/data-visualization/canvas/Shape.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue index 8ce235ae45..179c704cff 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue @@ -662,13 +662,13 @@ const handleMouseDownOnPoint = (point, e) => { // 保持宽高比例是相对高度偏移量 const adaptorHeightOffset = widthOffset / originRadio if (pointCorner.includes(point)) { - style.height = defaultStyle.value.height + adaptorHeightOffset + style.height = defaultStyle.value.width / originRadio } else if (Math.abs(widthOffset) > Math.abs(adaptorWidthOffset)) { // 调整高度 - style.height = defaultStyle.value.height + adaptorHeightOffset + style.height = defaultStyle.value.width / originRadio } else { // 调整宽度 - style.width = defaultStyle.value.width + adaptorWidthOffset + style.width = defaultStyle.value.height * originRadio } }