fix(图表): 修复指标表格式化百分比类型下单位后缀不生效问题

This commit is contained in:
wangjiahao 2024-03-04 10:55:04 +08:00
parent ad38bfcf5d
commit 06c82f2d8c

View File

@ -66,7 +66,7 @@ function transSeparatorAndSuffix(value, formatter) {
str = numArr.join('.') str = numArr.join('.')
} }
if (formatter.type === 'percent') { if (formatter.type === 'percent') {
return str + '%' str += '%'
} else { } else {
if (formatter.unit === 1000) { if (formatter.unit === 1000) {
str += '千' str += '千'