1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-13 20:39:58 +00:00
elk/components/common/CommonTooltip.vue

24 lines
410 B
Vue
Raw Normal View History

2022-11-24 05:04:20 +00:00
<script setup lang="ts">
import type { Popper as VTooltipType } from 'floating-vue/dist'
2022-11-24 08:34:05 +00:00
defineProps<{
content?: string
} & Partial<typeof VTooltipType>>()
2022-11-24 05:04:20 +00:00
</script>
<template>
<VTooltip
v-bind="$attrs"
auto-hide
2022-11-24 05:04:20 +00:00
>
<slot />
<template #popper>
<div text-3>
2022-11-24 08:34:05 +00:00
<slot name="popper">
{{ content }}
</slot>
2022-11-24 05:04:20 +00:00
</div>
</template>
</VTooltip>
</template>