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 } } }