feat(图表): 数值格式化内,数量单位支持配置英文简称

#14335
This commit is contained in:
ulleo
2025-04-01 14:04:36 +08:00
committed by Junjun
parent 12a1f018be
commit b37e918374

View File

@@ -3,7 +3,7 @@ import { useI18n } from '@/hooks/web/useI18n'
import { getLocale } from '@/utils/utils'
const { t } = useI18n()
export const isEnLocal = getLocale() === 'en'
export const isEnLocal = !['zh', 'zh-cn', 'zh-CN', 'tw'].includes(getLocale())
export const formatterItem = {
type: 'auto', // auto,value,percent