Skip to content

Commit

Permalink
fix: 修复list-view冗余问题
Browse files Browse the repository at this point in the history
  • Loading branch information
heiazu committed Jun 13, 2024
1 parent 11e5b80 commit 29f3531
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/taro-vite-runner/src/harmony/template/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,7 @@ function createChildItem (item: TaroElement, createLazyChildren?: (node: TaroEle
function createLazyChildren (node: TaroElement, layer = 0) {
LazyForEach(node, (item: TaroElement) => {
if (!item._nodeInfo || item._nodeInfo.layer === layer) {
if (node.tagName === 'LIST-VIEW') {
ListItem() {
createChildItem(item, createLazyChildren)
}
} else {
createChildItem(item, createLazyChildren)
}
createChildItem(item, createLazyChildren)
}
}, (item: TaroElement) => \`\${item._nid}-\${item._nativeUpdateTrigger}-\${item._nodeInfo?.layer || 0}\`)
}
Expand Down

0 comments on commit 29f3531

Please sign in to comment.