index.vue 944 B

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