mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-20 07:14:23 +00:00
fix: renderer not rendering correct components when loading components with loadAsyncLibrary api
This commit is contained in:
parent
8284d761f3
commit
c1a5ed824c
@ -332,7 +332,7 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
|
||||
...this._components,
|
||||
};
|
||||
}
|
||||
private _components: any = {};
|
||||
@obx.ref private _components: any = {};
|
||||
|
||||
get components(): object {
|
||||
// 根据 device 选择不同组件,进行响应式
|
||||
|
||||
@ -421,7 +421,14 @@ export default function baseRendererFactory() {
|
||||
|
||||
if (!Comp) {
|
||||
console.error(`${schema.componentName} is not found! component list is:`, components || this.props.__container?.components);
|
||||
Comp = engine.getNotFoundComponent();
|
||||
return engine.createElement(
|
||||
engine.getNotFoundComponent(),
|
||||
{
|
||||
componentName: schema.componentName,
|
||||
componentId: schema.id,
|
||||
},
|
||||
this.__getSchemaChildrenVirtualDom(schema, scope, Comp),
|
||||
);
|
||||
}
|
||||
|
||||
if (schema.hidden && (engine?.props?.designMode && engine?.props?.designMode !== 'design')) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user