From 8f973dea60119190c1009c6d96131bb263081714 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 6 Mar 2024 09:44:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=B0=86=E6=98=8E=E7=BB=86=E8=A1=A8=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=BF=9Btab=E7=BB=84=E4=BB=B6=E9=A2=84=E8=A7=88=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E6=98=BE=E7=A4=BA=E5=9B=BE=E8=A1=A8=E4=B8=8D=E5=85=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= 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, 4 insertions(+) diff --git a/core/frontend/src/components/canvas/components/editor/Preview.vue b/core/frontend/src/components/canvas/components/editor/Preview.vue index 3501333161..6a78980f0f 100644 --- a/core/frontend/src/components/canvas/components/editor/Preview.vue +++ b/core/frontend/src/components/canvas/components/editor/Preview.vue @@ -846,6 +846,10 @@ export default { } } }) + const maxWidth = this.canvasStyleData.width * this.scaleWidth / 100 + if (component.style['width'] > maxWidth) { + component.style['width'] = maxWidth + } }) this.componentDataShow = componentData this.$nextTick(() => (eventBus.$emit('resizing', '')))