mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 添加头部折叠按钮
This commit is contained in:
23
src/layouts/common/GlobalLogo/index.vue
Normal file
23
src/layouts/common/GlobalLogo/index.vue
Normal 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>
|
Reference in New Issue
Block a user