mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-13 12:13:10 +00:00
fix: fix issues with build-components
This commit is contained in:
parent
762189cc56
commit
a4c93c43b9
@ -36,7 +36,7 @@ export function getSubComponent(library: any, paths: string[]) {
|
|||||||
const key = paths[i]!;
|
const key = paths[i]!;
|
||||||
let ex: any;
|
let ex: any;
|
||||||
try {
|
try {
|
||||||
component = library[key];
|
component = library[key] || component;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
ex = e;
|
ex = e;
|
||||||
component = null;
|
component = null;
|
||||||
@ -51,9 +51,6 @@ export function getSubComponent(library: any, paths: string[]) {
|
|||||||
}
|
}
|
||||||
library = component;
|
library = component;
|
||||||
i++;
|
i++;
|
||||||
if (isReactComponent(component)) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return component;
|
return component;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user