提交 b4fccce1 编写于 作者: View Design's avatar View Design

add

上级 4f474504
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
</template> </template>
</div> </div>
<UButton <UButton
v-else
class="flex flex-grow gap-2 justify-center" class="flex flex-grow gap-2 justify-center"
size="lg" size="lg"
label="登录" label="登录"
......
<template> <template>
<div class="flex flex-col w-full"> <div class="flex flex-col w-full">
<template v-if="$isSignIn"> <template v-if="$isSignIn">
<div class="flex flex-grow justify-between items-center gap-2 p-4"> <div class="flex flex-grow justify-between items-center p-4">
<UDropdown class="flex flex-grow" :items="items"> <UDropdown class="flex flex-grow" :items="items">
<UButton class="flex flex-grow gap-2" color="gray" variant="ghost"> <UButton class="flex flex-grow" color="gray" variant="ghost">
<div class="flex flex-grow items-center gap-2">
<UAvatar :src="$info.avatar" /> <UAvatar :src="$info.avatar" />
<div>{{ $info.name }}</div> <div>{{ $info.name }}</div>
<UBadge v-if="$info.pro" size="xs" color="purple" variant="soft" label="PRO" /> <UBadge v-if="$info.pro" size="xs" color="yellow" variant="soft" label="PRO" />
<UBadge v-else size="xs" color="gray" variant="soft" label="FREE" /> <UBadge v-else size="xs" color="gray" variant="soft" label="FREE" />
</div>
<UIcon name="i-heroicons-chevron-down-20-solid" /> <UIcon name="i-heroicons-chevron-down-20-solid" />
</UButton> </UButton>
</UDropdown> </UDropdown>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册