diff --git a/examples/sdk-placeholder.html b/examples/sdk-placeholder.html index 8a193f925..19e583a03 100644 --- a/examples/sdk-placeholder.html +++ b/examples/sdk-placeholder.html @@ -1,18 +1,16 @@ + - - + + @@ -31,4 +29,4 @@ })(window); - + \ No newline at end of file diff --git a/packages/amis-editor-core/src/manager.ts b/packages/amis-editor-core/src/manager.ts index d2219d4fc..11dc04a7e 100644 --- a/packages/amis-editor-core/src/manager.ts +++ b/packages/amis-editor-core/src/manager.ts @@ -335,10 +335,13 @@ export class EditorManager { | PluginClass | [PluginClass, Record | (() => Record)] > - ) { + ): ( + | PluginClass + | [PluginClass, Record | (() => Record)] + )[] { return ( plugins?.map(klass => { - let options: any; + let options; if (Array.isArray(klass)) { options = klass[1]; klass = klass[0];