标签:UNC hid closed cli not src ons put creat
Ant Design 4.0 对Form进行了修改,已经不使用 Form.create,也不需要使用了,它会自动验证,移除了原来的onSubmit,改用onFinish。
demo:
<Form horizontal="true" onFinish={this.onFinish}> <Form.Item name="username" rules={[{ required: true }]}> <Input /> </Form.Item> <Form.Item> <Button type="primary" htmlType="submit"> Submit </Button> </Form.Item> </Form>
链接:https://www.jianshu.com/p/336b4f135a90
_form.default.create(...) is not a function
标签:UNC hid closed cli not src ons put creat
原文地址:https://www.cnblogs.com/1zhangwenjing/p/13628980.html