From 37b3c031ef21d5204c7efe4a3e973c14e4680a24 Mon Sep 17 00:00:00 2001 From: hezhihang Date: Wed, 29 May 2024 14:34:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AF=BC=E5=87=BA=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=9F=BA=E7=A1=80=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-editor-core/src/index.ts | 10 ++++++++++ packages/amis-editor-core/src/plugin/Unknown.tsx | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/amis-editor-core/src/index.ts b/packages/amis-editor-core/src/index.ts index dc870d4ab..8eed62013 100644 --- a/packages/amis-editor-core/src/index.ts +++ b/packages/amis-editor-core/src/index.ts @@ -34,6 +34,11 @@ import type {EditorNodeType, EditorNodeSnapshot} from './store/node'; import {ContainerWrapper} from './component/ContainerWrapper'; import type {EditorStoreType} from './store/editor'; 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 WidthDraggableContainer from './component/base/WidthDraggableContainer'; import {SchemaFrom} from './component/base/SchemaForm'; @@ -59,6 +64,11 @@ export { EditorStoreType, ContainerWrapper, AvailableRenderersPlugin, + BasicToolbarPlugin, + CodePlugin, + ErrorRendererPlugin, + OutlinePlugin, + UnknownRendererPlugin, ShortcutKey, SchemaFrom, WidthDraggableContainer diff --git a/packages/amis-editor-core/src/plugin/Unknown.tsx b/packages/amis-editor-core/src/plugin/Unknown.tsx index eab79c214..3048b258d 100644 --- a/packages/amis-editor-core/src/plugin/Unknown.tsx +++ b/packages/amis-editor-core/src/plugin/Unknown.tsx @@ -6,7 +6,7 @@ import { RendererInfoResolveEventContext } from '../plugin'; -export class UnkownRendererPlugin extends BasePlugin { +export class UnknownRendererPlugin extends BasePlugin { static scene = ['layout']; order = 9999; @@ -36,4 +36,4 @@ export class UnkownRendererPlugin extends BasePlugin { } } -registerEditorPlugin(UnkownRendererPlugin); +registerEditorPlugin(UnknownRendererPlugin);