antd中Instance created by `useForm` is not connect to any Form element. Forget to pass `form` prop?报错
antd中Instance created by useForm is not connect to any Form element. Forget to pass form prop?报错解决办法1、在Modal中添加 getContainer={false}2、在Form中添加 form={form}3、antd升级之后的Form用法如下: const [form] = Form.useForm() const { validateFields } = formvalidateFi
原创
2020-07-01 16:02:59 ·
2063 阅读 ·
0 评论