mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-10 18:03:01 +00:00
feat(workspace): fix onWindowRendererReady api
This commit is contained in:
parent
2c2241ef73
commit
bfdc7a277b
@ -49,7 +49,7 @@ export class Workbench extends Component<{
|
||||
<SkeletonContext.Provider value={skeleton}>
|
||||
<TopArea area={skeleton.topArea} itemClassName={topAreaItemClassName} />
|
||||
<div className="lc-workspace-workbench-body">
|
||||
<LeftArea className="lc-workspace-left-area" area={skeleton.leftArea} />
|
||||
<LeftArea className="lc-workspace-left-area lc-left-area" area={skeleton.leftArea} />
|
||||
<LeftFloatPane area={skeleton.leftFloatArea} />
|
||||
<LeftFixedPane area={skeleton.leftFixedArea} />
|
||||
<div className="lc-workspace-workbench-center">
|
||||
|
||||
@ -126,9 +126,10 @@ export class EditorWindow implements IEditorWindow {
|
||||
async init() {
|
||||
await this.initViewTypes();
|
||||
await this.execViewTypesInit();
|
||||
Promise.all(Array.from(this.editorViews.values()).map((d) => d.onSimulatorRendererReady)).then(() => {
|
||||
this.workspace.emitWindowRendererReady();
|
||||
});
|
||||
Promise.all(Array.from(this.editorViews.values()).map((d) => d.onSimulatorRendererReady()))
|
||||
.then(() => {
|
||||
this.workspace.emitWindowRendererReady();
|
||||
});
|
||||
this.url = await this.resource.url();
|
||||
this.setDefaultViewName();
|
||||
this.initReady = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user