Unverified 提交 0a81eda8 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw 提交者: GitHub

Merge pull request #1129 from dataease/pr@v1.4@_refactor_date_time

refactor: 优化仪表板时间组件
...@@ -141,8 +141,10 @@ export default { ...@@ -141,8 +141,10 @@ export default {
this.curComponent.style.height = 150 this.curComponent.style.height = 150
this.curComponent.sizey = Math.round(this.curComponent.style.height / this.curCanvasScale.matrixStyleOriginHeight) this.curComponent.sizey = Math.round(this.curComponent.style.height / this.curCanvasScale.matrixStyleOriginHeight)
} else { } 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.sizey = Math.round(this.curComponent.style.height / this.curCanvasScale.matrixStyleOriginHeight)
// this.curComponent.sizex = Math.round(this.curComponent.style.width / this.curCanvasScale.matrixStyleOriginWidth)
} }
} }
} }
......
...@@ -176,7 +176,8 @@ export default { ...@@ -176,7 +176,8 @@ export default {
draw.lineWidth = 6 draw.lineWidth = 6
draw.beginPath() draw.beginPath()
draw.moveTo(0, 0) 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.closePath()
draw.stroke() draw.stroke()
draw.restore() draw.restore()
...@@ -190,7 +191,8 @@ export default { ...@@ -190,7 +191,8 @@ export default {
draw.lineWidth = 3 draw.lineWidth = 3
draw.beginPath() draw.beginPath()
draw.moveTo(0, 0) 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.closePath()
draw.stroke() draw.stroke()
draw.restore() draw.restore()
...@@ -203,8 +205,8 @@ export default { ...@@ -203,8 +205,8 @@ export default {
draw.lineWidth = 1 draw.lineWidth = 1
draw.beginPath() draw.beginPath()
draw.moveTo(0, 15) draw.moveTo(0, 15)
// draw.lineTo(0, -180) draw.lineTo(0, -(side_length / 2) * 0.9)
draw.lineTo(0, -(side_length / 2 - 60)) /* draw.lineTo(0, -(side_length / 2 - 60)) */
draw.closePath() draw.closePath()
draw.stroke() draw.stroke()
draw.restore() draw.restore()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论