提交 01c4684e authored 作者: wangjiahao's avatar wangjiahao

fix:矩阵设计模式下点击一次组件也不需保存镜像

上级 2e7e958b
...@@ -1448,6 +1448,7 @@ export default { ...@@ -1448,6 +1448,7 @@ export default {
}, },
// 记录当前样式 // 记录当前样式
recordCurStyle() { recordCurStyle() {
debugger
const style = { const style = {
...this.defaultStyle ...this.defaultStyle
} }
...@@ -1462,6 +1463,7 @@ export default { ...@@ -1462,6 +1463,7 @@ export default {
// 记录当前样式 矩阵处理 // 记录当前样式 矩阵处理
recordMatrixCurStyle() { recordMatrixCurStyle() {
debugger
const left = Math.round(this.left / this.curCanvasScale.matrixStyleWidth) * this.curCanvasScale.matrixStyleWidth 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 top = Math.round(this.top / this.curCanvasScale.matrixStyleHeight) * this.curCanvasScale.matrixStyleHeight
const width = Math.round(this.width / this.curCanvasScale.matrixStyleWidth) * this.curCanvasScale.matrixStyleWidth const width = Math.round(this.width / this.curCanvasScale.matrixStyleWidth) * this.curCanvasScale.matrixStyleWidth
...@@ -1474,7 +1476,7 @@ export default { ...@@ -1474,7 +1476,7 @@ export default {
style.width = width style.width = width
style.height = height style.height = height
style.rotate = this.rotate style.rotate = this.rotate
this.hasMove = true // this.hasMove = true
this.$store.commit('setShapeStyle', style) this.$store.commit('setShapeStyle', style)
}, },
mountedFunction() { mountedFunction() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论