48 lines
1.3 KiB
Vue
48 lines
1.3 KiB
Vue
<script setup lang="ts">
|
|
import {
|
|
Button,
|
|
Tooltip,
|
|
TooltipArrow,
|
|
TooltipContent,
|
|
} from "@heroui-vue/components";
|
|
</script>
|
|
<template>
|
|
<div class="grid grid-cols-3 gap-4">
|
|
<div></div>
|
|
<Tooltip :delay="0">
|
|
<Button class="w-full" variant="tertiary">Top</Button>
|
|
<TooltipContent showArrow placement="top">
|
|
<TooltipArrow></TooltipArrow>
|
|
<p>顶部位置</p>
|
|
</TooltipContent>
|
|
</Tooltip>
|
|
<div></div>
|
|
<Tooltip :delay="0">
|
|
<Button class="w-full" variant="tertiary">Left</Button>
|
|
<TooltipContent showArrow placement="left">
|
|
<TooltipArrow></TooltipArrow>
|
|
<p>左侧位置</p>
|
|
</TooltipContent>
|
|
</Tooltip>
|
|
<div class="flex items-center justify-center">
|
|
<span class="text-sm text-muted">悬停按钮</span>
|
|
</div>
|
|
<Tooltip :delay="0">
|
|
<Button class="w-full" variant="tertiary">Right</Button>
|
|
<TooltipContent showArrow placement="right">
|
|
<TooltipArrow></TooltipArrow>
|
|
<p>右侧位置</p>
|
|
</TooltipContent>
|
|
</Tooltip>
|
|
<div></div>
|
|
<Tooltip :delay="0">
|
|
<Button class="w-full" variant="tertiary">Bottom</Button>
|
|
<TooltipContent showArrow placement="bottom">
|
|
<TooltipArrow></TooltipArrow>
|
|
<p>底部位置</p>
|
|
</TooltipContent>
|
|
</Tooltip>
|
|
<div></div>
|
|
</div>
|
|
</template>
|