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