mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-31 08:08:17 +00:00
fix: Workbench should receive the original skeleton other than shell skeleton
This commit is contained in:
parent
f0b79a0209
commit
d5c3ca1068
@ -48,7 +48,7 @@ const plugins = new LowCodePluginManager(editor).toProxy();
|
|||||||
editor.set('plugins' as any, plugins);
|
editor.set('plugins' as any, plugins);
|
||||||
|
|
||||||
const { project: innerProject } = designer;
|
const { project: innerProject } = designer;
|
||||||
const skeletonCabin = getSkeletonCabin();
|
const skeletonCabin = getSkeletonCabin(innerSkeleton);
|
||||||
const { Workbench } = skeletonCabin;
|
const { Workbench } = skeletonCabin;
|
||||||
|
|
||||||
const hotkey = new Hotkey();
|
const hotkey = new Hotkey();
|
||||||
|
|||||||
@ -1,15 +0,0 @@
|
|||||||
import {
|
|
||||||
createSettingFieldView,
|
|
||||||
PopupContext,
|
|
||||||
PopupPipe,
|
|
||||||
Workbench,
|
|
||||||
} from '@alilc/lowcode-editor-skeleton';
|
|
||||||
|
|
||||||
export default function getSkeletonCabin() {
|
|
||||||
return {
|
|
||||||
createSettingFieldView,
|
|
||||||
PopupContext,
|
|
||||||
PopupPipe,
|
|
||||||
Workbench,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
16
packages/engine/src/modules/skeleton-cabin.tsx
Normal file
16
packages/engine/src/modules/skeleton-cabin.tsx
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import {
|
||||||
|
Skeleton as InnerSkeleton,
|
||||||
|
createSettingFieldView,
|
||||||
|
PopupContext,
|
||||||
|
PopupPipe,
|
||||||
|
Workbench as InnerWorkbench,
|
||||||
|
} from '@alilc/lowcode-editor-skeleton';
|
||||||
|
|
||||||
|
export default function getSkeletonCabin(skeleton: InnerSkeleton) {
|
||||||
|
return {
|
||||||
|
createSettingFieldView,
|
||||||
|
PopupContext,
|
||||||
|
PopupPipe,
|
||||||
|
Workbench: (props: any) => <InnerWorkbench {...props} skeleton={skeleton} />, // hijack skeleton
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user