From 07c59b70945ecff85823b2c772888a319806c210 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 1 Mar 2024 10:14:56 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A2=84=E8=A7=88=E7=95=8C=E9=9D=A2Tab?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E6=98=BE=E7=A4=BA=E6=A0=B7=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E8=B6=85=E5=87=BA=E8=BE=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/canvas/components/editor/Preview.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/frontend/src/components/canvas/components/editor/Preview.vue b/core/frontend/src/components/canvas/components/editor/Preview.vue index ae52caad24..bfe9f581f6 100644 --- a/core/frontend/src/components/canvas/components/editor/Preview.vue +++ b/core/frontend/src/components/canvas/components/editor/Preview.vue @@ -829,8 +829,8 @@ export default { if ((key === 'fontSize' || key === 'activeFontSize') && (this.terminal === 'mobile' || ['custom'].includes(component.type))) { // do nothing 移动端字符大小无需按照比例缩放,当前保持不变(包括 v-text 和 过滤组件) } else { - if (key === 'fontSize') { - component.style[key] = this.formatPoint(component.style[key], this.previewCanvasScale.scalePointWidth * 1.6) + 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) }