mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
514 B
514 B
Use Preset Card
<n-button
size="small"
@click="isActive = true"
>
Start Me up
</n-button>
<n-modal
v-model="isActive"
preset="card"
body-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-modal>
export default {
data () {
return {
isActive: false,
}
}
}