From 81c711ca41f7e06a00d2faa8177039392887daf4 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 28 Feb 2024 10:18:38 +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=AF=B9=E6=A0=87=E7=BA=BF=E6=9C=AA=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data-visualization/canvas/MarkLine.vue | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/core/core-frontend/src/components/data-visualization/canvas/MarkLine.vue b/core/core-frontend/src/components/data-visualization/canvas/MarkLine.vue index feab393c41..261fedf1f6 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/MarkLine.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/MarkLine.vue @@ -26,7 +26,7 @@ const hideLine = () => { } const showLine = (isDownward, isRightward) => { - const lines = currentInstance.ctx.$refs + const linesRef = currentInstance.ctx.$refs const components = componentData.value const curComponentStyle = getComponentRotatedStyle(curComponent.value.style) const curComponentHalfWidth = curComponentStyle.width / 2 @@ -44,14 +44,14 @@ const showLine = (isDownward, isRightward) => { top: [ { isNearly: isNearly(curComponentStyle.top, top), - lineNode: lines.xt[0], // xt + lineNode: linesRef.xt[0], // xt line: 'xt', dragShift: top, lineShift: top }, { isNearly: isNearly(curComponentStyle.bottom, top), - lineNode: lines.xt[0], // xt + lineNode: linesRef.xt[0], // xt line: 'xt', dragShift: top - curComponentStyle.height, lineShift: top @@ -62,21 +62,21 @@ const showLine = (isDownward, isRightward) => { curComponentStyle.top + curComponentHalfHeight, top + componentHalfHeight ), - lineNode: lines.xc[0], // xc + lineNode: linesRef.xc[0], // xc line: 'xc', dragShift: top + componentHalfHeight - curComponentHalfHeight, lineShift: top + componentHalfHeight }, { isNearly: isNearly(curComponentStyle.top, bottom), - lineNode: lines.xb[0], // xb + lineNode: linesRef.xb[0], // xb line: 'xb', dragShift: bottom, lineShift: bottom }, { isNearly: isNearly(curComponentStyle.bottom, bottom), - lineNode: lines.xb[0], // xb + lineNode: linesRef.xb[0], // xb line: 'xb', dragShift: bottom - curComponentStyle.height, lineShift: bottom @@ -85,14 +85,14 @@ const showLine = (isDownward, isRightward) => { left: [ { isNearly: isNearly(curComponentStyle.left, left), - lineNode: lines.yl[0], // yl + lineNode: linesRef.yl[0], // yl line: 'yl', dragShift: left, lineShift: left }, { isNearly: isNearly(curComponentStyle.right, left), - lineNode: lines.yl[0], // yl + lineNode: linesRef.yl[0], // yl line: 'yl', dragShift: left - curComponentStyle.width, lineShift: left @@ -103,21 +103,21 @@ const showLine = (isDownward, isRightward) => { curComponentStyle.left + curComponentHalfWidth, left + componentHalfWidth ), - lineNode: lines.yc[0], // yc + lineNode: linesRef.yc[0], // yc line: 'yc', dragShift: left + componentHalfWidth - curComponentHalfWidth, lineShift: left + componentHalfWidth }, { isNearly: isNearly(curComponentStyle.left, right), - lineNode: lines.yr[0], // yr + lineNode: linesRef.yr[0], // yr line: 'yr', dragShift: right, lineShift: right }, { isNearly: isNearly(curComponentStyle.right, right), - lineNode: lines.yr[0], // yr + lineNode: linesRef.yr[0], // yr line: 'yr', dragShift: right - curComponentStyle.width, lineShift: right