Skip to content

Commit

Permalink
fix: merge props
Browse files Browse the repository at this point in the history
  • Loading branch information
worldzhao committed Jan 21, 2025
1 parent 58508cb commit 98617e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-eels-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'vue-nice-modal': patch
---

fix: merge props
3 changes: 0 additions & 3 deletions .vscode/extensions.json

This file was deleted.

5 changes: 2 additions & 3 deletions packages/vue-nice-modal/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,13 @@ export const create = (Comp) => {

if (isVue2) {
return h(Comp, {
props: componentProps,
attrs,
props: { ...attrs, ...componentProps },
});
}

return h(Comp, {
...componentProps,
...attrs,
...componentProps,
});
};
},
Expand Down

0 comments on commit 98617e2

Please sign in to comment.