mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
255 B
255 B
基础用法
<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
}
}
}