Skip to content

Commit b564fcd

Browse files
HuiFeiYaly525
authored andcommitted
[fix] elsint 格式化
1 parent c860890 commit b564fcd

File tree

1 file changed

+9
-9
lines changed
  • front-end/h5/src/components/core/editor/canvas

1 file changed

+9
-9
lines changed

front-end/h5/src/components/core/editor/canvas/edit.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ export default {
8181
let offset = referX - eX
8282
if (Math.abs(offset) <= 5) {
8383
if (isPointMove) {
84-
// issue #360
85-
if(hasL) {
86-
this.setElementPosition({ width: commonStyle.width - offset,left:eleft + offset })
87-
}else if(hasR){
84+
// issue #360
85+
if (hasL) {
86+
this.setElementPosition({ width: commonStyle.width - offset, left: eleft + offset })
87+
} else if (hasR) {
8888
this.setElementPosition({ width: commonStyle.width + offset })
8989
}
9090
} else {
@@ -100,10 +100,10 @@ export default {
100100
let offset = referY - eY
101101
if (Math.abs(offset) <= 5) {
102102
if (isPointMove) {
103-
// issue #360
104-
if(hasT){
105-
this.setElementPosition({ height: eheight - offset,top:offset + commonStyle.top })
106-
}else if(hasB){
103+
// issue #360
104+
if (hasT) {
105+
this.setElementPosition({ height: eheight - offset, top: offset + commonStyle.top })
106+
} else if (hasB) {
107107
this.setElementPosition({ height: eheight + offset })
108108
}
109109
} else {
@@ -128,7 +128,7 @@ export default {
128128
this.setElementPosition(pos)
129129
this.calcVHLine()
130130
},
131-
handlePointMove (pos,point) {
131+
handlePointMove (pos, point) {
132132
this.setElementPosition(pos)
133133
this.calcVHLine(point)
134134
},

0 commit comments

Comments
 (0)