2023-01-19 20:12:25 +00:00
|
|
|
<template>
|
2023-01-26 11:52:22 +00:00
|
|
|
<q-item clickable tag="a" target="_blank" :href="link">
|
|
|
|
<q-item-section v-if="icon" avatar>
|
2023-01-19 20:12:25 +00:00
|
|
|
<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';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
name: 'EssentialLink',
|
|
|
|
props: {
|
|
|
|
title: {
|
|
|
|
type: String,
|
2023-01-26 11:52:22 +00:00
|
|
|
required: true,
|
2023-01-19 20:12:25 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
caption: {
|
|
|
|
type: String,
|
2023-01-26 11:52:22 +00:00
|
|
|
default: '',
|
2023-01-19 20:12:25 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
link: {
|
|
|
|
type: String,
|
2023-01-26 11:52:22 +00:00
|
|
|
default: '#',
|
2023-01-19 20:12:25 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
icon: {
|
|
|
|
type: String,
|
2023-01-26 11:52:22 +00:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
},
|
2023-01-19 20:12:25 +00:00
|
|
|
});
|
|
|
|
</script>
|