docs: Update demo error message (#20521)

This commit is contained in:
二货机器人 2019-12-29 18:32:13 +08:00 committed by GitHub
parent 7998a3312e
commit 0189ba61bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,11 +41,19 @@ const Demo = () => {
onFinish={onFinish} onFinish={onFinish}
onFinishFailed={onFinishFailed} onFinishFailed={onFinishFailed}
> >
<Form.Item label="Username" name="username" rules={[{ required: true }]}> <Form.Item
label="Username"
name="username"
rules={[{ required: true, message: 'Please input your username!' }]}
>
<Input /> <Input />
</Form.Item> </Form.Item>
<Form.Item label="Password" name="password" rules={[{ required: true }]}> <Form.Item
label="Password"
name="password"
rules={[{ required: true, message: 'Please input your password!' }]}
>
<Input.Password /> <Input.Password />
</Form.Item> </Form.Item>