This commit is contained in:
dap
2025-04-05 14:29:10 +08:00
6 changed files with 55 additions and 27 deletions

View File

@@ -55,12 +55,13 @@ withDefaults(defineProps<Props>(), {
:size="logoSize"
class="relative rounded-none bg-transparent"
/>
<span
v-if="!collapsed"
class="text-foreground truncate text-nowrap font-semibold"
>
{{ text }}
</span>
<template v-if="!collapsed">
<slot name="text">
<span class="text-foreground truncate text-nowrap font-semibold">
{{ text }}
</span>
</slot>
</template>
</a>
</div>
</template>