2
0
mirror of https://github.com/tusen-ai/naive-ui.git synced 2025-01-24 12:45:18 +08:00
naive-ui/demo/documentation/components/card/enUS/closable.md
2019-11-18 11:34:18 +08:00

255 B

Closable

<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;
}