From 2aa80491b184b3d217cdfae361a256354140eb15 Mon Sep 17 00:00:00 2001 From: GUAN MING <105915352+guan404ming@users.noreply.github.com> Date: Mon, 24 Apr 2023 10:16:19 +0800 Subject: [PATCH] docs: modify the doc of Form.Item messageVariables (#41959) --- components/form/index.en-US.md | 12 ++++++++++-- components/form/index.zh-CN.md | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) 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' }]} + >