Improve and fix errors on main page

This commit is contained in:
2024-07-02 01:12:58 +02:00
parent 9cbc3ab176
commit c56ed8254f
2 changed files with 14 additions and 3 deletions

View File

@@ -1,4 +1,7 @@
<script lang="ts" setup>
import type { Placement } from '@popperjs/core'
import type { PropType } from 'vue'
defineProps({
text: {
type: [String, Number],
@@ -7,12 +10,18 @@ defineProps({
hover: {
type: String,
required: true
},
position: {
type: String as PropType<Placement>
}
})
</script>
<template>
<UTooltip :text="hover">
<UTooltip
:popper="{ placement: position }"
:text="hover"
>
<strong class="leading-3">{{ text }}</strong>
</UTooltip>
</template>