mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
290 B
290 B
Closable
You may need when use it in modal.
<n-card title="Card" closable @close="handleClose">
Card Content
</n-card>
export default {
methods: {
handleClose () {
this.$NMessage.info('Card Close')
}
}
}
.n-card {
max-width: 300px;
}