Skip to content

Transfer 穿梭框 ​

在两栏之间转移已选项,支持搜索过滤。

基础用法 ​

待选
已选

API ​

Props ​

属性说明类型默认值
modelValue / v-model右侧已选 key 列表(string | number)[][]
data数据源TransferItem[][]
titles左右标题[string, string]['列表 1', '列表 2']
filterable是否可搜索booleanfalse
disabled是否禁用booleanfalse

Events ​

事件说明参数
update:modelValue选中变化(value)
change穿梭后触发(value, direction, movedKeys)

TransferItem ​

字段说明类型
key唯一键string | number
label展示文案string
disabled禁用该项boolean