Files
heroui-vue/apps/docs/demos/popover-render-function.vue

25 lines
621 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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>