2021-12-10 14:11:49 +08:00
|
|
|
<template>
|
2021-12-18 16:36:43 +08:00
|
|
|
<div class="go-project">
|
|
|
|
<n-layout has-sider position="absolute">
|
|
|
|
<n-space vertical>
|
|
|
|
<Sider />
|
|
|
|
</n-space>
|
|
|
|
<n-layout>
|
|
|
|
<Header />
|
|
|
|
<n-layout
|
|
|
|
class="content-top"
|
|
|
|
position="absolute"
|
|
|
|
:native-scrollbar="false"
|
|
|
|
>
|
|
|
|
<n-layout-content>
|
|
|
|
<router-view></router-view>
|
|
|
|
</n-layout-content>
|
|
|
|
</n-layout>
|
|
|
|
</n-layout>
|
|
|
|
</n-layout>
|
2021-12-10 14:11:49 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2021-12-18 16:36:43 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { Sider } from './layout/components/Sider'
|
|
|
|
import { Header } from './layout/components/Header/index'
|
|
|
|
</script>
|
2021-12-10 14:11:49 +08:00
|
|
|
|
2021-12-18 16:36:43 +08:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
@include go(project) {
|
|
|
|
.content-top {
|
|
|
|
top: $--header-height;
|
|
|
|
margin-top: 1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|