ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.02k stars 1.28k forks source link

🐛[BUG]Protable中form设置grid:true会报错items.flatMap is not a function #8253

Open mboss76 opened 1 month ago

mboss76 commented 1 month ago

🐛 bug 描述

想要自定义Protable搜索表单中搜索框位置,于是使用form的栅栏布局方式,设置 grid:true 后报错items.flatMap is not a function

📷 复现步骤

  1. 在ProTable form中使用添加grid:true,如下 <ProTable<TemplateItem> form={{ grid:true, }} />
  2. 打开前端就会报错items.flatMap is not a function

© 版本信息

zhuba-Ahhh commented 2 weeks ago

直接写在外层就行:

image
xliez commented 2 weeks ago

QueryFilter 会有这个问题,Protable 应该也是用的 QueryFilter 导致