feat: migrate Modal Popover and Tooltip with shared overlay foundation
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user