Transfer 穿梭框
Transfer 穿梭框组件用于实现数据选择
基本用法
展示树结构
自定义模板
属性
| 属性名 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| dataSource | Array<object> | [] | 数据源 |
| displayType | string | List | 显示类型 |
| enableSearch | boolean | true | 启用搜索 |
| identifyField | string | id | 标识字段 |
| textField | string | name | 显示文本字段 |
| textField | string | name | 显示文本字段 |
Events
| 事件名 | 参数 | 说明 |
|---|---|---|
| unSelectItem | Function(unSelectedData) | 取消选中行事件 |
| selectItem | Function(unSelectedData) | 选中行事件 |
| activeChange | Function(selectItemList) | 右侧列表变更行事件 |
| removeItem | Function(removedItem) | 右侧列删除行事件 |

