fix: fix the problem caused by props.children is [] by default in leaf

This commit is contained in:
liujuping 2023-06-08 10:50:01 +08:00 committed by JackLian
parent b5070a2721
commit 3df03b6f80

View File

@ -538,7 +538,7 @@ export function leafWrapper(Comp: types.IBaseRenderComponent, {
if (this.props.children && this.props.children.length) {
return this.props.children;
}
return [];
return this.props.children;
}
get leaf(): INode | undefined {