feat: migrate Modal Popover and Tooltip with shared overlay foundation

This commit is contained in:
maoyingjie
2026-10-22 23:39:51 +08:00
parent b086d7f30d
commit 2b4ac04df1
108 changed files with 6888 additions and 100 deletions
+24
View File
@@ -0,0 +1,24 @@
<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">
<PopoverDialog>
<PopoverHeading>弹出层标题</PopoverHeading>
<p class="mt-2 text-sm text-muted">
这是弹出层内容,你可以在这里放置任何内容。
</p>
</PopoverDialog>
</PopoverContent>
</Popover>
</div>
</template>