feature: vor und nachteile

This commit is contained in:
Hikyu
2026-05-31 13:54:31 +02:00
parent 552a947a1c
commit e3dad17446
23270 changed files with 3024794 additions and 200 deletions
+28
View File
@@ -0,0 +1,28 @@
<!--
Create a link in the presentation
Usage:
<Link :to="5" >Go to slide 5</Link>
<Link :to="5" title="Go to slide 5" />
-->
<script setup lang="ts">
import { useNav } from '../composables/useNav'
defineProps<{
to: number | string
title?: string
}>()
const { isPrintMode } = useNav()
</script>
<template>
<RouterLink v-if="!isPrintMode && title" :to="String(to)" @click="$event.target.blur()" v-html="title" />
<RouterLink v-else-if="!isPrintMode && !title" :to="String(to)" @click="$event.target.blur()">
<slot />
</RouterLink>
<a v-else-if="isPrintMode && title" :href="`#${to}`" v-html="title" />
<a v-else :href="`#${to}`"><slot /></a>
</template>