MobileLeftAside.vue 615 B

12345678910111213141516171819202122
  1. <script setup lang="ts">
  2. import { useInjection } from '@/composable/useInjection'
  3. import { layoutInjectionKey } from '@/injection'
  4. import LogoArea from '../../header/LogoArea.vue'
  5. import Menu from '../component/Menu.vue'
  6. import UserCard from '../component/UserCard.vue'
  7. const { layoutSlideDirection } = useInjection(layoutInjectionKey)
  8. </script>
  9. <template>
  10. <div
  11. class="absolute top-0 left-0 flex h-svh flex-col gap-y-4 pt-6 pb-4 transition-[translate]"
  12. :class="{
  13. '-translate-x-full': layoutSlideDirection !== 'right',
  14. }"
  15. >
  16. <LogoArea />
  17. <Menu />
  18. <UserCard />
  19. </div>
  20. </template>