25 lines
621 B
Vue
25 lines
621 B
Vue
<script setup lang="ts">
|
||
import {
|
||
Button,
|
||
Popover,
|
||
PopoverContent,
|
||
PopoverDialog,
|
||
PopoverHeading,
|
||
} from "@heroui-vue/components";
|
||
</script>
|
||
<template>
|
||
<div class="flex items-center gap-4">
|
||
<Popover>
|
||
<Button>点击我</Button>
|
||
<PopoverContent class="max-w-64" as="div" data-custom="foo">
|
||
<PopoverDialog>
|
||
<PopoverHeading>弹出层标题</PopoverHeading>
|
||
<p class="mt-2 text-sm text-muted">
|
||
这是弹出层内容,你可以在这里放置任何内容。
|
||
</p>
|
||
</PopoverDialog>
|
||
</PopoverContent>
|
||
</Popover>
|
||
</div>
|
||
</template>
|