提交 65139d78 authored 作者: wangjiahao's avatar wangjiahao

fix: 文件组件大小设置在移动端无效问题

上级 164f97ff
......@@ -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'])
}
}
},
......
......@@ -297,8 +297,12 @@ 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 移动端字符大小无需按照比例缩放,当前保持不变
} else {
component.style[key] = this.format(component.style[key], this.scaleWidth)
}
}
})
})
this.componentDataShow = componentData
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论