Skip to content

Commit

Permalink
docs(form): update link (ant-design#50401)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohhoney1 authored and linxianxi committed Aug 14, 2024
1 parent a54e4ce commit 251b31b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/form/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ related issue: [#34500](https://github.com/ant-design/ant-design/issues/34500)
</Form.Item>
```

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:

Expand Down
2 changes: 1 addition & 1 deletion components/form/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Form 通过增量更新方式,只更新被修改的字段相关组件以达到
</Form.Item>
```

你可以参考[示例](#form-demo-horizontal-login)查看具体使用场景。
你可以参考[示例](#form-demo-inline-login)查看具体使用场景。

`shouldUpdate` 为方法时,表单的每次数值更新都会调用该方法,提供原先的值与当前的值以供你比较是否需要更新。这对于是否根据值来渲染额外字段十分有帮助:

Expand Down

0 comments on commit 251b31b

Please sign in to comment.