index.vue 875 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div class="go-project">
  3. <n-layout has-sider position="absolute">
  4. <n-space vertical>
  5. <Sider />
  6. </n-space>
  7. <n-layout>
  8. <Header />
  9. <n-layout
  10. class="content-top"
  11. position="absolute"
  12. :native-scrollbar="false"
  13. >
  14. <n-layout-content>
  15. <TransitionMain>
  16. <router-view />
  17. </TransitionMain>
  18. </n-layout-content>
  19. </n-layout>
  20. </n-layout>
  21. </n-layout>
  22. </div>
  23. </template>
  24. <script setup lang="ts">
  25. import { Sider } from './layout/components/Sider'
  26. import { Header } from './layout/components/Header/index'
  27. import { TransitionMain } from '@/layout/components/TransitionMain/index'
  28. </script>
  29. <style lang="scss" scoped>
  30. @include go(project) {
  31. .content-top {
  32. top: $--header-height;
  33. margin-top: 1px;
  34. }
  35. }
  36. </style>