mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:09:21 +00:00
fix: fix the problem of white screen in custom initialization method
This commit is contained in:
parent
c3ce042c83
commit
da1450ea1a
@ -170,6 +170,11 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.lc-workbench {
|
.lc-workbench {
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
background-color: #edeff3;
|
||||||
|
|
||||||
&.engine-main {
|
&.engine-main {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -156,6 +156,8 @@ let engineContainer: HTMLElement;
|
|||||||
export const version = VERSION_PLACEHOLDER;
|
export const version = VERSION_PLACEHOLDER;
|
||||||
engineConfig.set('ENGINE_VERSION', version);
|
engineConfig.set('ENGINE_VERSION', version);
|
||||||
|
|
||||||
|
registryInnerPlugin(designer, editor, plugins);
|
||||||
|
|
||||||
export async function init(
|
export async function init(
|
||||||
container?: HTMLElement,
|
container?: HTMLElement,
|
||||||
options?: IPublicTypeEngineOptions,
|
options?: IPublicTypeEngineOptions,
|
||||||
@ -179,8 +181,6 @@ export async function init(
|
|||||||
}
|
}
|
||||||
engineConfig.setEngineOptions(engineOptions as any);
|
engineConfig.setEngineOptions(engineOptions as any);
|
||||||
|
|
||||||
await registryInnerPlugin(designer, editor, plugins);
|
|
||||||
|
|
||||||
await plugins.init(pluginPreference as any);
|
await plugins.init(pluginPreference as any);
|
||||||
|
|
||||||
const { Workbench } = common.skeletonCabin;
|
const { Workbench } = common.skeletonCabin;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user