mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
2.0 KiB
2.0 KiB
穿梭框 Transfer
左、右、左、右...像我这么无聊的人能玩一整天。
演示
basic
size
filterable
Props
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
disabled | boolean |
true |
|
filterable | boolean |
false |
|
filter | (pattern: string, option: TransferOption, from: 'source' | 'target') => boolean |
一个简单的标签字符串匹配函数 | |
options | Array<TransferOption> |
[] |
|
size | 'small' | 'medium' | 'large' |
'medium' |
|
source-filter-placeholder | string |
undefined |
|
source-title | string |
'源项' |
|
target-filter-placeholder | string |
undefined |
|
target-title | string |
'目标项' |
|
theme | 'light' | 'dark' | null | string |
null |
|
value | Array<string | number> |
null |
|
on-update:value | (value: Array<string | number>) => any |
undefined |
TransferOption Type
属性 | 类型 | 说明 |
---|---|---|
label | string |
|
value | string | number |
选项的 value,需要唯一 |
disabled | boolean |