Skip to content

Commit

Permalink
fix(transformer): 通过 props 传递生成的匿名函数需要直接 return
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche authored and luckyadam committed Apr 15, 2019
1 parent 011dd77 commit 60122df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-transformer-wx/src/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ class Transformer {
))
])) :
t.classMethod('method', t.identifier(funcName), [], t.blockStatement([
t.expressionStatement(t.callExpression(
t.returnStatement(t.callExpression(
t.memberExpression(
t.memberExpression(
t.memberExpression(t.thisExpression(), t.identifier('props')),
Expand Down

0 comments on commit 60122df

Please sign in to comment.