🐛 bug 描述
使用 ProFormItem 自定义表单组件后控制台出现
Warning: React does not recognize the fieldProps prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase fieldprops instead. If you accidentally passed it from a parent component, remove it from the DOM element.
💻 复现代码
<ProFormItem label='email' name="email">
<span>xxx</span>
</ProFormItem>
© 版本信息
- ProComponents [ 3.1.3-0 ]
- antd [ 6.3.6 ]
- react [ 18.3.1 ]
🚑 其他信息
ProFormFields 表单项中的部分组件也会出现这个问题,例如:
<ProFormCheckbox name="xxx">xxx</ProFormCheckbox>
此bug不影响功能使用,仅会在控制台报错
🐛 bug 描述
使用 ProFormItem 自定义表单组件后控制台出现
Warning: React does not recognize the
fieldPropsprop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercasefieldpropsinstead. If you accidentally passed it from a parent component, remove it from the DOM element.💻 复现代码
© 版本信息
🚑 其他信息
ProFormFields 表单项中的部分组件也会出现这个问题,例如:
此bug不影响功能使用,仅会在控制台报错