-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
🐛[BUG] EditableProTable 只能增加一行 #1726
Comments
newRecordType 设置成 dataSource 就可以无限行添加了,但是会导致取消之后有一条新数据 |
您好,感谢回复。
然后
|
按照提示来,这个 record 是你新建行的数据,我的主键是id,但是你的不是id,你要用自己的demo来 |
你要更新版本到最新 |
更新版本到最新之后可以正常添加新行了,“没有 newRecordType 参数”的报错也消失了,以后我多注意更新版本,感谢您的帮助。 |
🐛 bug 描述
EditableProTable 只能增加一行。
在Proform和EditableProtable文档页面中可以增加多行,但把代码复制到我的本地工程中就只能增加一行。
📷 复现步骤
在Proform和EditableProTable中可以新增多行
将代码复制添加到我本地工程,就只能新增一行
请问这是出了什么问题呢?感觉像是在本地工程中组件的key被赋值成相同的值。
以及antd5.0中,EditableProTable Props recordCreatorProps 没有 newRecordType 这个参数,
会报React does not recognize the
newRecordType
prop on a DOM element.错误© 版本信息
🚑 其他信息
The text was updated successfully, but these errors were encountered: