naive-ui/demo/documentation/components/modal/enUS/basic.md
2019-12-24 22:39:25 +08:00

557 B

Basic

<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>
export default {
  data () {
    return {
      isActive: false,
      inputValue: ''
    }
  }
}