Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
wangjiahao 2021-11-02 11:04:18 +08:00
commit e4c2f54c86
2 changed files with 6 additions and 2 deletions

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

View File

@ -864,6 +864,6 @@ export const COLOR_PANEL = [
'#1e90ff',
'#c71585',
'#999999',
'#ffffff',
'#00008b',
'#000000'
]