feat: migrate Modal Popover and Tooltip with shared overlay foundation
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Popover,
|
||||
PopoverTrigger,
|
||||
PopoverContent,
|
||||
PopoverArrow,
|
||||
PopoverDialog,
|
||||
PopoverHeading,
|
||||
Button,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<Popover>
|
||||
<PopoverTrigger as-child><Button>点击我</Button></PopoverTrigger>
|
||||
<PopoverContent>
|
||||
<PopoverArrow />
|
||||
<PopoverDialog>
|
||||
<PopoverHeading>标题</PopoverHeading>
|
||||
内容
|
||||
</PopoverDialog>
|
||||
</PopoverContent>
|
||||
</Popover>
|
||||
</template>
|
||||
Reference in New Issue
Block a user