forked from github/dataease
fix:矩阵设计模式下点击一次组件也不需保存镜像
This commit is contained in:
parent
2e7e958b2f
commit
01c4684e01
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user