mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
39 lines
557 B
Markdown
39 lines
557 B
Markdown
# Basic
|
|
```html
|
|
<n-button
|
|
size="small"
|
|
@click="isActive = true"
|
|
>
|
|
Start Me up
|
|
</n-button>
|
|
<n-modal v-model="isActive">
|
|
<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>
|
|
```
|
|
```js
|
|
export default {
|
|
data () {
|
|
return {
|
|
isActive: false,
|
|
inputValue: ''
|
|
}
|
|
}
|
|
}
|
|
``` |