mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
38 lines
514 B
Markdown
38 lines
514 B
Markdown
# Use Preset Card
|
|
```html
|
|
<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>
|
|
```
|
|
```js
|
|
export default {
|
|
data () {
|
|
return {
|
|
isActive: false,
|
|
}
|
|
}
|
|
}
|
|
``` |