Merge branch 'fork/zhb410181/fix/style'

This commit is contained in:
金毛88
2026-06-09 11:22:58 +08:00
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>