refs #6416 feat: VnCardSection
This commit is contained in:
parent
9b0613a557
commit
89b6c50b97
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue