Skip to content

Commit

Permalink
fix(taro-transformer-wx): props 改造,优化组件属性过滤判断
Browse files Browse the repository at this point in the history
使用 Apdater 帮助判断
  • Loading branch information
Chen-jj authored and luckyadam committed Apr 15, 2019
1 parent bf1da1e commit 43c3dac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/taro-transformer-wx/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -909,9 +909,9 @@ export class RenderParser {
if (t.isJSXIdentifier(name)
&& name.name !== 'key'
&& name.name !== 'id'
&& name.name !== 'wx:for'
&& name.name !== 'wx:for-item'
&& name.name !== 'wx:for-index'
&& name.name !== Adapter.for
&& name.name !== Adapter.forItem
&& name.name !== Adapter.forIndex
&& name.name.indexOf('render') !== 0
&& !t.isJSXElement(value)
) {
Expand Down

0 comments on commit 43c3dac

Please sign in to comment.