mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #5070 - Message: 'life-end' emit
This commit is contained in:
parent
9a27f6b16b
commit
1a1b60c443
3 changed files with 10 additions and 1 deletions
|
@ -32,7 +32,7 @@ import BaseMessage from './BaseMessage.vue';
|
|||
export default {
|
||||
name: 'Message',
|
||||
extends: BaseMessage,
|
||||
emits: ['close'],
|
||||
emits: ['close', 'life-end'],
|
||||
timeout: null,
|
||||
data() {
|
||||
return {
|
||||
|
@ -59,6 +59,7 @@ export default {
|
|||
closeAfterDelay() {
|
||||
setTimeout(() => {
|
||||
this.visible = false;
|
||||
this.$emit('life-end');
|
||||
}, this.life);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue