Skip to content

Commit d441724

Browse files
authored
Update GridItem.vue
1 parent 50b30e1 commit d441724

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GridItem.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@
323323
this.lastH = y;
324324
325325
eventBus.$emit("resizeEvent", event.type, this.i, this.x, this.y, pos.h, pos.w);
326+
this.$emit("resized", this.i, this.x, this.y, pos.h, pos.w);
326327
},
327328
handleDrag(event) {
328329
if (this.isResizing) return;
@@ -375,6 +376,7 @@
375376
this.lastY = y;
376377
377378
eventBus.$emit("dragEvent", event.type, this.i, pos.x, pos.y, this.h, this.w);
379+
this.$emit("moved", this.i, this.x, this.y, pos.h, pos.w);
378380
},
379381
calcPosition: function(x, y, w, h) {
380382
const colWidth = this.calcColWidth();
@@ -454,4 +456,4 @@
454456
}
455457
},
456458
}
457-
</script>
459+
</script>

0 commit comments

Comments
 (0)