Skip to content

Commit 1c02253

Browse files
committed
Added emits option to prevent warnings
1 parent 59814f1 commit 1c02253

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vuedraggable.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,17 @@ const props = {
6767
}
6868
};
6969

70+
const emits = ["change", "start", "add", "remove", "update", "end", "choose", "unchoose", "sort", "filter", "clone"];
71+
7072
const draggableComponent = defineComponent({
7173
name: "draggable",
7274

7375
inheritAttrs: false,
7476

7577
props,
7678

79+
emits,
80+
7781
data() {
7882
return {
7983
error: false

0 commit comments

Comments
 (0)