#default instead of v-slot

This commit is contained in:
2024-05-18 22:40:25 +02:00
parent 3fd4f5080d
commit 79bef2775c

View File

@@ -21,7 +21,7 @@ withDefaults(defineProps<Props>(), {
<img v-if="id" :src="`https://images.evetech.net/types/${id}/icon`" class="inline-block w-5 h-5 me-1" alt="" />
<template v-if="name">
{{ name }}
<RouterLink :to="{ name: 'market-types', params: { type: id } }" custom v-slot="{ navigate }">
<RouterLink :to="{ name: 'market-types', params: { type: id } }" custom #default="{ navigate }">
<button class="btn-icon me-1" title="Show item info" @click="navigate">
<InformationCircleIcon />
</button>