pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

🧐[问题] EditableProTable 和 ProForm 联动

Open Yizhizhenhties opened this issue 1 year ago • 1 comments

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🧐 问题描述

💻 示例代码

我自己写了一个文件上传的组件,通过EditableProTable提供的renderFormItem绑定,我发现如果在EditableProTable外面套一个ProForm,编辑/保存的时候我的信息会丢失?我的字段变成一个空object,如果没有ProForm就是正常的,这是Bug吗?

🚑 其他信息

保存前 image 保存后,信息丢失了(有跟ProForm绑定) image

我用官方示例codesandbox修改了一下,能够复现这种情况: https://codesandbox.io/p/sandbox/zi-ding-yi-ke-bian-ji-biao-ge-forked-2fqkkx

Yizhizhenhties avatar Apr 12 '24 07:04 Yizhizhenhties

应该和你没设置value有关吧,renderFormItem需要一个合法的表单控件

hans000 avatar Apr 23 '24 14:04 hans000