form.vue 856 B

123456789101112131415161718192021222324252627282930313233
  1. <script setup lang="ts">
  2. defineOptions({
  3. name: 'AuthenticationFormView',
  4. });
  5. </script>
  6. <template>
  7. <div
  8. class="flex-col-center dark:bg-background-deep bg-background relative px-6 py-10 lg:flex-initial lg:px-8"
  9. >
  10. <slot></slot>
  11. <!-- Router View with Transition and KeepAlive -->
  12. <RouterView v-slot="{ Component, route }">
  13. <Transition appear mode="out-in" name="slide-right">
  14. <KeepAlive :include="['Login']">
  15. <component
  16. :is="Component"
  17. :key="route.fullPath"
  18. class="enter-x mt-6 w-full sm:mx-auto md:max-w-md"
  19. />
  20. </KeepAlive>
  21. </Transition>
  22. </RouterView>
  23. <!-- Footer Copyright -->
  24. <div
  25. class="text-muted-foreground absolute bottom-3 flex text-center text-xs"
  26. >
  27. <slot name="copyright"> </slot>
  28. </div>
  29. </div>
  30. </template>