Skip to content

Commit

Permalink
fix(transformer): render props 嵌套解析失败,close #1306
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed Nov 30, 2018
1 parent 3a6c822 commit a2ef2bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/taro-transformer-wx/src/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ class Transformer {
if (!jsx) return
const jsxName = jsx.node.name
if (!t.isJSXIdentifier(jsxName)) return
if (expression.isJSXElement()) return
if (DEFAULT_Component_SET.has(jsxName.name) || expression.isIdentifier() || expression.isMemberExpression() || expression.isLiteral() || expression.isLogicalExpression() || expression.isConditionalExpression() || key.name.startsWith('on') || expression.isCallExpression()) return
generateAnonymousState(scope, expression, self.jsxReferencedIdentifiers)
},
Expand Down

0 comments on commit a2ef2bb

Please sign in to comment.