refs #6416 feat: VnCardSection

This commit is contained in:
Javier Segarra 2023-11-08 04:09:34 +01:00
parent 9b0613a557
commit 89b6c50b97
1 changed files with 3 additions and 1 deletions

View File

@ -3,13 +3,15 @@ import { useI18n } from 'vue-i18n';
const $props = defineProps({
title: { type: String, require: true, default: 'twoFactor.validate' },
href: { type: String, require: true, default: null },
});
const { t } = useI18n();
</script>
<template>
<QCardSection class="q-pa-none">
<a class="header">
<a class="header" :href="$props.href">
{{ t($props.title) }}
<slot name="icon"></slot>
</a>
<slot name="btn"></slot>
</QCardSection>