fix(图表): 修复透视表列维度为空时带格式导出失败

This commit is contained in:
wisonic
2025-09-01 15:18:28 +08:00
committed by wisonic-s
parent 2992f308a6
commit 9ca0de195e

View File

@@ -1878,6 +1878,9 @@ function extractNumber(formattedValue: string, formatterCfg: BaseFormatter): {
value: number
numFmt: string
} | string {
if (!formatterCfg) {
return formattedValue
}
let result = formattedValue
if (formatterCfg.type === 'percent') {
result = result.slice(0, -1) // 去掉百分号