From b28e166adea411ca8013716eed33089f3028c36a Mon Sep 17 00:00:00 2001 From: wisonic Date: Thu, 11 Jul 2024 17:28:42 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E9=80=8F?= =?UTF-8?q?=E8=A7=86=E8=A1=A8=E6=A0=91=E5=BD=A2=E6=A8=A1=E5=BC=8F=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=8A=98=E5=8F=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/table/table-pivot.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 5aeb7911da..0ce479a366 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 @@ -191,10 +191,12 @@ export class TablePivot extends S2ChartView { sortParams: sortParams } // options + const style = this.configStyle(chart) + style.hierarchyCollapse = true const s2Options: S2Options = { width: containerDom.offsetWidth, height: containerDom.offsetHeight, - style: this.configStyle(chart), + style, totals: tableTotal as Totals, conditions: this.configConditions(chart), tooltip: {