refactor(components): basicLayout布局组件重构完成:根据NavMode拆分为多个布局组件

This commit is contained in:
Soybean
2021-11-20 20:14:02 +08:00
parent 0e0d559d2f
commit ffe987832f
110 changed files with 743 additions and 1713 deletions

View File

@@ -0,0 +1,24 @@
<template>
<a href="/" class="flex-center w-full nowrap-hidden cursor-pointer" :style="{ height: headerHeight }">
<system-logo class="w-32px h-32px" :color="theme.themeColor" />
<h2 v-show="showTitle" class="text-primary pl-8px text-16px font-bold">{{ title }}</h2>
</a>
</template>
<script lang="ts" setup>
import { SystemLogo } from '@/components';
import { useThemeStore } from '@/store';
import { useAppTitle, useLayoutConfig } from '@/composables';
interface Props {
/** 显示名字 */
showTitle: boolean;
}
defineProps<Props>();
const theme = useThemeStore();
const title = useAppTitle();
const { headerHeight } = useLayoutConfig();
</script>
<style scoped></style>