From b2491fbe51098882557f1e0a7845f7cd65906f90 Mon Sep 17 00:00:00 2001 From: "wuding.why" Date: Thu, 16 Nov 2023 14:28:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E5=88=97=E6=80=BB=E8=AE=A1=E6=97=B6=E8=A1=8C=E6=80=BB=E8=AE=A1?= =?UTF-8?q?=E4=B9=9F=E8=A2=AB=E9=9A=90=E8=97=8F=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/s2-core/src/facet/layout/layout-hooks.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/s2-core/src/facet/layout/layout-hooks.ts b/packages/s2-core/src/facet/layout/layout-hooks.ts index 4aadb1e8f5..d782f6ae0e 100644 --- a/packages/s2-core/src/facet/layout/layout-hooks.ts +++ b/packages/s2-core/src/facet/layout/layout-hooks.ts @@ -43,7 +43,10 @@ export const layoutHierarchy = ( const hiddenColumnNode = facetCfg.spreadsheet?.facet?.getHiddenColumnsInfo(currentNode); - if (hiddenColumnNode) { + if ( + hiddenColumnNode && + facetCfg.columns.find((field) => field === currentNode.field) + ) { return false; }