File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 46
46
@moved =" moved"
47
47
>
48
48
<test-element :text =" item.i" ></test-element >
49
+ <!-- <button @click="clicked">CLICK ME!</button>-->
49
50
</grid-item >
50
51
</grid-layout >
51
52
</div >
104
105
this .index = this .layout .length ;
105
106
},
106
107
methods: {
108
+ clicked : function () {
109
+ window .alert (" CLICK!" );
110
+ },
107
111
increaseWidth : function (item ) {
108
112
var width = document .getElementById (" content" ).offsetWidth ;
109
113
width += 20 ;
Original file line number Diff line number Diff line change 235
235
isDraggable : function () {
236
236
var self = this ;
237
237
if (this .interactObj == null ) {
238
- this .interactObj = interact (this .$refs .item );
238
+ this .interactObj = interact (this .$refs .item , {ignoreFrom : " a, button " } );
239
239
}
240
240
if (this .isDraggable ) {
241
241
this .interactObj .draggable ({});
254
254
isResizable : function () {
255
255
var self = this ;
256
256
if (this .interactObj == null ) {
257
- this .interactObj = interact (this .$refs .item );
257
+ this .interactObj = interact (this .$refs .item , {ignoreFrom : " a, button " } );
258
258
}
259
259
if (this .isResizable ) {
260
260
this .interactObj
You can’t perform that action at this time.
0 commit comments