Merge pull request #1101 from dataease/pr@v1.4@fix_de_date_time

style: 时间组件样式
This commit is contained in:
fit2cloud-chenyw 2021-11-02 10:42:40 +08:00 committed by GitHub
commit 882c387579
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}
}
}