Skip to content

Commit

Permalink
[fix] elsint 格式化
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiFeiYa authored and ly525 committed Dec 5, 2021
1 parent c860890 commit b564fcd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions front-end/h5/src/components/core/editor/canvas/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ export default {
let offset = referX - eX
if (Math.abs(offset) <= 5) {
if (isPointMove) {
// issue #360
if(hasL) {
this.setElementPosition({ width: commonStyle.width - offset,left:eleft + offset })
}else if(hasR){
// issue #360
if (hasL) {
this.setElementPosition({ width: commonStyle.width - offset, left: eleft + offset })
} else if (hasR) {
this.setElementPosition({ width: commonStyle.width + offset })
}
} else {
Expand All @@ -100,10 +100,10 @@ export default {
let offset = referY - eY
if (Math.abs(offset) <= 5) {
if (isPointMove) {
// issue #360
if(hasT){
this.setElementPosition({ height: eheight - offset,top:offset + commonStyle.top })
}else if(hasB){
// issue #360
if (hasT) {
this.setElementPosition({ height: eheight - offset, top: offset + commonStyle.top })
} else if (hasB) {
this.setElementPosition({ height: eheight + offset })
}
} else {
Expand All @@ -128,7 +128,7 @@ export default {
this.setElementPosition(pos)
this.calcVHLine()
},
handlePointMove (pos,point) {
handlePointMove (pos, point) {
this.setElementPosition(pos)
this.calcVHLine(point)
},
Expand Down

0 comments on commit b564fcd

Please sign in to comment.