Skip to content

Commit

Permalink
fix(transformer): 任何情况下快应用 view 都解析为 div (#4410)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiyu8 authored and yuche committed Sep 5, 2019
1 parent 4ef9b3a commit 958a617
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/taro-transformer-wx/src/create-html-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ export const createHTMLElement = (options: Options, isFirstEmit = false) => {
}
}
}
if (name === 'view') {
options.name = 'div'
}
}

const isVoidTag = voidHtmlTags.has(options.name)
Expand Down

0 comments on commit 958a617

Please sign in to comment.