From 533d621950cc2812edad5e5d34f0809d7e03fea1 Mon Sep 17 00:00:00 2001 From: cnjs <1269075501@qq.com> Date: Tue, 13 Aug 2024 20:47:49 +0800 Subject: [PATCH] docs(form): update link (#50401) --- components/form/index.en-US.md | 2 +- components/form/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md index 23b836f9c073..76974c7f4471 100644 --- a/components/form/index.en-US.md +++ b/components/form/index.en-US.md @@ -189,7 +189,7 @@ related issue: [#34500](https://github.com/ant-design/ant-design/issues/34500) ``` -You can ref [example](#form-demo-horizontal-login) to see detail. +You can ref [example](#form-demo-inline-login) to see detail. When `shouldUpdate` is a function, it will be called by form values update. Providing original values and current value to compare. This is very helpful for rendering additional fields based on values: diff --git a/components/form/index.zh-CN.md b/components/form/index.zh-CN.md index 1fe06787c93b..7c74f6eceaa8 100644 --- a/components/form/index.zh-CN.md +++ b/components/form/index.zh-CN.md @@ -190,7 +190,7 @@ Form 通过增量更新方式,只更新被修改的字段相关组件以达到 ``` -你可以参考[示例](#form-demo-horizontal-login)查看具体使用场景。 +你可以参考[示例](#form-demo-inline-login)查看具体使用场景。 当 `shouldUpdate` 为方法时,表单的每次数值更新都会调用该方法,提供原先的值与当前的值以供你比较是否需要更新。这对于是否根据值来渲染额外字段十分有帮助: