from-view.vue 967 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <script setup lang="ts">
  2. import { preferences } from '@vben-core/preferences';
  3. import { Copyright } from '../basic/copyright';
  4. import Toolbar from './toolbar.vue';
  5. defineOptions({
  6. name: 'AuthenticationFormView',
  7. });
  8. </script>
  9. <template>
  10. <div class="flex-col-center relative px-6 py-10 lg:flex-initial lg:px-8">
  11. <slot name="toolbar">
  12. <Toolbar />
  13. </slot>
  14. <RouterView v-slot="{ Component, route }">
  15. <Transition appear mode="out-in" name="slide-right">
  16. <KeepAlive :include="['Login']">
  17. <component
  18. :is="Component"
  19. :key="route.fullPath"
  20. class="mt-6 w-full sm:mx-auto md:max-w-md"
  21. />
  22. </KeepAlive>
  23. </Transition>
  24. </RouterView>
  25. <div
  26. class="text-muted-foreground absolute bottom-3 flex text-center text-xs"
  27. >
  28. <Copyright
  29. v-if="preferences.copyright.enable"
  30. v-bind="preferences.copyright"
  31. />
  32. </div>
  33. </div>
  34. </template>