Skip to content

Commit 85def82

Browse files
committed
feat: Dialog - onClose() and onDismiss() now take one parameter designating the form data
1 parent 1e21aa5 commit 85def82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/dialog/Dialog.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export default {
186186
}
187187
this.$refs.dialog.close(() => {
188188
if (typeof fn === 'function') {
189-
fn()
189+
fn(this.getFormData())
190190
}
191191
})
192192
},
@@ -196,7 +196,7 @@ export default {
196196
__dismiss () {
197197
this.$root.$destroy()
198198
if (typeof this.onDismiss === 'function') {
199-
this.onDismiss()
199+
this.onDismiss(this.getFormData())
200200
}
201201
}
202202
},

0 commit comments

Comments
 (0)