refactor: 移动端过滤组件标题大小跟随pc端

This commit is contained in:
wangjiahao
2022-01-25 11:34:12 +08:00
parent 65139d788a
commit 3f232a36a6

View File

@@ -297,8 +297,8 @@ export default {
component.style[key] = this.format(component.style[key], this.scaleHeight)
}
if (this.needToChangeWidth.includes(key)) {
if (component.type === 'v-text' && key === 'fontSize' && this.terminal === 'mobile') {
// do nothing 移动端字符大小无需按照比例缩放,当前保持不变
if (key === 'fontSize' && this.terminal === 'mobile') {
// do nothing 移动端字符大小无需按照比例缩放,当前保持不变(包括 v-text 和 过滤组件)
} else {
component.style[key] = this.format(component.style[key], this.scaleWidth)
}