mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
28 lines
425 B
Markdown
28 lines
425 B
Markdown
|
# Form Basic
|
||
|
```html
|
||
|
<n-button
|
||
|
size="small"
|
||
|
@click="isActive = true"
|
||
|
>
|
||
|
Start Me up
|
||
|
</n-button>
|
||
|
<n-modal v-model="isActive"
|
||
|
preset="form"
|
||
|
title="Confirm modal"
|
||
|
>
|
||
|
<template v-slot:header>
|
||
|
<div style="color:red;">title</div>
|
||
|
</template>
|
||
|
<div slot="content">content</div>
|
||
|
<div slot="footer">footer</div>
|
||
|
</n-modal>
|
||
|
```
|
||
|
```js
|
||
|
export default {
|
||
|
data () {
|
||
|
return {
|
||
|
isActive: false,
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
```
|