File tree 1 file changed +2
-2
lines changed
front-end/h5/src/components/core/editor/canvas
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ export default {
35
35
clearHLine ( ) {
36
36
this . hLines = [ ]
37
37
} ,
38
+ // 传入拖动点的位置,不传默认为 undefined,视为拖动组件本身
38
39
calcVHLine ( point ) {
39
40
const isPointMove = Boolean ( point )
40
41
const uuid = this . editingElement . uuid
@@ -83,7 +84,7 @@ export default {
83
84
// issue #360
84
85
if ( hasL ) {
85
86
this . setElementPosition ( { width : commonStyle . width - offset , left :eleft + offset } )
86
- } else if ( hasR ) { // 向右移动
87
+ } else if ( hasR ) {
87
88
this . setElementPosition ( { width : commonStyle . width + offset } )
88
89
}
89
90
} else {
@@ -129,7 +130,6 @@ export default {
129
130
} ,
130
131
handlePointMove ( pos , point ) {
131
132
this . setElementPosition ( pos )
132
- // 传如拖动点的位置
133
133
this . calcVHLine ( point )
134
134
} ,
135
135
bindContextMenu ( e ) {
You can’t perform that action at this time.
0 commit comments