mirror of
https://github.com/dataease/dataease.git
synced 2026-05-20 02:58:10 +08:00
fix(图表): 修复标签设置百分比格式后会带有其他格式配置的后缀问题
This commit is contained in:
@@ -71,6 +71,8 @@ function transSeparatorAndSuffix(value, formatter) {
|
||||
}
|
||||
if (formatter.type === 'percent') {
|
||||
str += '%'
|
||||
//百分比没有后缀,直接返回
|
||||
return str
|
||||
} else {
|
||||
if (formatter.unit === 1000) {
|
||||
str += '千'
|
||||
|
||||
Reference in New Issue
Block a user