Skip to content

Commit

Permalink
docs: add observers api
Browse files Browse the repository at this point in the history
  • Loading branch information
imyelo committed May 17, 2019
1 parent 0c41bce commit 66d2744
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,15 @@
与 [MINA Component 构造器参数](https://mp.weixin.qq.com/debug/wxadoc/dev/framework/custom-component/component.html) 中的 ``methods`` 一致。
##### observers
- 类型: ``{ [key: String]: Function }``
- 默认值: ``{}``
- 说明:
[数据监听器](https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/observer.html)。
与 [MINA Component 构造器参数](https://mp.weixin.qq.com/debug/wxadoc/dev/framework/custom-component/component.html) 中的 ``observers`` 一致。
##### behaviors
- 类型: ``Array <Behavior>``
- 默认值: ``{}``
Expand Down

0 comments on commit 66d2744

Please sign in to comment.