mirror of
https://github.com/element-plus/element-plus.git
synced 2025-03-01 15:35:51 +08:00
fix: alert emit close event (#497)
This commit is contained in:
parent
a934fb76ff
commit
0132bf5790
@ -68,7 +68,7 @@ export default defineComponent({
|
||||
validator: (value: string): boolean => ['light', 'dark'].indexOf(value) > -1,
|
||||
},
|
||||
},
|
||||
emits: ['click'],
|
||||
emits: ['close'],
|
||||
setup(props, ctx) {
|
||||
// state
|
||||
const visible = ref(true)
|
||||
@ -82,7 +82,7 @@ export default defineComponent({
|
||||
// methods
|
||||
const close = evt => {
|
||||
visible.value = false
|
||||
ctx.emit('click', evt)
|
||||
ctx.emit('close', evt)
|
||||
}
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user