From d6fbaf2b5f893725809d13a95f88cbff5b162dc9 Mon Sep 17 00:00:00 2001 From: wisonic Date: Sat, 12 Oct 2024 20:46:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=80=8F=E8=A7=86=E8=A1=A8=E5=B8=A6=E6=A0=BC=E5=BC=8F=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E6=95=B0=E6=8D=AE=E4=B8=BA=200=20=E6=97=B6=E5=8D=95?= =?UTF-8?q?=E5=85=83=E6=A0=BC=E5=AE=9E=E9=99=85=E4=B8=BA=E7=A9=BA=20#12088?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/panel/common/common_table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts index e03b310dc6..a13fecd54e 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts @@ -1148,7 +1148,7 @@ export async function exportPivotExcel(instance: PivotSheet, chart: ChartObj) { for (let colIndex = 0; colIndex < colLeafNodes.length; colIndex++) { const dataCellMeta = layoutResult.getCellMeta(rowIndex, colIndex) const { fieldValue } = dataCellMeta - if (fieldValue) { + if (fieldValue === 0 || fieldValue) { const meta = metaMap[dataCellMeta.valueField] const cell = worksheet.getCell(rowIndex + maxColHeight + 1, rowLength + colIndex + 1) const value = meta?.formatter?.(fieldValue) || fieldValue.toString()