mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
753 B
753 B
Unclosable
You can make it unclosable.
<n-button @click="notify('info')">
Unclosable
</n-button>
export default {
methods: {
notify (type) {
this.$NNotification.open({
title: `Close Me if You Can`,
duration: 2000,
closable: false,
onAfterHide: () => {
this.$NNotification.open({
title: `Ha Ha Ha Ha!`,
duration: 2000,
closable: false,
onAfterHide: () => {
this.$NNotification.open({
title: `No, You Can't`,
duration: 2000,
closable: false,
})
}
})
}
})
}
}
}
.n-button {
margin: 0 12px 8px 0;
}