Skip to content

Commit

Permalink
fix(react): fix doc link (#2584)
Browse files Browse the repository at this point in the history
  • Loading branch information
zb188 authored Dec 7, 2021
1 parent 4a083ba commit 4faa406
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react/docs/guide/concept.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ I talked about model binding, and protocol binding is the process of converting

![](https://img.alicdn.com/imgextra/i3/O1CN01jLCRxH1aa3V0x6nw4_!!6000000003345-55-tps-2200-1147.svg)

To sum up, in @formily/react, there are mainly two layers of binding relationships, Schema binding model, model binding component, the glue layer that realizes the binding is @formily/react, it should be noted that Schema binds the field model After that, the Schema is not perceptible in the field model. For example, if you want to modify the `enum`, you need to modify the `dataSource` attribute in the field model. In short, if you want to update the field model, refer to [Field](//core.formilyjs. org/models/field), you can refer to [Schema](/api/shared/schema) document if you want to understand the mapping relationship between Schema and field model
To sum up, in @formily/react, there are mainly two layers of binding relationships, Schema binding model, model binding component, the glue layer that realizes the binding is @formily/react, it should be noted that Schema binds the field model After that, the Schema is not perceptible in the field model. For example, if you want to modify the `enum`, you need to modify the `dataSource` attribute in the field model. In short, if you want to update the field model, refer to [Field](/api/models/field), you can refer to [Schema](/api/shared/schema) document if you want to understand the mapping relationship between Schema and field model

## Three development models

Expand Down
2 changes: 1 addition & 1 deletion packages/react/docs/guide/concept.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ formily 的协议驱动主要是基于标准 JSON Schema 来进行驱动渲染

![](https://img.alicdn.com/imgextra/i3/O1CN01jLCRxH1aa3V0x6nw4_!!6000000003345-55-tps-2200-1147.svg)

总结下来,在@formily/react 中,主要有 2 层绑定关系,Schema 绑定模型,模型绑定组件,实现绑定的胶水层就是@formily/react,需要注意的是,Schema 绑定字段模型之后,字段模型中是感知不到 Schema 的,比如要修改`enum`,就是修改字段模型中的`dataSource`属性了,总之,想要更新字段模型,参考[Field](//core.formilyjs.org/models/field),想要理解 Schema 与字段模型的映射关系可以参考[Schema](/api/shared/schema)文档
总结下来,在@formily/react 中,主要有 2 层绑定关系,Schema 绑定模型,模型绑定组件,实现绑定的胶水层就是@formily/react,需要注意的是,Schema 绑定字段模型之后,字段模型中是感知不到 Schema 的,比如要修改`enum`,就是修改字段模型中的`dataSource`属性了,总之,想要更新字段模型,参考[Field](/api/models/field),想要理解 Schema 与字段模型的映射关系可以参考[Schema](/api/shared/schema)文档

## 三种开发模式

Expand Down

0 comments on commit 4faa406

Please sign in to comment.