From 466f53c994c48ecb8e42b9a6a0edddf7aee3b796 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 22 Jul 2022 16:27:45 +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=99=90=E5=88=B6=E7=9F=A9=E9=98=B5=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=E7=9A=84=E7=BB=84=E6=9C=80=E5=B0=8F=E7=9A=84?= =?UTF-8?q?=E9=95=BF=E5=AE=BD=E4=B8=BA4*4=E6=9C=80=E5=B0=8F=E5=8D=95?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/DeDrag/index.vue | 6 +++--- .../src/components/canvas/components/Editor/EditBar.vue | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/DeDrag/index.vue b/frontend/src/components/DeDrag/index.vue index 96a4026158..58572224d4 100644 --- a/frontend/src/components/DeDrag/index.vue +++ b/frontend/src/components/DeDrag/index.vue @@ -595,14 +595,14 @@ export default { return (this.canvasStyleData.panel.gap === 'yes' && this.element.auxiliaryMatrix) ? this.componentGap : 0 }, miniWidth() { - return this.element.auxiliaryMatrix ? this.curCanvasScale.matrixStyleWidth * (this.element.miniSizex || 1) : 0 + return this.element.auxiliaryMatrix ? this.curCanvasScale.matrixStyleWidth * 4 : 0 }, miniHeight() { if (this.element.auxiliaryMatrix) { if (this.element.component === 'de-number-range') { - return this.element.auxiliaryMatrix ? this.curCanvasScale.matrixStyleHeight * (this.element.miniSizey || 2) : 0 + return this.element.auxiliaryMatrix ? this.curCanvasScale.matrixStyleHeight * 4 : 0 } else { - return this.element.auxiliaryMatrix ? this.curCanvasScale.matrixStyleHeight * (this.element.miniSizey || 1) : 0 + return this.element.auxiliaryMatrix ? this.curCanvasScale.matrixStyleHeight * 4 : 0 } } else { return 0 diff --git a/frontend/src/components/canvas/components/Editor/EditBar.vue b/frontend/src/components/canvas/components/Editor/EditBar.vue index 09880601cc..83ce3b216c 100644 --- a/frontend/src/components/canvas/components/Editor/EditBar.vue +++ b/frontend/src/components/canvas/components/Editor/EditBar.vue @@ -138,14 +138,14 @@ export default { return this.targetLinkageInfo[this.element.propValue.viewId] }, miniHeight() { - let miniHeight = this.curComponent.miniSizey || 1 + let miniHeight = 4 if (this.element.component === 'de-number-range') { - miniHeight = this.curComponent.miniSizey || 2 + miniHeight = 4 } return miniHeight }, miniWidth() { - return this.curComponent.miniSizex || 1 + return 4 }, ...mapState([ 'menuTop',