Skip to content

Commit 9f3d803

Browse files
committed
refactor: update events
1 parent 850c9b3 commit 9f3d803

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/alert/CAlert.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ export const CAlert = defineComponent({
4444
},
4545
emits: [
4646
/**
47-
* Event called before the dissmiss animation has started.
47+
* Callback fired when the component requests to be closed.
4848
*/
49-
'dismiss',
49+
'close',
5050
],
5151
setup(props, { slots, emit }) {
5252
const visible = ref(props.visible)
@@ -60,7 +60,7 @@ export const CAlert = defineComponent({
6060

6161
const handleDismiss = () => {
6262
visible.value = false
63-
emit('dismiss')
63+
emit('close')
6464
}
6565

6666
return () =>

0 commit comments

Comments
 (0)