mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-05 13:00:47 +08:00
26 lines
445 B
Markdown
26 lines
445 B
Markdown
# Dark Debug 4
|
|
```html
|
|
<n-button @click="modalActive = !modalActive">Toggle</n-button>
|
|
<n-drawer
|
|
v-model="modalActive"
|
|
width="800"
|
|
>
|
|
<n-popover>
|
|
<template v-slot:activator>
|
|
<n-button style="margin:0;">
|
|
悬浮
|
|
</n-button>
|
|
</template>
|
|
<span>或许不想知道你的花园长得咋样</span>
|
|
</n-popover>
|
|
</n-drawer>
|
|
```
|
|
```js
|
|
export default {
|
|
data() {
|
|
return {
|
|
modalActive: false
|
|
}
|
|
}
|
|
}
|
|
``` |