diff --git a/packages/taro-transformer-wx/src/render.ts b/packages/taro-transformer-wx/src/render.ts index e41e4ea42379..72684b5ea9ed 100644 --- a/packages/taro-transformer-wx/src/render.ts +++ b/packages/taro-transformer-wx/src/render.ts @@ -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) ) {