admin-vben/packages/effects/layouts/src/authentication/form.vue

45 lines
1.1 KiB
Vue
Raw Normal View History

2024-05-19 13:20:42 +00:00
<script setup lang="ts">
2024-06-01 15:15:29 +00:00
import { preferences } from '@vben-core/preferences';
2024-05-19 13:20:42 +00:00
import { Copyright } from '../basic/copyright';
2024-05-19 13:20:42 +00:00
import Toolbar from './toolbar.vue';
defineOptions({
name: 'AuthenticationFormView',
});
</script>
2024-05-19 13:20:42 +00:00
<template>
<div
class="flex-col-center bg-background-content relative px-6 py-10 lg:flex-initial lg:px-8"
>
<!-- Toolbar Slot -->
2024-05-19 13:20:42 +00:00
<slot name="toolbar">
<Toolbar />
</slot>
<!-- Router View with Transition and KeepAlive -->
2024-05-19 13:20:42 +00:00
<RouterView v-slot="{ Component, route }">
2024-06-09 05:31:43 +00:00
<Transition appear mode="out-in" name="slide-right">
2024-05-19 13:20:42 +00:00
<KeepAlive :include="['Login']">
<component
:is="Component"
:key="route.fullPath"
class="enter-x mt-6 w-full sm:mx-auto md:max-w-md"
2024-05-19 13:20:42 +00:00
/>
</KeepAlive>
</Transition>
</RouterView>
<!-- Footer Copyright -->
2024-05-19 13:20:42 +00:00
<div
class="text-muted-foreground absolute bottom-3 flex text-center text-xs"
>
<Copyright
v-if="preferences.copyright.enable"
v-bind="preferences.copyright"
/>
2024-05-19 13:20:42 +00:00
</div>
</div>
</template>