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
+50
View File
@@ -0,0 +1,50 @@
<script setup lang="ts">
import {
Select,
SelectTrigger,
SelectValue,
SelectIndicator,
SelectPopover,
ListBox,
ListBoxItem,
ListBoxItemIndicator,
Label,
} from "@heroui-vue/components";
</script>
<template>
<Select class="w-[256px]" placeholder="请选择">
<Label>州</Label>
<SelectTrigger>
<SelectValue />
<SelectIndicator />
</SelectTrigger>
<SelectPopover>
<ListBox>
<ListBoxItem id="florida" text-value="佛罗里达">
佛罗里达
<ListBoxItemIndicator />
</ListBoxItem>
<ListBoxItem id="delaware" text-value="特拉华">
特拉华
<ListBoxItemIndicator />
</ListBoxItem>
<ListBoxItem id="california" text-value="加利福尼亚">
加利福尼亚
<ListBoxItemIndicator />
</ListBoxItem>
<ListBoxItem id="texas" text-value="德克萨斯">
德克萨斯
<ListBoxItemIndicator />
</ListBoxItem>
<ListBoxItem id="new-york" text-value="纽约">
纽约
<ListBoxItemIndicator />
</ListBoxItem>
<ListBoxItem id="washington" text-value="华盛顿">
华盛顿
<ListBoxItemIndicator />
</ListBoxItem>
</ListBox>
</SelectPopover>
</Select>
</template>