mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 04:40:32 +00:00
fix: render children
This commit is contained in:
parent
dbdd9e485a
commit
487f257bef
@ -19,7 +19,6 @@
|
||||
"@ali/lowcode-editor-skeleton": "^0.8.24",
|
||||
"@ali/lowcode-plugin-designer": "^0.9.18",
|
||||
"@ali/lowcode-plugin-outline-pane": "^0.8.24",
|
||||
"@ali/ve-i18n-util": "^2.0.2",
|
||||
"@ali/ve-icons": "^4.1.9",
|
||||
"@ali/ve-less-variables": "2.0.3",
|
||||
"@ali/ve-popups": "^4.2.5",
|
||||
|
||||
@ -43,7 +43,7 @@ html {
|
||||
}
|
||||
|
||||
html.engine-blur #engine {
|
||||
-webkit-filter: blur(4px);
|
||||
filter: blur(4px);
|
||||
}
|
||||
|
||||
.engine-main {
|
||||
|
||||
@ -105,12 +105,13 @@ class Renderer extends Component<{ renderer: SimulatorRenderer }> {
|
||||
customCreateElement={(Component: any, props: any, children: any) => {
|
||||
const { __id, __desingMode, ...viewProps } = props;
|
||||
viewProps.componentId = __id;
|
||||
viewProps._leaf = host.document.getNode(__id);
|
||||
const leaf = host.document.getNode(__id);
|
||||
viewProps._leaf = leaf;
|
||||
|
||||
return createElement(
|
||||
getDeviceView(Component, device, designMode),
|
||||
viewProps,
|
||||
children == null ? [] : Array.isArray(children) ? children : [children],
|
||||
leaf?.isContainer() ? (children == null ? [] : Array.isArray(children) ? children : [children]) : null,
|
||||
);
|
||||
}}
|
||||
onCompGetRef={(schema: any, ref: ReactInstance | null) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user