forked from verdnatura/salix-front
refactor: refs #7970 added emit
This commit is contained in:
parent
e5a221d073
commit
3d4ca2bc67
|
@ -30,7 +30,7 @@ const props = defineProps({
|
|||
},
|
||||
});
|
||||
|
||||
defineEmits(['confirm', 'cancel', ...useDialogPluginComponent.emits]);
|
||||
const emit = defineEmits(['confirm', 'cancel', ...useDialogPluginComponent.emits]);
|
||||
|
||||
const { dialogRef, onDialogHide, onDialogOK, onDialogCancel } =
|
||||
useDialogPluginComponent();
|
||||
|
@ -55,6 +55,7 @@ async function confirm() {
|
|||
}
|
||||
|
||||
function cancel() {
|
||||
emit('cancel');
|
||||
onDialogCancel();
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue