Skip to content

Commit

Permalink
docs(core): update form-path doc path
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Dec 24, 2021
1 parent 4c36ed2 commit 7f901de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/docs/guide/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The field is created mainly through the createField/createArrayField/createObjec

The query method is mainly used to query the field. The query method can pass in the path of the field or regular expression to match the field.

Because the detailed rules of the field path are still more complicated, they will be explained in detail in the following [Path System](/guide/path) article.
Because the detailed rules of the field path are still more complicated, they will be explained in detail in the following [Path System](/api/entry/form-path) article.

Then calling the query method will return a Query object. The Query object can have a forEach/map/reduce method that traverses all fields in batches, or a take method that takes only the first field that is queried, as well as direct reading of fields. The get method of properties, and the getIn method that can read field properties in depth, the difference between the two methods is that the former can have smart prompts, and the latter has no prompts, so it is recommended that users use the get method.

Expand Down
2 changes: 1 addition & 1 deletion packages/core/docs/guide/form.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

主要通过 query 方法来查询字段,query 方法可以传入字段的路径或者正则表达式来匹配字段。

因为字段路径的详细规则还是比较复杂的,在后面的[路径系统](/guide/path)篇中会详细讲解。
因为字段路径的详细规则还是比较复杂的,在后面的[路径系统](/api/entry/form-path)篇中会详细讲解。

然后调用 query 方法会返回一个 Query 对象,Query 对象中可以有批量遍历所有字段的 forEach/map/reduce 方法,也可以有只取查询到的第一个字段的 take 方法,同时还有直接读取字段属性的 get 方法,还有可以深层读取字段属性的 getIn 方法,两个方法的差别就是前者可以有智能提示,后者没有提示,所以推荐用户都用 get 方法。

Expand Down

0 comments on commit 7f901de

Please sign in to comment.