fix(pickers): repair data-slot selectors and align demos with the baseline
The CSS port prefixed data-slot attribute values with hv-, so the compiled selectors never matched the DOM and the ComboBox trigger chevron never rotated. Only class names get the prefix; slot values stay byte-identical. Also commit typed text as the value when allowsCustomValue finds no record, restore the baseline search-field shell in all 24 Autocomplete demos, and correct both doc pages against the pinned upstream sources.
This commit is contained in:
@@ -25,18 +25,18 @@ const PAGE_SIZE = 4;
|
||||
const PAGE_DELAY = 300;
|
||||
|
||||
const characters: Character[] = [
|
||||
{ id: "luke-skywalker", name: "卢克·天行者" },
|
||||
{ id: "princess-leia", name: "莱娅公主" },
|
||||
{ id: "han-solo", name: "汉·索罗" },
|
||||
{ id: "darth-vader", name: "达斯·维达" },
|
||||
{ id: "yoda", name: "尤达" },
|
||||
{ id: "obi-wan-kenobi", name: "欧比旺·克诺比" },
|
||||
{ id: "palpatine", name: "帕尔帕廷" },
|
||||
{ id: "lando-calrissian", name: "兰多·卡瑞辛" },
|
||||
{ id: "chewbacca", name: "楚巴卡" },
|
||||
{ id: "r2-d2", name: "R2-D2" },
|
||||
{ id: "c-3po", name: "C-3PO" },
|
||||
{ id: "boba-fett", name: "波巴·费特" },
|
||||
{ id: "Luke Skywalker", name: "Luke Skywalker" },
|
||||
{ id: "Princess Leia", name: "Princess Leia" },
|
||||
{ id: "Han Solo", name: "Han Solo" },
|
||||
{ id: "Darth Vader", name: "Darth Vader" },
|
||||
{ id: "Yoda", name: "Yoda" },
|
||||
{ id: "Obi-Wan Kenobi", name: "Obi-Wan Kenobi" },
|
||||
{ id: "Palpatine", name: "Palpatine" },
|
||||
{ id: "Lando Calrissian", name: "Lando Calrissian" },
|
||||
{ id: "Chewbacca", name: "Chewbacca" },
|
||||
{ id: "R2-D2", name: "R2-D2" },
|
||||
{ id: "C-3PO", name: "C-3PO" },
|
||||
{ id: "Boba Fett", name: "Boba Fett" },
|
||||
];
|
||||
|
||||
const inputValue = ref("");
|
||||
@@ -139,9 +139,7 @@ onBeforeUnmount(() => {
|
||||
<ListBoxItemIndicator />
|
||||
</ListBoxItem>
|
||||
<template #empty>
|
||||
<EmptyState class="p-1">
|
||||
{{ loading ? "正在加载…" : "没有找到角色" }}
|
||||
</EmptyState>
|
||||
<EmptyState />
|
||||
</template>
|
||||
</ListBox>
|
||||
<div v-if="hasMore" class="flex items-center justify-center gap-2 py-2">
|
||||
|
||||
Reference in New Issue
Block a user