fix: 修改大屏不能显示bug、修改大屏字体、替换系统logo
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { VbenAvatar } from '../avatar';
|
||||
import { usePreferences } from '../../../../../../../packages/preferences/src/index';
|
||||
const { isDark } = usePreferences();
|
||||
|
||||
interface Props {
|
||||
/**
|
||||
@@ -51,23 +53,39 @@ withDefaults(defineProps<Props>(), {
|
||||
<a
|
||||
:class="$attrs.class"
|
||||
:href="href"
|
||||
class="flex h-full items-center gap-2 overflow-hidden px-3 text-lg leading-normal transition-all duration-500"
|
||||
class="flex items-center gap-2 overflow-hidden text-lg leading-normal transition-all duration-500"
|
||||
>
|
||||
<VbenAvatar
|
||||
<div style="margin-top: 20px">
|
||||
<img
|
||||
src="../../../../../../../apps/web-antd/src/assets/logoLight.png"
|
||||
alt=""
|
||||
v-if="isDark"
|
||||
width="170"
|
||||
height="49"
|
||||
/>
|
||||
<img
|
||||
src="../../../../../../../apps/web-antd/src/assets/logoDark.png"
|
||||
alt=""
|
||||
v-if="!isDark"
|
||||
width="170"
|
||||
height="49"
|
||||
/>
|
||||
</div>
|
||||
<!-- <VbenAvatar
|
||||
v-if="src"
|
||||
:alt="text"
|
||||
:src="src"
|
||||
:size="logoSize"
|
||||
:fit="fit"
|
||||
class="relative rounded-none bg-transparent"
|
||||
/>
|
||||
<template v-if="!collapsed">
|
||||
/> -->
|
||||
<!-- <template v-if="!collapsed">
|
||||
<slot name="text">
|
||||
<span class="text-foreground truncate text-nowrap font-semibold">
|
||||
{{ text }}
|
||||
</span>
|
||||
</slot>
|
||||
</template>
|
||||
</template> -->
|
||||
</a>
|
||||
</div>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user