From 63b8ef1a709b3a3d19dd3c8b3ec751b8651764ba Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 2 Feb 2024 11:21:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E7=BB=84=E4=BB=B6PC=E7=AB=AF=E8=87=AA?= =?UTF-8?q?=E9=80=82=E5=BA=94=E4=BC=98=E5=8C=96,=E5=8F=AF=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E5=B1=8F=E5=B9=95=E5=B0=BA=E5=AF=B8=E4=BC=B8=E7=BC=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/canvas/components/editor/Preview.vue | 8 ++++++-- 1 file changed, 6 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 5868dc1b7f..cd14f8d08c 100644 --- a/core/frontend/src/components/canvas/components/editor/Preview.vue +++ b/core/frontend/src/components/canvas/components/editor/Preview.vue @@ -816,10 +816,14 @@ export default { component.style[key] = this.format(component.style[key], this.scaleWidth) } if (this.needToChangeInnerWidth.includes(key)) { - if ((key === 'fontSize' || key === 'activeFontSize') && (this.terminal === 'mobile' || ['custom', 'v-text'].includes(component.type))) { + if ((key === 'fontSize' || key === 'activeFontSize') && (this.terminal === 'mobile' || ['custom'].includes(component.type))) { // do nothing 移动端字符大小无需按照比例缩放,当前保持不变(包括 v-text 和 过滤组件) } else { - component.style[key] = this.formatPoint(component.style[key], this.previewCanvasScale.scalePointWidth) + if (key === 'fontSize') { + component.style[key] = this.formatPoint(component.style[key], this.previewCanvasScale.scalePointWidth * 1.6) + } else { + component.style[key] = this.formatPoint(component.style[key], this.previewCanvasScale.scalePointWidth) + } } } })