mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
381 B
381 B
可关闭
设定 closable
使 Message 可以通过点击关闭。
<n-button @click="emitInfo">
打开信息
</n-button>
export default {
methods: {
emitInfo() {
this.$NMessage.info(
"I don't know why nobody told you how to unfold your love",
{
closable: true,
duration: 5000
}
)
}
}
}