fix(仪表板): 修复历史仪表板文本字体显示较大问题

This commit is contained in:
wangjiahao 2024-03-11 13:52:08 +08:00
parent 968342db31
commit 85e4e17ae7

View File

@ -842,11 +842,7 @@ export default {
if ((key === 'fontSize' || key === 'activeFontSize') && (this.terminal === 'mobile' || ['custom'].includes(component.type))) {
// do nothing ( v-text )
} else {
if (key === 'fontSize' && component.component !== 'de-tabs') {
component.style[key] = this.formatPoint(component.style[key], this.previewCanvasScale.scalePointWidth * 1.4)
} else {
component.style[key] = this.formatPoint(component.style[key], this.previewCanvasScale.scalePointWidth)
}
component.style[key] = this.formatPoint(component.style[key], this.previewCanvasScale.scalePointWidth)
}
}
})