diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md index fcff39f98e..ce4d7d6918 100644 --- a/components/form/index.en-US.md +++ b/components/form/index.en-US.md @@ -194,10 +194,18 @@ You can modify the default verification information of Form.Item through `messag ```jsx
- + - user}> + user} + rules={[{ required: true, message: '${label} is required' }]} + > diff --git a/components/form/index.zh-CN.md b/components/form/index.zh-CN.md index 3950f457a5..3fc0c225c4 100644 --- a/components/form/index.zh-CN.md +++ b/components/form/index.zh-CN.md @@ -195,10 +195,18 @@ Form 通过增量更新方式,只更新被修改的字段相关组件以达到 ```jsx
- + - user}> + user} + rules={[{ required: true, message: '${label} is required' }]} + >