feat: 导出部分基础插件

This commit is contained in:
hezhihang 2024-05-29 14:34:24 +08:00
parent 7e2c519bb1
commit 37b3c031ef
2 changed files with 12 additions and 2 deletions

View File

@ -34,6 +34,11 @@ import type {EditorNodeType, EditorNodeSnapshot} from './store/node';
import {ContainerWrapper} from './component/ContainerWrapper'; import {ContainerWrapper} from './component/ContainerWrapper';
import type {EditorStoreType} from './store/editor'; import type {EditorStoreType} from './store/editor';
import {AvailableRenderersPlugin} from './plugin/AvailableRenderers'; import {AvailableRenderersPlugin} from './plugin/AvailableRenderers';
import {BasicToolbarPlugin} from './plugin/BasicToolbar';
import {CodePlugin} from './plugin/Code';
import {ErrorRendererPlugin} from './plugin/ErrorRenderer';
import {OutlinePlugin} from './plugin/Outline';
import {UnknownRendererPlugin} from './plugin/Unknown';
import ShortcutKey from './component/base/ShortcutKey'; import ShortcutKey from './component/base/ShortcutKey';
import WidthDraggableContainer from './component/base/WidthDraggableContainer'; import WidthDraggableContainer from './component/base/WidthDraggableContainer';
import {SchemaFrom} from './component/base/SchemaForm'; import {SchemaFrom} from './component/base/SchemaForm';
@ -59,6 +64,11 @@ export {
EditorStoreType, EditorStoreType,
ContainerWrapper, ContainerWrapper,
AvailableRenderersPlugin, AvailableRenderersPlugin,
BasicToolbarPlugin,
CodePlugin,
ErrorRendererPlugin,
OutlinePlugin,
UnknownRendererPlugin,
ShortcutKey, ShortcutKey,
SchemaFrom, SchemaFrom,
WidthDraggableContainer WidthDraggableContainer

View File

@ -6,7 +6,7 @@ import {
RendererInfoResolveEventContext RendererInfoResolveEventContext
} from '../plugin'; } from '../plugin';
export class UnkownRendererPlugin extends BasePlugin { export class UnknownRendererPlugin extends BasePlugin {
static scene = ['layout']; static scene = ['layout'];
order = 9999; order = 9999;
@ -36,4 +36,4 @@ export class UnkownRendererPlugin extends BasePlugin {
} }
} }
registerEditorPlugin(UnkownRendererPlugin); registerEditorPlugin(UnknownRendererPlugin);