mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
687 B
687 B
Multiple Drawers
<n-button @click="activate">Come on!</n-button>
<n-drawer v-model="active" :width="502">
<n-h1>Stoner</n-h1>
<n-p>Stoner is a 1965 novel by the American writer John Williams.</n-p>
<n-button @click="innerActivate">Come on Again!</n-button>
<n-drawer v-model="innerActive" :width="251">
<n-h1>Stoner</n-h1>
<n-p>Stoner is a 1965 novel by the American writer John Williams.</n-p>
</n-drawer>
</n-drawer>
export default {
data () {
return {
active: false,
innerActive: false
}
},
methods: {
activate () {
this.active = true
},
innerActivate () {
this.innerActive = true
}
}
}