Closed helloliduofu closed 5 years ago
You can rewrite your render function and return { label, value } like antd transfer.
每行数据渲染函数,该函数的入参为 dataSource 中的项,返回值为 ReactElement。或者返回一个普通对象,其中 label 字段为 ReactElement,value 字段为 title
renderItem = () => {
...
return {
label,
value,
}
}
代码如下: