fix(computed): support arrow function usage for computed option

fix #733
This commit is contained in:
Evan You
2020-02-17 23:22:25 -05:00
parent 9571ede84b
commit 2fb7a63943
3 changed files with 4 additions and 6 deletions

View File

@@ -52,9 +52,7 @@ describe('api: options', () => {
bar(): number {
return this.foo + 1
},
baz(): number {
return this.bar + 1
}
baz: (vm): number => vm.bar + 1
},
render() {
return h(