File tree 2 files changed +20
-6
lines changed
2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 29
29
"test:cover" : " vue-cli-service test:unit --coverage"
30
30
},
31
31
"dependencies" : {
32
- "element-resize-detector" : " ^1.2.1" ,
33
- "@interactjs/interactjs" : " ^1.10.2" ,
34
- "@interactjs/auto-start" : " ^1.10.2" ,
35
32
"@interactjs/actions" : " ^1.10.2" ,
33
+ "@interactjs/auto-scroll" : " ^1.10.8" ,
34
+ "@interactjs/auto-start" : " ^1.10.2" ,
35
+ "@interactjs/dev-tools" : " ^1.10.2" ,
36
+ "@interactjs/interactjs" : " ^1.10.2" ,
36
37
"@interactjs/modifiers" : " ^1.10.2" ,
37
- "@interactjs/dev-tools " : " ^1.10.2 "
38
+ "element-resize-detector " : " ^1.2.1 "
38
39
},
39
40
"devDependencies" : {
40
41
"@babel/preset-env" : " ^7.12.11" ,
Original file line number Diff line number Diff line change 93
93
// var eventBus = require('./eventBus');
94
94
95
95
import ' @interactjs/auto-start'
96
+ import ' @interactjs/auto-scroll'
96
97
import ' @interactjs/actions/drag'
97
98
import ' @interactjs/actions/resize'
98
99
import ' @interactjs/modifiers'
201
202
type: Boolean ,
202
203
required: false ,
203
204
default: false ,
205
+ },
206
+ dragOption: {
207
+ type: Object ,
208
+ required: false ,
209
+ default : ()=> ({}),
210
+ },
211
+ resizeOption: {
212
+ type: Object ,
213
+ required: false ,
214
+ default : ()=> ({}),
204
215
}
205
216
},
206
217
inject: [" eventBus" , " layout" ],
769
780
if (this .draggable && ! this .static ) {
770
781
const opts = {
771
782
ignoreFrom: this .dragIgnoreFrom ,
772
- allowFrom: this .dragAllowFrom
783
+ allowFrom: this .dragAllowFrom ,
784
+ ... this .dragOption
773
785
};
774
786
this .interactObj .draggable (opts);
775
787
/* this.interactObj.draggable({allowFrom: '.vue-draggable-handle'});*/
818
830
height: maximum .height ,
819
831
width: maximum .width
820
832
}
821
- }
833
+ },
834
+ ... this .resizeOption ,
822
835
};
823
836
824
837
if (this .preserveAspectRatio ) {
You can’t perform that action at this time.
0 commit comments