fix: 修复分辨率过小时,表头文字换行导致单词被拆开的问题

This commit is contained in:
刘洪洪
2023-03-27 18:46:00 +08:00
parent 1c39ea66ad
commit 2ef441b605
2 changed files with 66 additions and 1 deletions

View File

@@ -1239,3 +1239,17 @@ export function getQueryByFlag2 (type, condition) {
}
}
}
/**
根据语言环境获取字符所占像素px
*/
export function getWidthByLanguage (language) {
switch (language) {
case 'en': {
return 7
}
case 'cn': {
return 16
}
}
}