提交 e4c2f54c authored 作者: wangjiahao's avatar wangjiahao

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

...@@ -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)
} }
} }
} }
......
...@@ -864,6 +864,6 @@ export const COLOR_PANEL = [ ...@@ -864,6 +864,6 @@ export const COLOR_PANEL = [
'#1e90ff', '#1e90ff',
'#c71585', '#c71585',
'#999999', '#999999',
'#ffffff', '#00008b',
'#000000' '#000000'
] ]
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论