2024-05-19 13:20:42 +00:00
|
|
|
<script setup lang="ts">
|
2024-07-22 16:03:59 +00:00
|
|
|
import { preferences } from '@vben/preferences';
|
2024-05-19 13:20:42 +00:00
|
|
|
|
2024-07-06 08:19:37 +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-07-15 15:53:58 +00:00
|
|
|
|
2024-05-19 13:20:42 +00:00
|
|
|
<template>
|
2024-07-15 15:22:00 +00:00
|
|
|
<div
|
2024-07-18 13:59:18 +00:00
|
|
|
class="flex-col-center bg-background-deep relative px-6 py-10 lg:flex-initial lg:px-8"
|
2024-07-15 15:22:00 +00:00
|
|
|
>
|
2024-07-15 15:53:58 +00:00
|
|
|
<!-- Toolbar Slot -->
|
2024-05-19 13:20:42 +00:00
|
|
|
<slot name="toolbar">
|
|
|
|
<Toolbar />
|
|
|
|
</slot>
|
|
|
|
|
2024-07-15 15:53:58 +00:00
|
|
|
<!-- 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"
|
2024-07-15 15:22:00 +00:00
|
|
|
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>
|
|
|
|
|
2024-07-15 15:53:58 +00:00
|
|
|
<!-- Footer Copyright -->
|
2024-05-19 13:20:42 +00:00
|
|
|
<div
|
|
|
|
class="text-muted-foreground absolute bottom-3 flex text-center text-xs"
|
|
|
|
>
|
2024-07-06 08:19:37 +00:00
|
|
|
<Copyright
|
|
|
|
v-if="preferences.copyright.enable"
|
|
|
|
v-bind="preferences.copyright"
|
|
|
|
/>
|
2024-05-19 13:20:42 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|