feat: Improve Contact list (#10522)

This commit is contained in:
Sivin Varghese
2024-12-03 07:53:41 +05:30
committed by GitHub
parent 86bd339a47
commit 062587487a
6 changed files with 66 additions and 40 deletions

View File

@@ -27,11 +27,16 @@ const handleDialogConfirm = async () => {
emit('create', contact.value);
};
const onSuccess = () => {
contactsFormRef.value?.resetForm();
dialogRef.value.close();
};
const closeDialog = () => {
dialogRef.value.close();
};
defineExpose({ dialogRef, contactsFormRef });
defineExpose({ dialogRef, contactsFormRef, onSuccess });
</script>
<template>