File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 155
155
},
156
156
i: {
157
157
required: true
158
+ },
159
+ dragIgnoreFrom: {
160
+ type: String ,
161
+ required: false ,
162
+ default: ' a, button'
163
+ },
164
+ resizeIgnoreFrom: {
165
+ type: String ,
166
+ required: false ,
167
+ default: ' a, button'
158
168
}
159
169
},
160
170
inject: [" eventBus" ],
275
285
draggable : function () {
276
286
var self = this ;
277
287
if (this .interactObj == null ) {
278
- this .interactObj = interact (this .$refs .item , {ignoreFrom: " a, button " });
288
+ this .interactObj = interact (this .$refs .item , {ignoreFrom: this . dragIgnoreFrom });
279
289
}
280
290
if (this .draggable ) {
281
291
this .interactObj .draggable ({});
297
307
resizable : function () {
298
308
var self = this ;
299
309
if (this .interactObj == null ) {
300
- this .interactObj = interact (this .$refs .item , {ignoreFrom: " a, button " });
310
+ this .interactObj = interact (this .$refs .item , {ignoreFrom: resizeIgnoreFrom });
301
311
}
302
312
if (this .resizable ) {
303
313
this .interactObj
You can’t perform that action at this time.
0 commit comments