From ab57e66b72efcd5e992097f92b5f0bfdaf3d8020 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 2 Nov 2021 10:41:45 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=97=B6=E9=97=B4=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/canvas/components/Editor/DateFormat.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/canvas/components/Editor/DateFormat.vue b/frontend/src/components/canvas/components/Editor/DateFormat.vue index cbf7b2f4ef..d1a513aac6 100644 --- a/frontend/src/components/canvas/components/Editor/DateFormat.vue +++ b/frontend/src/components/canvas/components/Editor/DateFormat.vue @@ -114,7 +114,8 @@ export default { }, computed: { ...mapState([ - 'curComponent' + 'curComponent', + 'curCanvasScale' ]) }, created() { @@ -135,10 +136,13 @@ export default { modelChange(val) { if (val === '0') { this.curComponent.style.height = 100 + this.curComponent.sizey = Math.round(this.curComponent.style.height / this.curCanvasScale.matrixStyleOriginHeight) } else if (val === '1') { this.curComponent.style.height = 150 + this.curComponent.sizey = Math.round(this.curComponent.style.height / this.curCanvasScale.matrixStyleOriginHeight) } else { this.curComponent.style.height = 300 + this.curComponent.sizey = Math.round(this.curComponent.style.height / this.curCanvasScale.matrixStyleOriginHeight) } } }