flaschengeist-frontend/src/components/navigation/EssentialLink.vue

52 lines
799 B
Vue
Raw Normal View History

2020-10-02 07:13:14 +00:00
<template>
<q-item
clickable
tag="a"
2020-10-09 16:04:32 +00:00
target="self"
:to="{name:link}"
2020-10-02 07:13:14 +00:00
>
<q-item-section
v-if="icon"
avatar
>
<q-icon :name="icon" />
</q-item-section>
<q-item-section>
<q-item-label>{{ title }}</q-item-label>
<q-item-label caption>
{{ caption }}
</q-item-label>
</q-item-section>
</q-item>
</template>
<script lang="ts">
import { defineComponent } from '@vue/composition-api';
export default defineComponent({
name: 'EssentialLink',
props: {
title: {
type: String,
2020-10-09 16:04:32 +00:00
required: true,
2020-10-02 07:13:14 +00:00
},
caption: {
type: String,
2020-10-09 16:04:32 +00:00
default: '',
2020-10-02 07:13:14 +00:00
},
link: {
type: String,
2020-10-09 16:04:32 +00:00
default: 'home',
2020-10-02 07:13:14 +00:00
},
icon: {
type: String,
2020-10-09 16:04:32 +00:00
default: '',
},
},
2020-10-02 07:13:14 +00:00
});
</script>