Zheng Yang
Zheng Yang
### 🐛 bug 描述 ```typescript { (_, __, action) => { } } ``` 比如按照这种方式嵌套,action.getCurrentRowData()获取结果是正确的,但是action.setCurrentRowData()并没有把数据设置到正确的NamePath上 https://github.com/ant-design/pro-components/commit/47fe90c1d90ef6b8e28bdbdda86a915454cb1d64 跟这个fix是同样的问题,filter(Boolean)会把NamePath里的数值0过滤掉,其他的地方的filter(Boolean)都被替换了,只有setCurrentRowData里没有改 ### 📷 复现步骤 如上 ### 🏞 期望结果 ### 💻 复现代码 ### © 版本信息...
fix(form): incorrect name path of setCurrentRowData when using FormList with two-dimensional array
当使用FormList生成二维数组时,setCurrentRowData里的name path会把数字0过滤掉
### 🔩 所属模块或组件 SchemaForm ### 🥰 需求描述 当valueType是formList时,columns支持函数格式,以支持[ProFormList RenderProps 模式](https://procomponents.ant.design/components/group#proformlist-renderprops-%E6%A8%A1%E5%BC%8F) ### ⛰ 功能需求适用场景 List中某个column的数据发生变化时,希望通过action.setCurrentRowData修改本行数据 ### 🧐 解决方案 https://github.com/ant-design/pro-components/blob/47fe90c1d90ef6b8e28bdbdda86a915454cb1d64/packages/form/src/components/SchemaForm/valueType/formList.tsx ```typescript export const formList: ProSchemaRenderValueTypeFunction = (item, { genItems }) => {...