fix(@vant/use): missing subTree when flattening vnodes (#10235)

This commit is contained in:
neverland
2022-01-25 10:59:04 +08:00
committed by GitHub
parent b338aef41f
commit 760fcbb424
2 changed files with 12 additions and 11 deletions

View File

@@ -20,6 +20,7 @@ export function flattenVNodes(children: VNodeNormalizedChildren) {
result.push(child);
if (child.component?.subTree) {
result.push(child.component.subTree);
traverse(child.component.subTree.children);
}