refactor(projects): basicLayout重构初步

This commit is contained in:
Soybean
2021-11-18 02:04:50 +08:00
parent 7925a69b64
commit 33770d2356
46 changed files with 1378 additions and 2 deletions

View File

@ -0,0 +1,23 @@
<template>
<a href="/" class="flex-center nowrap-hidden bg-light dark:bg-dark cursor-pointer">
<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 } from '@/hooks';
interface Props {
/** 显示名字 */
showTitle: boolean;
}
defineProps<Props>();
const theme = useThemeStore();
const title = useAppTitle();
</script>
<style scoped></style>