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

🐛[BUG] ProFormTreeSelect 配置 fieldNames 会导致编辑回显时formData会自动带上value和label属性

Open baiwumm opened this issue 3 years ago • 0 comments
trafficstars

🐛ProFormTreeSelect 配置 fieldNames 会导致编辑回显时formData会自动带上value和label属性

问题如标题所示,之前是没问题的,不知道是升级了版本还是咋地

📷 复现步骤

1、源数据是没有这两个字段的 image

2、 ProFormTreeSelect 配置字段 image

3、传递的formData 回显会带上 value 和 label 属性 image

4、去掉这个配置,回显则正常显示,由此可见是 ProFormTreeSelect 组件的问题

🏞 期望结果

去掉这两个字段

💻 复现代码

https://github.com/Cyan-Xmw/react-umi-xmw/blob/Cyan/Xmw_web/src/pages/System/Internationalization/components/FormTemplateItem.tsx

© 版本信息

  • ProComponents 版本:^2.3.19
  • umi 版本:^4.0.22
  • 浏览器环境:Google
  • 开发环境 : Window

🚑 其他信息

baiwumm avatar Oct 19 '22 02:10 baiwumm