From ed221e78870a7b3b22453c1a9871a65c64fe16b0 Mon Sep 17 00:00:00 2001 From: Allen Date: Sat, 6 May 2023 17:39:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20issues-6683:=20jssdk=20helper=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BC=98=E5=85=88=E7=BA=A7=E9=97=AE=E9=A2=98=20(#6802?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: issues-6683: jssdk helper样式优先级问题 * fix: typecheck 编译 --- examples/sdk-placeholder.html | 10 ++++------ packages/amis-editor-core/src/manager.ts | 7 +++++-- 2 files changed, 9 insertions(+), 8 deletions(-) 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];