| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| classList | 自定义class | Object | - |
| class | 自定义class | string | - |
| style | 自定义样式 | Object | |
| data | 数据 | TeleportBoxItem[] | |
| value | 值,可控属性 | Signal | |
| disabled | 禁用 | boolean | |
| defaultValue | 默认值 | any[] | |
| virtual | 是否使用虚拟列表 | boolean | |
| renderSourceItem | 源数据列表项渲染函数 | (item: TeleportBoxItem, onChange: (checked: boolean) => void) => JSX.Element | |
| renderSelectedItem | 已选择数据列表项渲染函数 | (item: TeleportBoxItem, onRemove: () => void) => JSX.Element | |
| filter | 自定义查询过滤函数 | (item: TeleportBoxItem, keyword: string) => boolean | |
| onChange | 数据选择改变回调 | (value: any[]) => void |
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| value | 值 | any | |
| label | 文案 | any | |
| disabled | 禁用 | boolean | |
| checked | 是否选择 | boolean | |
| children | 子选项 | TeleportBoxItem[] |