Warning: [antd: Form] antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.
时间:2020-09-04 17:01:36
收藏:0
阅读:857
今天做项目时把antd升级到 v4,然后在登录使用form表单的时候报错

查看了官网,才知道v4版本把Form.create给移除了
不能使用 (Form.create()())

直接在原item上操作

onsubmit 也要换成 onfinish

就可以了


要把form.create()去掉

原文:https://www.cnblogs.com/BySee1423/p/13614696.html
评论(0)