-
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 没有name属性,只能新增一行 #6279
Comments
以下的 Issues 可能会帮助到你 / The following issues may help you
|
本地版本和demo版本行为还不一致,本地是一年前的版本,然后demo是最新版,差异比较大 pro-components相关的更新,会涉及到antd的更新,而这一波连带更新,搞完之后就不知道会出现什么结果,比如记得有个ProFormList不同版本的行为字段会有比较大的差别,加上ProComponents的文档本身也不够详细,有些字段需要demo或者源码里面翻,这个有什么建议么~ |
搞个重现吧,尽量用最新版本的版本,过去的版本不一定能配合好 antd 版本 |
如果自定义按钮使用actionRef 怎么进行新增一行,继续新增呢 |
设计就是这样的,如果要自己控制最好用name |
recordCreatorProps={{
position: 'bottom',
newRecordType: 'dataSource',
record: () => ({ id: (Math.random() * 1000000).toFixed(0) }),
}} 没有配置name,name不好控制,我在 dnd-kit 中使用 |
🐛 bug 描述
Editable没有name属性时,报只能新增一行,增加name属性后ok
📷 复现步骤
https://codesandbox.io/s/shi-shi-bao-cun-de-bian-ji-biao-ge-forked-v9jxgd?file=/App.tsx:620-1731
demo版本:
本地版本(pro-table 2.56.9):
🏞 期望结果
有没有name属性,都能带入初始数据,并且能文档说明这个单行限制
💻 复现代码
© 版本信息
🚑 其他信息
The text was updated successfully, but these errors were encountered: