EssentialLink.vue 756 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <q-item clickable
  3. tag="a"
  4. target="_blank"
  5. :href="link">
  6. <q-item-section v-if="icon"
  7. avatar>
  8. <q-icon :name="icon" />
  9. </q-item-section>
  10. <q-item-section>
  11. <q-item-label>{{ title }}</q-item-label>
  12. <q-item-label caption>{{ caption }}</q-item-label>
  13. </q-item-section>
  14. </q-item>
  15. </template>
  16. <script>
  17. import { defineComponent } from 'vue'
  18. export default defineComponent({
  19. name: 'EssentialLink',
  20. props: {
  21. title: {
  22. type: String,
  23. required: true
  24. },
  25. caption: {
  26. type: String,
  27. default: ''
  28. },
  29. link: {
  30. type: String,
  31. default: '#'
  32. },
  33. icon: {
  34. type: String,
  35. default: ''
  36. }
  37. }
  38. })
  39. </script>