mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-25 14:20:21 +08:00
refactor(components): basicLayout布局组件重构完成:根据NavMode拆分为多个布局组件
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<template>
|
||||
<n-layout :has-sider="true" class="h-full">
|
||||
<mix-sider v-bind="globalSiderClassAndStyle" />
|
||||
<n-layout-content ref="scrollbar" :native-scrollbar="false" :content-style="scrollbarContentStyle">
|
||||
<n-layout-header
|
||||
:inverted="headerInverted"
|
||||
:position="headerPosition"
|
||||
:class="{ 'z-11': theme.fixedHeaderAndTab }"
|
||||
>
|
||||
<global-header :show-logo="false" :show-menu-collape="false" :show-menu="false" class="relative z-2" />
|
||||
<global-tab v-if="theme.multiTabStyle.visible" />
|
||||
</n-layout-header>
|
||||
<space-placeholder />
|
||||
<global-content />
|
||||
<global-footer />
|
||||
</n-layout-content>
|
||||
</n-layout>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { NLayout, NLayoutContent, NLayoutHeader } from 'naive-ui';
|
||||
import { useThemeStore } from '@/store';
|
||||
import { useLayoutConfig } from '@/composables';
|
||||
import { MixSider, GlobalHeader, GlobalContent, GlobalFooter, GlobalTab, SpacePlaceholder } from '../common';
|
||||
|
||||
const theme = useThemeStore();
|
||||
const { headerInverted, headerPosition, globalSiderClassAndStyle, scrollbarContentStyle, scrollbar } =
|
||||
useLayoutConfig();
|
||||
</script>
|
||||
<style scoped></style>
|
||||
Reference in New Issue
Block a user