forked from github/dataease
Merge pull request #8288 from dataease/pr@dev-v2@fix_formart
fix(图表): 修复指标表格式化百分比类型下单位后缀不生效问题
This commit is contained in:
commit
7298eae91c
@ -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 += '千'
|
||||||
|
Loading…
Reference in New Issue
Block a user