You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design/components/transfer/index.md

31 lines
962 B
Markdown

9 years ago
# Transfer
- category: Components
- chinese: 穿梭框
- type: 表单
- cols: 1
9 years ago
---
双栏选择框
## 何时使用
## API
9 years ago
### Transfer
9 years ago
| 参数 | 说明 | 类型 | 默认值 |
|-----------|------------------------------------------|------------|--------|
| dataSource | 数据源 | Array | [] |
| render | 渲染每行数据 | Function(record) | false |
| targetKeys | 显示在右侧框的数据 | Array | [] |
| onChange | 变化时回调函数 | Function(e:Event) | |
9 years ago
| boxWidth | 单个穿梭框的宽度 | Number | 160 |
| titles | 标题集合,顺序从左至右 | Array | ['源列表', '目的列表'] |
| operations | 操作文案集合,顺序从上至下 | Array | [] |
| showSearch | 是否显示搜索框 | Boolean | false |
| searchPlaceholder | 搜索框的默认值 | String | 请输入搜索的内容 |
| footer | 底部渲染函数 | Function(e:Event) | 请输入搜索的内容 |