From d2a573edd358d93c63f98aee4bb4369eee6f5f3a Mon Sep 17 00:00:00 2001 From: ulleo Date: Thu, 26 Dec 2024 17:45:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=BE=E8=A1=A8):=20=E9=80=8F=E8=A7=86?= =?UTF-8?q?=E8=A1=A8=E8=A1=8C=E6=B1=87=E6=80=BB=E5=B0=8F=E8=AE=A1=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E6=A0=B9=E6=8D=AE=E7=BB=B4=E5=BA=A6=E7=81=B5=E6=B4=BB?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=20#11336?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/views/components/ChartComponentS2.vue | 6 ++++++ 1 file changed, 6 insertions(+) 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 1e1d231008..ea2b3925ba 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 @@ -180,6 +180,12 @@ const handleDefaultVal = (chart: Chart) => { if (customAttr.tableCell.mergeCells === undefined) { customAttr.tableCell.mergeCells = false } + if (chart.type === 'table-pivot') { + if (!customAttr.tableTotal?.row?.subTotalsDimensionsNew) { + customAttr.tableTotal.row.subTotalsDimensionsNew = + !!customAttr.tableTotal.row.subTotalsDimensionsNew + } + } } const renderChart = (viewInfo: Chart, resetPageInfo: boolean) => { if (!viewInfo) {