feat(docs): align documentation shell with HeroUI baseline

This commit is contained in:
maoyingjie
2026-10-24 07:18:36 +08:00
parent 406497a20f
commit b2246f0058
33 changed files with 2499 additions and 1540 deletions
+7 -3
View File
@@ -26,7 +26,7 @@ const props = withDefaults(
autoFocus?: boolean;
}>(),
{
target: "_self",
target: undefined,
isDisabled: false,
asChild: false,
},
@@ -263,8 +263,12 @@ defineExpose({
:rel="rel"
:download="downloadAttr"
:class="slots.base()"
:role="asChild ? 'link' : undefined"
:tabindex="disabled ? -1 : asChild ? 0 : undefined"
:role="(attrs.role as string | undefined) ?? (asChild ? 'link' : undefined)"
:tabindex="
disabled
? -1
: ((attrs.tabindex as number | undefined) ?? (asChild ? 0 : undefined))
"
:aria-disabled="disabled || undefined"
:data-hovered="(!disabled && hovered) || undefined"
:data-pressed="(!disabled && pressed) || undefined"