feat(projects): 添加头部折叠按钮

This commit is contained in:
Soybean
2022-01-10 12:43:04 +08:00
parent 6d132c5977
commit a090d398fc
15 changed files with 548 additions and 396 deletions

View File

@ -0,0 +1,23 @@
<template>
<router-link :to="routeHomePath" class="flex-center w-full nowrap-hidden">
<system-logo class="w-32px h-32px text-primary" />
<h2 v-if="showTitle" class="pl-8px text-16px font-bold text-primary">{{ title }}</h2>
</router-link>
</template>
<script setup lang="ts">
import { SystemLogo } from '@/components';
import { routePath } from '@/router';
import { useAppInfo } from '@/composables';
interface Props {
/** 显示名字 */
showTitle: boolean;
}
defineProps<Props>();
const { title } = useAppInfo();
const routeHomePath = routePath('root');
</script>
<style scoped></style>