From d5cce5fd211df9551a6b59648a9d1f5777055d7f Mon Sep 17 00:00:00 2001 From: wintsa <770775984@qq.com> Date: Wed, 12 Aug 2026 09:40:53 +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 cc35a32..17b0009 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -935,6 +935,7 @@ function App() { }, [chartSummaryBySelection, selectedContentNodes], ); + const pivotGridSampleCount = pivotGridPinnedBottomRowData[0]?.dataCount ?? 0; const pivotGridColumnDefs = useMemo<(ColDef | ColGroupDef)[]>( () => { const valueFormatter = ({ value }: ValueFormatterParams) => ( @@ -982,7 +983,7 @@ function App() { ], }, { - headerName: `样本统计值(${pivotGridRowData.length})`, + headerName: `样本统计值(${formatNumber(pivotGridSampleCount, 0)})`, children: [ { field: 'maxValue', @@ -1039,7 +1040,7 @@ function App() { }, ]; }, - [pivotGridRowData.length, requestMetricKey], + [pivotGridSampleCount, requestMetricKey], ); const fitPivotGridColumns = useCallback(() => { window.requestAnimationFrame(() => {