naive-ui/demo/documentation/components/modal/enUS/basic.md

39 lines
557 B
Markdown
Raw Normal View History

2019-09-29 00:13:01 +08:00
# Basic
```html
<n-button
size="small"
@click="isActive = true"
>
Start Me up
</n-button>
2019-11-15 17:44:43 +08:00
<n-modal v-model="isActive">
<n-card
style="width: 600px;"
title="Modal"
:bordered="false"
size="huge"
:segmented="{
2019-11-18 18:37:20 +08:00
header: 'soft',
2019-11-15 17:44:43 +08:00
content: 'soft'
}"
>
2019-11-17 00:57:30 +08:00
<template v-slot:header-extra>
2019-11-15 17:44:43 +08:00
Oops!
</template>
Content
2019-11-17 00:57:30 +08:00
<template v-slot:footer>
2019-11-15 17:44:43 +08:00
Footer
</template>
</n-card>
2019-09-29 00:13:01 +08:00
</n-modal>
```
```js
export default {
data () {
return {
isActive: false,
inputValue: ''
}
}
}
```