Skip to content

Commit

Permalink
Fixed #7284
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Feb 21, 2025
1 parent 7cd519b commit a0ebfc6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion apps/showcase/doc/dynamicdialog/EventsDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ const dialog = useDialog();
const showProducts = () => {
dialog.open(ProductListDemo, {
onCancel: (e) => {
console.log(e); // {user: 'primetime'}
console.log(e); // {user: 'primetime'}
},
emits: {
onSave: (e) => {
console.log(e); // {user: 'primetime'}
}
}
});
}
Expand All @@ -36,6 +41,10 @@ const emit = defineEmits(['cancel', 'save'])
function buttonClick() {
emit('cancel', {user: 'primetime'});
}
function saveButtonClick() {
emit('save', {user: 'primetime'});
}
<\/script>
`
}
Expand Down

0 comments on commit a0ebfc6

Please sign in to comment.