Skip to content

Commit

Permalink
docs(reactive): add assignment statement (#3210)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangrenyang authored Jun 21, 2022
1 parent 2150549 commit 297532f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/reactive/docs/api/model.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ const obs = model({
return this.aa + this.bb
},
update(aa, bb) {
this.cc
this.aa=aa
this.bb=bb
},
})

Expand Down
3 changes: 2 additions & 1 deletion packages/reactive/docs/api/model.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ const obs = model({
return this.aa + this.bb
},
update(aa, bb) {
this.cc
this.aa=aa
this.bb=bb
},
})

Expand Down

0 comments on commit 297532f

Please sign in to comment.