33 lines
610 B
Vue
33 lines
610 B
Vue
<script lang="ts" setup>
|
|
import { inject } from 'vue'
|
|
import VPLink from './VPLink.vue'
|
|
|
|
defineProps<{
|
|
text: string
|
|
link: string
|
|
}>()
|
|
|
|
const closeScreen = inject('close-screen') as () => void
|
|
</script>
|
|
|
|
<template>
|
|
<VPLink class="VPNavScreenMenuGroupLink" :href="link" @click="closeScreen">
|
|
{{ text }}
|
|
</VPLink>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.VPNavScreenMenuGroupLink {
|
|
display: block;
|
|
margin-left: 12px;
|
|
line-height: 32px;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
color: var(--vp-c-text-1);
|
|
transition: color 0.25s;
|
|
}
|
|
|
|
.VPNavScreenMenuGroupLink:hover {
|
|
color: var(--vp-c-brand);
|
|
}
|
|
</style>
|