From 1fea0cc24f3165fed36d24409ee072c7fe573a4a Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 18 Apr 2024 11:38:17 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=9F=A9=E9=98=B5=E6=A0=BC=E5=AD=90=E5=B0=BA?= =?UTF-8?q?=E5=AF=B8=E7=B2=BE=E5=BA=A6=EF=BC=8C=E9=98=B2=E6=AD=A2=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=AE=BD=E5=BA=A6=E8=BF=87=E5=A4=A7=E9=80=A0=E6=88=90?= =?UTF-8?q?=E7=BB=86=E5=BE=AE=E7=9A=84=E5=81=8F=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/data-visualization/canvas/CanvasCore.vue | 4 ++-- .../chart/components/views/components/ChartComponentS2.vue | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue index 6521d3c225..540a8c0aa9 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue @@ -1061,8 +1061,8 @@ const clearInfoBox = e => { const cellInit = () => { // 此处向下取整 保留1位小数,why: 矩阵模式计算 x,y时 会使用 style.left/cellWidth style.top/cellWidth // 当初始状态细微的差距(主要是减少)都会导致 x,y 减少一个矩阵大小造成偏移, - cellWidth.value = Math.floor((baseWidth.value + baseMarginLeft.value) * 10) / 10 - cellHeight.value = Math.floor((baseHeight.value + baseMarginTop.value) * 10) / 10 + cellWidth.value = Math.floor((baseWidth.value + baseMarginLeft.value) * 1000) / 1000 + cellHeight.value = Math.floor((baseHeight.value + baseMarginTop.value) * 1000) / 1000 } const canvasSizeInit = () => { diff --git a/core/core-frontend/src/views/chart/components/views/components/ChartComponentS2.vue b/core/core-frontend/src/views/chart/components/views/components/ChartComponentS2.vue index 9dd1364517..308e580ea8 100644 --- a/core/core-frontend/src/views/chart/components/views/components/ChartComponentS2.vue +++ b/core/core-frontend/src/views/chart/components/views/components/ChartComponentS2.vue @@ -469,6 +469,7 @@ const autoHeightStyle = computed(() => { } .table-page-info { position: relative; + padding-left: 4px; margin: 4px; height: 20px; display: flex;