Merge pull request #302 from dataease/pr@dev@fix_panel_edit-matrix

fix:矩阵设计模式下点击一次组件也不需保存镜像
This commit is contained in:
王嘉豪 2021-07-23 11:14:32 +08:00 committed by GitHub
commit 364c748d5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1448,6 +1448,7 @@ export default {
},
//
recordCurStyle() {
debugger
const style = {
...this.defaultStyle
}
@ -1462,6 +1463,7 @@ export default {
//
recordMatrixCurStyle() {
debugger
const left = Math.round(this.left / this.curCanvasScale.matrixStyleWidth) * this.curCanvasScale.matrixStyleWidth
const top = Math.round(this.top / this.curCanvasScale.matrixStyleHeight) * this.curCanvasScale.matrixStyleHeight
const width = Math.round(this.width / this.curCanvasScale.matrixStyleWidth) * this.curCanvasScale.matrixStyleWidth
@ -1474,7 +1476,7 @@ export default {
style.width = width
style.height = height
style.rotate = this.rotate
this.hasMove = true
// this.hasMove = true
this.$store.commit('setShapeStyle', style)
},
mountedFunction() {