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({ const $props = defineProps({
title: { type: String, require: true, default: 'twoFactor.validate' }, title: { type: String, require: true, default: 'twoFactor.validate' },
href: { type: String, require: true, default: null },
}); });
const { t } = useI18n(); const { t } = useI18n();
</script> </script>
<template> <template>
<QCardSection class="q-pa-none"> <QCardSection class="q-pa-none">
<a class="header"> <a class="header" :href="$props.href">
{{ t($props.title) }} {{ t($props.title) }}
<slot name="icon"></slot>
</a> </a>
<slot name="btn"></slot> <slot name="btn"></slot>
</QCardSection> </QCardSection>