Add ts for Tabs

This commit is contained in:
philipp lang 2025-06-12 18:31:21 +02:00
parent 63799c87ec
commit 50878a9a3c
3 changed files with 10 additions and 25 deletions

View File

@ -1,28 +1,14 @@
<template>
<a v-tooltip="tooltip" :href="href" :target="blank ? '_BLANK' : '_SELF'" class="inline-flex btn btn-sm">
<ui-sprite :src="icon"></ui-sprite>
<ui-sprite :src="icon" />
</a>
</template>
<script setup>
defineProps({
tooltip: {
required: true,
type: String,
},
href: {
type: String,
default: () => '#',
required: false,
},
blank: {
type: Boolean,
default: () => false,
required: false,
},
icon: {
type: String,
required: true,
},
});
<script lang="ts" setup>
const {tooltip, icon, blank = false, href = '#'} = defineProps<{
tooltip: string,
href?: string,
blank?: boolean,
icon: string,
}>();
</script>

View File

@ -2,6 +2,5 @@
<svg v-bind="$attrs" class="fill-current"><use :xlink:href="`/sprite.svg#${$attrs.src}`" /></svg>
</template>
<script>
export default {};
<script lang="ts" setup>
</script>

View File

@ -9,7 +9,7 @@
</div>
</template>
<script lang="ts" setup>
<script lang="ts" setup>
defineProps<{
modelValue: number,
entries: {title: string}[]