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

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

Open mboss76 opened this issue 1 year ago • 3 comments

🐛 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

© 版本信息

  • ProComponents 版本: 2.6.52
  • ProTable 版本:3.15.1

mboss76 avatar Mar 22 '24 09:03 mboss76

直接写在外层就行: image

zhuba-Ahhh avatar Apr 08 '24 09:04 zhuba-Ahhh

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

xliez avatar Apr 08 '24 11:04 xliez

有人解决吗?

humordancer avatar May 31 '24 03:05 humordancer