mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
602 B
602 B
Basic
Basic usage of modal. You can put anything in modal, a card for example.
<n-button
@click="modalActive = true"
>
Start Me up
</n-button>
<n-modal v-model="modalActive">
<n-card
style="width: 600px;"
title="Modal"
:bordered="false"
size="huge"
:segmented="{
content: 'soft',
footer: 'soft'
}"
>
<template v-slot:header-extra>
Oops!
</template>
Content
<template v-slot:footer>
Footer
</template>
</n-card>
</n-modal>
export default {
data () {
return {
modalActive: false
}
}
}