From dd29b734767736a34dd611a59ed1483dd2d1ff9a Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 1 Nov 2021 18:13:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BB=AA=E8=A1=A8=E6=9D=BF=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E7=BB=84=E4=BB=B6=E6=98=BE=E7=A4=BA=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 --- frontend/src/components/canvas/components/TextAttr.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/components/canvas/components/TextAttr.vue b/frontend/src/components/canvas/components/TextAttr.vue index ac270ee15d..a21ace722f 100644 --- a/frontend/src/components/canvas/components/TextAttr.vue +++ b/frontend/src/components/canvas/components/TextAttr.vue @@ -347,6 +347,11 @@ export default { this.innerOpacity = this.styleInfo['opacity'] * 100 } this.mainWidthOffset = document.getElementById('main-attr').offsetWidth - 50 + if (this.curComponent.type === 'v-text') { + this.mainWidthOffset = 600 + } else if (this.curComponent.type === 'de-show-date') { + this.mainWidthOffset = 600 + } // console.log('mainWidthOffset:' + this.mainWidthOffset) }, attrShow(attr) {