Svelte Select。一个适用于 Svelte 的选择组件
| Prop | Type | Default | Description |
|---|---|---|---|
| items | any[] |
[] |
可用于显示/筛选的项目数组 |
| value | any |
undefined |
选定的值。形状取决于 valueMode — 请参阅下面。 |
| valueMode | string |
item |
item:完整的项目对象。 id:通过 itemId 表示的原生 ID。 字符串/原生 items 保留原生 value,而不设置 id。 |
| itemId | string |
value |
覆盖默认标识符 |
| label | string |
label |
覆盖默认标签 |
| id | string |
null |
输入字段的 id 属性 |
| filterText | string |
'' |
通过 items 进行筛选的文本 |
| placeholder | string |
Please select |
占位符文本 |
| hideEmptyState | boolean |
false |
当没有项目时隐藏状态 |
Examples of every prop, callback, snippet and more ✨ REPL: Simple ✨ REPL: Show me everything
暂无开放 Issues,或尚未同步最近议题。