naive-ui/demo/documentation/components/transfer/zhCN/index.demo-entry.md
2020-10-22 13:42:05 +08:00

2.0 KiB
Raw Blame History

穿梭框 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