forked from github/dataease
fix: 文件组件大小设置在移动端无效问题
This commit is contained in:
parent
5da64a2c29
commit
5c511339c8
@ -150,11 +150,7 @@ export default {
|
||||
height: '100%'
|
||||
}
|
||||
} else {
|
||||
if (this.terminal === 'pc') {
|
||||
return getStyle(style, ['top', 'left', 'width', 'height', 'rotate'])
|
||||
} else {
|
||||
return getStyle(style, ['top', 'left', 'width', 'height', 'rotate', 'fontSize'])
|
||||
}
|
||||
return getStyle(style, ['top', 'left', 'width', 'height', 'rotate'])
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -297,7 +297,11 @@ export default {
|
||||
component.style[key] = this.format(component.style[key], this.scaleHeight)
|
||||
}
|
||||
if (this.needToChangeWidth.includes(key)) {
|
||||
component.style[key] = this.format(component.style[key], this.scaleWidth)
|
||||
if (component.type === 'v-text' && key === 'fontSize' && this.terminal === 'mobile') {
|
||||
// do nothing 移动端字符大小无需按照比例缩放,当前保持不变
|
||||
} else {
|
||||
component.style[key] = this.format(component.style[key], this.scaleWidth)
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user