joint preview

This commit is contained in:
kangwei 2020-04-22 17:38:33 +08:00
parent 9f66f458e8
commit 79827dc8b9
2 changed files with 13 additions and 10 deletions

View File

@ -3,7 +3,6 @@ import { createElement } from 'react';
import { Button } from '@alifd/next';
import Engine, { Panes } from '@ali/visualengine';
import getTrunkPane from '@ali/ve-trunk-pane';
import Preview from '@ali/lowcode-plugin-sample-preview';
import SourceEditor from '@ali/lowcode-plugin-source-editor';
import EventBindDialog from '@ali/lowcode-plugin-event-bind-dialog';
import loadUrls from './loader';
@ -52,15 +51,7 @@ skeleton.add({
},
});
skeleton.add({
area: 'topArea',
type: 'Dock',
name: 'preview',
props: {
align: 'right',
},
content: Preview,
});
skeleton.add({
area: 'topArea',
type: 'Dock',

View File

@ -7,6 +7,9 @@ import SettingsPane from '@ali/lowcode-plugin-settings-pane';
import DesignerPlugin from '@ali/lowcode-plugin-designer';
import { Skeleton } from './skeleton/skeleton';
import Preview from '@ali/lowcode-plugin-sample-preview';
registerSetters();
export const editor = new Editor();
@ -41,3 +44,12 @@ skeleton.add({
});
skeleton.add({
area: 'topArea',
type: 'Dock',
name: 'preview',
props: {
align: 'right',
},
content: Preview,
});