2022-11-24 08:04:20 +03:00
|
|
|
<script setup lang="ts">
|
2023-12-20 00:31:39 +03:00
|
|
|
import type { Popper as VTooltipType } from 'floating-vue'
|
2022-12-08 13:07:54 +03:00
|
|
|
|
2023-02-08 12:20:58 +03:00
|
|
|
export interface Props extends Partial<typeof VTooltipType> {
|
2022-11-24 11:34:05 +03:00
|
|
|
content?: string
|
2023-02-08 12:20:58 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
defineProps<Props>()
|
2022-11-24 08:04:20 +03:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<VTooltip
|
2024-02-24 15:24:21 +03:00
|
|
|
v-if="isHydrated"
|
2022-11-24 08:04:20 +03:00
|
|
|
v-bind="$attrs"
|
2023-01-15 22:56:13 +03:00
|
|
|
auto-hide
|
2024-04-06 06:58:50 +03:00
|
|
|
no-auto-focus
|
2022-11-24 08:04:20 +03:00
|
|
|
>
|
|
|
|
<slot />
|
|
|
|
<template #popper>
|
|
|
|
<div text-3>
|
2022-11-24 11:34:05 +03:00
|
|
|
<slot name="popper">
|
|
|
|
{{ content }}
|
|
|
|
</slot>
|
2022-11-24 08:04:20 +03:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</VTooltip>
|
|
|
|
</template>
|