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)
}