Merge pull request #8288 from dataease/pr@dev-v2@fix_formart

fix(图表): 修复指标表格式化百分比类型下单位后缀不生效问题
This commit is contained in:
王嘉豪 2024-03-04 10:55:38 +08:00 committed by GitHub
commit 7298eae91c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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