mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
896 B
896 B
Trigger
<n-popover placement="bottom" trigger="hover" style="margin-right: 12px;">
<template v-slot:activator>
<n-button>Hover</n-button>
</template>
<span>
I wish they all could be California girls
</span>
</n-popover>
<n-popover :show="showPopover" placement="bottom" trigger="manual">
<template v-slot:activator>
<n-button @click="showPopover = !showPopover">
Manual
</n-button>
</template>
<span>
I wish they all could be California girls
</span>
</n-popover>
<n-popover placement="bottom" trigger="click" style="margin-right: 12px;">
<template v-slot:activator>
<n-button>
Click
</n-button>
</template>
<span>
I wish they all could be California girls
</span>
</n-popover>
export default {
data() {
return {
showPopover: false
}
}
}
.n-button {
margin: 0 12px 8px 0;
}