Skip to content

Commit d5c3ca1

Browse files
committed
fix: Workbench should receive the original skeleton other than shell skeleton
1 parent f0b79a0 commit d5c3ca1

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

packages/engine/src/engine-core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const plugins = new LowCodePluginManager(editor).toProxy();
4848
editor.set('plugins' as any, plugins);
4949

5050
const { project: innerProject } = designer;
51-
const skeletonCabin = getSkeletonCabin();
51+
const skeletonCabin = getSkeletonCabin(innerSkeleton);
5252
const { Workbench } = skeletonCabin;
5353

5454
const hotkey = new Hotkey();

packages/engine/src/modules/skeleton-cabin.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import {
2+
Skeleton as InnerSkeleton,
3+
createSettingFieldView,
4+
PopupContext,
5+
PopupPipe,
6+
Workbench as InnerWorkbench,
7+
} from '@alilc/lowcode-editor-skeleton';
8+
9+
export default function getSkeletonCabin(skeleton: InnerSkeleton) {
10+
return {
11+
createSettingFieldView,
12+
PopupContext,
13+
PopupPipe,
14+
Workbench: (props: any) => <InnerWorkbench {...props} skeleton={skeleton} />, // hijack skeleton
15+
};
16+
}

0 commit comments

Comments
 (0)