Skip to content

Commit

Permalink
fix:issue #360
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiFeiYa authored and ly525 committed Dec 5, 2021
1 parent cee3673 commit c860890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions front-end/h5/src/components/core/editor/canvas/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default {
clearHLine () {
this.hLines = []
},
// 传入拖动点的位置,不传默认为 undefined,视为拖动组件本身
calcVHLine (point) {
const isPointMove = Boolean(point)
const uuid = this.editingElement.uuid
Expand Down Expand Up @@ -83,7 +84,7 @@ export default {
// issue #360
if(hasL) {
this.setElementPosition({ width: commonStyle.width - offset,left:eleft + offset })
}else if(hasR){ // 向右移动
}else if(hasR){
this.setElementPosition({ width: commonStyle.width + offset })
}
} else {
Expand Down Expand Up @@ -129,7 +130,6 @@ export default {
},
handlePointMove (pos,point) {
this.setElementPosition(pos)
// 传如拖动点的位置
this.calcVHLine(point)
},
bindContextMenu (e) {
Expand Down

0 comments on commit c860890

Please sign in to comment.