feat: migrate Select with field, collection and SSR contracts

This commit is contained in:
maoyingjie
2026-10-23 22:05:44 +08:00
parent 65db60a7ac
commit 2b569451b6
52 changed files with 4172 additions and 33 deletions
@@ -108,7 +108,7 @@ function escape(event: KeyboardEvent) {
:side-flip="shouldFlip"
:collision-padding="containerPadding"
class="hv-popover"
data-slot="popover-content"
:data-slot="$attrs['data-slot'] ?? 'popover-content'"
:data-entering="entering || undefined"
:data-exiting="exiting || undefined"
:lang="($attrs.lang as string | undefined) ?? config?.locale.value"
@@ -123,6 +123,7 @@ function escape(event: KeyboardEvent) {
<component
:is="as"
ref="contentElement"
:role="($attrs.role as string | undefined) ?? 'dialog'"
:aria-label="
($attrs['aria-label'] as string | undefined) ??
(ctx.dialogAttrs.value['aria-label'] as string | undefined)