Skip to content

Commit

Permalink
fix(taro-weapp): 微信小程序收集自定义组件 props 过滤时过滤掉 render 开头的组件
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj authored and luckyadam committed Apr 15, 2019
1 parent 5fdc5fa commit 55b7031
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/taro-transformer-wx/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,7 @@ export class RenderParser {
&& name.name !== 'wx:for'
&& name.name !== 'wx:for-item'
&& name.name !== 'wx:for-index'
&& name.name.indexOf('render') !== 0
&& !t.isJSXElement(value)
) {
const v: t.StringLiteral | t.Expression | t.BooleanLiteral = value === null
Expand Down

0 comments on commit 55b7031

Please sign in to comment.