Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transfer组件是否可以指定数据源主键 #1900

Closed
hhhyaaon opened this issue May 30, 2016 · 3 comments · Fixed by #1905
Closed

Transfer组件是否可以指定数据源主键 #1900

hhhyaaon opened this issue May 30, 2016 · 3 comments · Fixed by #1905
Assignees

Comments

@hhhyaaon
Copy link

场景

官网demo中数据源包含字段key,该字段会默认为组件Transfer item的主键
image
当数据源中不包含key字段,则Transfer无法被渲染出来
demo:http://codepen.io/hyaaon/pen/dXyjoG

Transfer组件是否可以如Table组件(rowKey),让用户自定义数据源主键?

版本

antd@1.2.1

RaoHai added a commit to RaoHai/ant-design that referenced this issue May 30, 2016
@RaoHai
Copy link
Contributor

RaoHai commented May 30, 2016

像这样? #1905

@ddcat1115
Copy link
Contributor

是的~

@lock
Copy link

lock bot commented May 5, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants