From 90abec6193a4914556859dffff8850548ed1f3f9 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 31 Jan 2023 10:00:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BB=84=E4=BB=B6=E6=9C=80=E5=B0=8F=E9=95=BF?= =?UTF-8?q?=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/canvas/components/editor/EditBar.vue | 4 ++-- frontend/src/components/deDrag/index.vue | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/canvas/components/editor/EditBar.vue b/frontend/src/components/canvas/components/editor/EditBar.vue index 86311555c3..19707fb2cc 100644 --- a/frontend/src/components/canvas/components/editor/EditBar.vue +++ b/frontend/src/components/canvas/components/editor/EditBar.vue @@ -346,10 +346,10 @@ export default { return this.targetLinkageInfo[this.element.propValue.viewId] }, miniHeight() { - return this.mobileLayoutStatus ? 1 : 4 + return this.mobileLayoutStatus ? 1 : 1 }, miniWidth() { - return this.mobileLayoutStatus ? 1 : 4 + return this.mobileLayoutStatus ? 1 : 1 }, curCanvasScaleSelf() { return this.curCanvasScaleMap[this.canvasId] diff --git a/frontend/src/components/deDrag/index.vue b/frontend/src/components/deDrag/index.vue index 5d277f402e..47b96e2c9c 100644 --- a/frontend/src/components/deDrag/index.vue +++ b/frontend/src/components/deDrag/index.vue @@ -630,7 +630,8 @@ export default { } if (this.element.auxiliaryMatrix && this.curCanvasScaleSelf) { const height = Math.round(this.height / this.curCanvasScaleSelf.matrixStyleHeight) * this.curCanvasScaleSelf.matrixStyleHeight - return (height - this.curGap * 2) + 'px' + const hp = (height - this.curGap * 2) + return (hp > 3 ? hp : 3) + 'px' } else { return (this.height - this.curGap * 2) + 'px' } @@ -682,14 +683,14 @@ export default { return (this.canvasStyleData.panel.gap === 'yes' && this.element.auxiliaryMatrix) ? this.componentGap : 0 }, miniWidth() { - return this.element.auxiliaryMatrix ? this.curCanvasScaleSelf.matrixStyleWidth * (this.mobileLayoutStatus ? 1 : 4) : 0 + return this.element.auxiliaryMatrix ? this.curCanvasScaleSelf.matrixStyleWidth * (this.mobileLayoutStatus ? 1 : 1) : 0 }, miniHeight() { if (this.element.auxiliaryMatrix) { if (this.element.component === 'de-number-range') { - return this.element.auxiliaryMatrix ? this.curCanvasScaleSelf.matrixStyleHeight * (this.mobileLayoutStatus ? 1 : 4) : 0 + return this.element.auxiliaryMatrix ? this.curCanvasScaleSelf.matrixStyleHeight * (this.mobileLayoutStatus ? 1 : 1) : 0 } else { - return this.element.auxiliaryMatrix ? this.curCanvasScaleSelf.matrixStyleHeight * (this.mobileLayoutStatus ? 1 : 4) : 0 + return this.element.auxiliaryMatrix ? this.curCanvasScaleSelf.matrixStyleHeight * (this.mobileLayoutStatus ? 1 : 1) : 0 } } else { return 0