naive-ui/demo/documentation/components/transfer/zhCN/index.demo-entry.md
2020-10-30 17:07:17 +08:00

2.0 KiB
Raw Blame History

穿梭框 Transfer

左、右、左、右...像我这么无聊的人能玩一整天。

演示

basic
large-data
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' | string undefined
value Array<string | number> null
on-update:value (value: Array<string | number>) => any undefined
virtual-scroll boolean false If use virtual scroll on transfer. If set to true it can handles large data (and turn transfer animation off)

TransferOption Type

属性 类型 说明
label string
value string | number 选项的 value需要唯一
disabled boolean