From 94824fdd048441c23a1ad01353c98d5a02454fac Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Thu, 28 Aug 2025 17:52:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=80=8F=E8=A7=86=E8=A1=A8=E8=87=AA=E5=AE=9A=E4=B9=89=E6=B1=87?= =?UTF-8?q?=E6=80=BB=E5=90=8D=E7=A7=B0=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/table/table-info.ts | 2 +- .../chart/components/js/panel/charts/table/table-pivot.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts index 0b6a47defe..eb339117be 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts @@ -329,7 +329,7 @@ export class TableInfo extends S2ChartView { const lastNode = ev.colLeafNodes[ev.colLeafNodes.length - 1] lastNode.width = Math.floor(lastNode.width - (totalWidth - containerWidth)) } - ev.colsHierarchy.width = containerWidth - 1 + ev.colsHierarchy.width = containerWidth - 2 }) } // 空数据时表格样式 diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts index 229cebf28c..1e081dda77 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts @@ -475,7 +475,7 @@ export class TablePivot extends S2ChartView { s2Options.layoutCoordinate = (_, __, col) => { if (col?.isGrandTotals) { if (colTotalCfgMap[col.value]?.label) { - col.label = colTotalCfgMap[col.value].label + col.value = colTotalCfgMap[col.value].label } } } @@ -494,7 +494,7 @@ export class TablePivot extends S2ChartView { s2Options.layoutCoordinate = (_, row, __) => { if (row?.isGrandTotals) { if (rowTotalCfgMap[row.value]?.label) { - row.label = rowTotalCfgMap[row.value].label + row.value = rowTotalCfgMap[row.value].label } } }