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 林熠
parent 7eed0966e9
commit 723eb3d4d7

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 {