提交 abc7fce3 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

style: 时间组件样式

上级 9449449d
...@@ -114,7 +114,8 @@ export default { ...@@ -114,7 +114,8 @@ export default {
}, },
computed: { computed: {
...mapState([ ...mapState([
'curComponent' 'curComponent',
'curCanvasScale'
]) ])
}, },
created() { created() {
...@@ -135,10 +136,13 @@ export default { ...@@ -135,10 +136,13 @@ export default {
modelChange(val) { modelChange(val) {
if (val === '0') { if (val === '0') {
this.curComponent.style.height = 100 this.curComponent.style.height = 100
this.curComponent.sizey = Math.round(this.curComponent.style.height / this.curCanvasScale.matrixStyleOriginHeight)
} else if (val === '1') { } else if (val === '1') {
this.curComponent.style.height = 150 this.curComponent.style.height = 150
this.curComponent.sizey = Math.round(this.curComponent.style.height / this.curCanvasScale.matrixStyleOriginHeight)
} else { } else {
this.curComponent.style.height = 300 this.curComponent.style.height = 300
this.curComponent.sizey = Math.round(this.curComponent.style.height / this.curCanvasScale.matrixStyleOriginHeight)
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论