Files
wireguard-dashboard-admin/src/layout/index.vue

41 lines
1.1 KiB
Vue
Raw Normal View History

2022-01-08 17:20:46 +08:00
<template>
2022-04-18 22:01:30 +08:00
<n-layout has-sider style="height: 100%">
<n-layout-sider bordered :width="200" :collapsed-width="0" :native-scrollbar="false">
<SideBar />
</n-layout-sider>
<n-layout>
<n-layout-header :style="{ height: useTheme.header.height + 'px' }">
<AppHeader />
</n-layout-header>
2022-04-10 21:41:06 +08:00
2022-04-18 22:01:30 +08:00
<n-layout
style="background-color: #f5f6fb"
:style="`height: calc(100% - ${useTheme.header.height}px)`"
:native-scrollbar="false"
>
<AppTags v-if="useTheme.tags.visible" />
<AppMain />
2022-01-08 17:20:46 +08:00
</n-layout>
</n-layout>
2022-04-18 22:01:30 +08:00
</n-layout>
2022-01-08 17:20:46 +08:00
</template>
2022-03-20 14:45:36 +08:00
2022-04-10 21:41:06 +08:00
<script setup>
import AppHeader from './components/header/index.vue'
import SideBar from './components/sidebar/index.vue'
import AppMain from './components/AppMain.vue'
import AppTags from './components/tags/index.vue'
import { useThemeStore } from '@/store/modules/theme'
const useTheme = useThemeStore()
</script>
2022-03-20 14:45:36 +08:00
<style lang="scss" scoped>
.n-layout-header {
height: 60px;
background-color: #fff;
border-bottom: 1px solid #eee;
border-left: 1px solid #eee;
}
</style>