2022-11-24 14:04:20 +09:00
|
|
|
<script setup lang="ts">
|
2022-12-08 19:07:54 +09:00
|
|
|
import type { Popper as VTooltipType } from 'floating-vue/dist'
|
|
|
|
|
2023-02-08 18:20:58 +09:00
|
|
|
export interface Props extends Partial<typeof VTooltipType> {
|
2022-11-24 17:34:05 +09:00
|
|
|
content?: string
|
2023-02-08 18:20:58 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
defineProps<Props>()
|
2022-11-24 14:04:20 +09:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<VTooltip
|
|
|
|
v-bind="$attrs"
|
2023-01-16 04:56:13 +09:00
|
|
|
auto-hide
|
2022-11-24 14:04:20 +09:00
|
|
|
>
|
|
|
|
<slot />
|
|
|
|
<template #popper>
|
|
|
|
<div text-3>
|
2022-11-24 17:34:05 +09:00
|
|
|
<slot name="popper">
|
|
|
|
{{ content }}
|
|
|
|
</slot>
|
2022-11-24 14:04:20 +09:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</VTooltip>
|
|
|
|
</template>
|