1
0
mirror of https://github.com/elk-zone/elk synced 2024-12-23 11:08:04 +09:00
elk/components/common/CommonTooltip.vue

21 lines
300 B
Vue
Raw Normal View History

2022-11-24 14:04:20 +09:00
<script setup lang="ts">
2022-11-24 17:34:05 +09:00
defineProps<{
content?: string
}>()
2022-11-24 14:04:20 +09:00
</script>
<template>
<VTooltip
v-bind="$attrs"
>
<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>