Skip to content

Commit 37ce01d

Browse files
committed
refine dynamic modal payload
1 parent 7b3918f commit 37ce01d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/PluginCore.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ function createVfm(Vue, options) {
3131
}
3232
modal = Object.assign(defaultModal, modal)
3333
const id = generateId()
34-
const name = modal.bind.name || PREFIX + id
3534
this.dynamicModals.push({
3635
value: true,
3736
id,
3837
...modal,
39-
component: modal.component,
40-
slots: modal.slots,
41-
bind: { ...modal.bind, name },
38+
bind: {
39+
name: PREFIX + id,
40+
...modal.bind
41+
},
4242
params: args[0]
4343
})
4444
}

0 commit comments

Comments
 (0)