Skip to content

Commit

Permalink
fix: fix vue methods' return value
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed May 10, 2022
1 parent fa0780e commit cc0cb79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vue-moveable/src/Moveable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const methods: Record<string, any> = {};
METHODS.forEach((name) => {
methods[name] = function (this: any, ...args: any[]) {
this.$_moveable[name](...args);
return this.$_moveable[name](...args);
};
});
const watch: Record<string, any> = {};
Expand Down
2 changes: 1 addition & 1 deletion packages/vue3-moveable/src/Moveable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const methods: Record<string, any> = {};
METHODS.forEach((name) => {
methods[name] = function (this: any, ...args: any[]) {
this.$_moveable[name](...args);
return this.$_moveable[name](...args);
};
});
const watch: Record<string, any> = {};
Expand Down

0 comments on commit cc0cb79

Please sign in to comment.