ant-design / pro-components

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

🐛[BUG] Warning: React does not recognize the `formItemProps` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `formitemprops` instead. If you accidentally passed it from a parent component, remove it from the DOM element. #1043

Closed leshalv closed 3 years ago

leshalv commented 3 years ago

Warning: React does not recognize the formItemProps prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase formitemprops instead. If you accidentally passed it from a parent component, remove it from the DOM element.

image

xdyz commented 3 years ago

image 我这样使用可以 我用fieldProps 不行

chenshuai2144 commented 3 years ago

try update to latest version

@ant-design/pro-table@2.11.4

sadianliaoer commented 3 years ago

https://codesandbox.io/s/pensive-goldwasser-u66bm?file=/App.tsx 这个demo 也有同样的错误! 官方api

chenshuai2144 commented 3 years ago

image

leshalv commented 3 years ago

image

image

选择查询条件会报错。

chenshuai2144 commented 3 years ago

没法,来个 repo把,可能是依赖更新了

leshalv commented 3 years ago

问题找到了,自定义搜索表单时renderFormItem 透传 {...rest} 中包含formItemProps导致的

sadianliaoer commented 3 years ago

问题找到了,自定义搜索表单时renderFormItem 透传 {...rest} 中包含formItemProps导致的

不传递{...rest} 也一样报错哦

chenshuai2144 commented 3 years ago

@ZhiGang-Fang 更新版本

jinjinwa commented 3 years ago

更新到了最新也一样报错。"@ant-design/pro-table": "^2.12.0"

chenshuai2144 commented 3 years ago

@jinjinwa "@ant-design/pro-table": "^2.12.1"

zhou0818 commented 3 years ago

@chenshuai2144 "@ant-design/pro-table": "^2.12.1" 还是有错

image

image

chenshuai2144 commented 3 years ago

showSearch 是 谁的api?

yinxiangyin commented 3 years ago

这个问题解决了吗?升级proTable版本至"@ant-design/pro-table": "^2.18.1",仍然有这个问题。 image

chenshuai2144 commented 3 years ago

image

yinxiangyin commented 3 years ago

升级proTable版本至v2.19.0,经验证已解决!

这个问题解决了吗?升级proTable版本至"@ant-design/pro-table": "^2.18.1",仍然有这个问题。 image

升级proTable版本至v2.19.0,经验证已解决!

zhou0818 commented 3 years ago

showSearch 是 谁的api?

升级到2.19.1还是这个问题,showSearch 是 select 的

chenshuai2144 commented 3 years ago

image

看看是不是这个yuan'y原因

zhou0818 commented 3 years ago

image

看看是不是这个yuan'y原因

设置了 valueType: 'select',就不报警告了。。之前只设置了valueEnum

kiana-god commented 2 years ago

我升级了ant 版本。antd": "4.16.13,依旧有这个问题,直到我升级了 pro-layout 的最新版本就没这个问题