From 92f2584232ce3281287d8b85667e10111f8b9e0b Mon Sep 17 00:00:00 2001 From: wintsa <770775984@qq.com> Date: Wed, 12 Aug 2026 10:16:35 +0800 Subject: [PATCH] 1 --- src/App.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 3b0236a..39fe608 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -968,6 +968,7 @@ function App() { }, [chartSummaryBySelection, selectedContentNodes], ); + const pivotGridSampleCount = pivotGridPinnedBottomRowData[0]?.dataCount ?? 0; const pivotGridColumnDefs = useMemo<(ColDef | ColGroupDef)[]>( () => { const valueFormatter = ({ value }: ValueFormatterParams) => ( @@ -1015,7 +1016,7 @@ function App() { ], }, { - headerName: `样本统计值(${pivotGridRowData.length})`, + headerName: `样本统计值(${formatNumber(pivotGridSampleCount, 0)})`, children: [ { field: 'maxValue', @@ -1072,7 +1073,7 @@ function App() { }, ]; }, - [pivotGridRowData.length, requestMetricKey], + [pivotGridSampleCount, requestMetricKey], ); const fitPivotGridColumns = useCallback(() => { window.requestAnimationFrame(() => {