From 644692ae8809477d4df6fcab2c25babc7c1fdb8f Mon Sep 17 00:00:00 2001 From: fangsmile <892739385@qq.com> Date: Fri, 1 Nov 2024 16:26:24 +0800 Subject: [PATCH 1/2] fix: pivot table header icon display incorrect #2735 --- packages/vtable/src/layout/tree-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vtable/src/layout/tree-helper.ts b/packages/vtable/src/layout/tree-helper.ts index 641ae4c30..f9c397513 100644 --- a/packages/vtable/src/layout/tree-helper.ts +++ b/packages/vtable/src/layout/tree-helper.ts @@ -433,7 +433,7 @@ export function dealHeader( if (hd.indicatorKey) { return indicator.indicatorKey === hd.indicatorKey; } - return indicator.title === hd.value; + return indicator.title === hd.value && !hd.dimensionKey; }) as IIndicator; const cell: HeaderData = { id, From f4bc63d2e3f15d6d83168361ce2ba78688f7afeb Mon Sep 17 00:00:00 2001 From: fangsmile <892739385@qq.com> Date: Fri, 1 Nov 2024 16:26:46 +0800 Subject: [PATCH 2/2] docs: update changlog of rush --- ...eader-icon-display-incorrect_2024-11-01-08-26.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 common/changes/@visactor/vtable/2735-bug-header-icon-display-incorrect_2024-11-01-08-26.json diff --git a/common/changes/@visactor/vtable/2735-bug-header-icon-display-incorrect_2024-11-01-08-26.json b/common/changes/@visactor/vtable/2735-bug-header-icon-display-incorrect_2024-11-01-08-26.json new file mode 100644 index 000000000..27aec1552 --- /dev/null +++ b/common/changes/@visactor/vtable/2735-bug-header-icon-display-incorrect_2024-11-01-08-26.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "fix: pivot table header icon display incorrect #2735\n\n", + "type": "none", + "packageName": "@visactor/vtable" + } + ], + "packageName": "@visactor/vtable", + "email": "892739385@qq.com" +} \ No newline at end of file