Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+ [jsfm] supported computed options #21

Merged
merged 2 commits into from
Apr 18, 2016
Merged

Conversation

Jinjiang
Copy link
Contributor

supported:

module.exports = {
  data: function () {return {x: 1, y: 2}}
  computed: {
    // single-way computed
    n: function () {return this.x + this.y},
    // two-way computed
    m: {
      get: function () {return this.x + this.y},
      set: function (v) {this.x = v}
    }
  }
}

@terrykingcha terrykingcha merged this pull request into jsfm Apr 18, 2016
@terrykingcha terrykingcha deleted the jsfm-feature-computed branch April 18, 2016 14:09
YorkShen pushed a commit that referenced this pull request Aug 25, 2016
* [android] refactor list appear & disappear
cxfeng1-zz pushed a commit that referenced this pull request Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants