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

2.2 KiB

Transfer

Left, right, left, right... As a boring guy, I can play it all day.

Demos

basic
size
filterable

Props

Name Type Default Description
disabled boolean true
filterable boolean false
filter (pattern: string, option: TransferOption, from: 'source' | 'target') => boolean A basic label string match function
options Array<TransferOption> []
size 'small' | 'medium' | 'large' 'medium'
source-filter-placeholder string undefined
source-title string 'Source'
target-filter-placeholder string undefined
target-title string 'Target'
theme 'light' | 'dark' | null | string null
value Array<string | number> null
on-update:value (value: Array<string | number>) => any undefined

TransferOption Type

Property Type Description
label string
value string | number value of an option, should be unique in options
disabled boolean

Events

Name Parameters Description
change (Array<string | number>)