fix(style): 1.修复ToggleGroupItem边框样式问题 2.修复用户头像下拉框Badge背景颜色

This commit is contained in:
hiss
2026-06-09 08:56:07 +08:00
parent f23c9f5e19
commit 5c9daab2ff
2 changed files with 6 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ const forwardedProps = useForwardProps(delegatedProps);
size: context?.size || size,
}),
'w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10',
'data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l',
'data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[variant=outline]:[&:not(:first-child)]:-ml-px data-[spacing=0]:data-[variant=outline]:first:border-l',
props.class,
)
"

View File

@@ -237,7 +237,11 @@ if (enableShortcutKey.value) {
>
{{ text }}
<slot name="tagText">
<Badge v-if="tagText" class="ml-2 text-green-400">
<Badge
v-if="tagText"
variant="secondary"
class="ml-2 text-green-400"
>
{{ tagText }}
</Badge>
</slot>