From f23c53a20fd7dbb493e567d472afc1e02ed4637d Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Fri, 5 Nov 2021 12:14:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E4=BB=AA?= =?UTF-8?q?=E8=A1=A8=E6=9D=BF=E6=97=B6=E9=97=B4=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/canvas/components/Editor/DateFormat.vue | 4 +++- frontend/src/components/widget/DeWidget/TimeSimple.vue | 10 ++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/canvas/components/Editor/DateFormat.vue b/frontend/src/components/canvas/components/Editor/DateFormat.vue index d1a513aac6..48b41e3307 100644 --- a/frontend/src/components/canvas/components/Editor/DateFormat.vue +++ b/frontend/src/components/canvas/components/Editor/DateFormat.vue @@ -141,8 +141,10 @@ export default { 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.style.width = this.curComponent.style.width / 2 + this.curComponent.style.height = this.curComponent.style.width + 50 this.curComponent.sizey = Math.round(this.curComponent.style.height / this.curCanvasScale.matrixStyleOriginHeight) + // this.curComponent.sizex = Math.round(this.curComponent.style.width / this.curCanvasScale.matrixStyleOriginWidth) } } } diff --git a/frontend/src/components/widget/DeWidget/TimeSimple.vue b/frontend/src/components/widget/DeWidget/TimeSimple.vue index 05d238cb28..a611e1b67f 100644 --- a/frontend/src/components/widget/DeWidget/TimeSimple.vue +++ b/frontend/src/components/widget/DeWidget/TimeSimple.vue @@ -176,7 +176,8 @@ export default { draw.lineWidth = 6 draw.beginPath() draw.moveTo(0, 0) - draw.lineTo(0, -(side_length / 2 - 60) / 3) + /* draw.lineTo(0, -(side_length / 2 - 60) / 3) */ + draw.lineTo(0, -(side_length / 2) * 0.5) draw.closePath() draw.stroke() draw.restore() @@ -190,7 +191,8 @@ export default { draw.lineWidth = 3 draw.beginPath() draw.moveTo(0, 0) - draw.lineTo(0, -(side_length / 2 - 60) * 3 / 5) + draw.lineTo(0, -(side_length / 2) * 0.7) + /* draw.lineTo(0, -(side_length / 2 - 60) * 3 / 5) */ draw.closePath() draw.stroke() draw.restore() @@ -203,8 +205,8 @@ export default { draw.lineWidth = 1 draw.beginPath() draw.moveTo(0, 15) - // draw.lineTo(0, -180) - draw.lineTo(0, -(side_length / 2 - 60)) + draw.lineTo(0, -(side_length / 2) * 0.9) + /* draw.lineTo(0, -(side_length / 2 - 60)) */ draw.closePath() draw.stroke() draw.restore()