Skip to content

The a-transfer component sets the row-key attribute but reports the dataSource error #4503

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

Closed
1 task
SHUAIBEST opened this issue Aug 12, 2021 · 5 comments
Closed
1 task
Labels
1.x version 1.x outdated

Comments

@SHUAIBEST
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.7.7

Environment

开发环境

Reproduction link

Steps to reproduce

在组件中因dataSource没key属性,然后就加了 :row-key="record => record.id",设置rowKey属性后报错

What is expected?

不报错

What is actually happening?

报如下错误:Invalid prop: custom validator check failed for prop "dataSource".
如下警告:shape - at least one of required properties "key", "title" is not present;
shape - custom validation failed;
arrayOf - value must be an array of "Object"

@github-actions github-actions bot changed the title a-transfer组件设置了row-key属性但是报了dataSource的错误 The a-transfer component sets the row-key attribute but reports the dataSource error Aug 12, 2021
@zkwolf zkwolf added the 🤔 Need Reproduce We cannot reproduce your problem label Aug 12, 2021
@github-actions
Copy link

Hello @SHUAIBEST. Please provide a online reproduction by forking this link for vue2link for vue3 or a minimal GitHub repository. Make sure to choose the correct version.

你好 @SHUAIBEST, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 for vue2此处 for vue3 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。

@zkwolf zkwolf added 1.x version 1.x and removed 🤔 Need Reproduce We cannot reproduce your problem labels Aug 12, 2021
@Hccake
Copy link

Hccake commented Aug 18, 2021

同问,transfer 自定义 row-key 和 render 有作用,就是控制台一直警告,难受呀.

codesandbox 链接

@tangjinzhou
Copy link
Member

ref #4574

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1.x version 1.x outdated
Projects
None yet
Development

No branches or pull requests

4 participants