naive-ui/demo/documentation/components/drawer/enUS/basic.md
2019-12-20 17:15:54 +08:00

248 B

Basic

<n-button @click="active = !active">
  active
</n-button>
<n-drawer v-model="active" :width="502">
  <n-h1>Hear the Wind Sing</n-h1>
</n-drawer>
export default {
  data () {
    return {
      active: false
    }
  }
}