fix: 支持children属性,对齐react-simulator

This commit is contained in:
wuyue.xht 2021-04-20 17:26:52 +08:00
parent b75168347b
commit 8d05f30177

View File

@ -231,7 +231,7 @@ class Renderer extends Component<{
return createElement(
getDeviceView(Component, device, designMode),
viewProps,
leaf?.isContainer() ? (children == null ? [] : Array.isArray(children) ? children : [children]) : null,
leaf?.isContainer() ? (children == null ? [] : Array.isArray(children) ? children : [children]) : children,
);
}}
/>