From d297a66f1c0ced0c56c1e1c76a3b991b1f631b8a Mon Sep 17 00:00:00 2001 From: wibetter <365533093@qq.com> Date: Sun, 17 Jul 2022 23:16:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3ts=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I70d74f7390ba5fd50373af5ab1aeb544666ae877 --- packages/amis-editor/src/renderer/event-control/index.tsx | 2 +- packages/amis-editor/src/validator.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/amis-editor/src/renderer/event-control/index.tsx b/packages/amis-editor/src/renderer/event-control/index.tsx index 5abbc7e90..919759496 100644 --- a/packages/amis-editor/src/renderer/event-control/index.tsx +++ b/packages/amis-editor/src/renderer/event-control/index.tsx @@ -47,7 +47,7 @@ interface EventControlProps extends FormControlProps { ) => void; addBroadcast?: (event: RendererPluginEvent) => void; removeBroadcast?: (eventName: string) => void; - getComponents: (action: RendererPluginAction) => ComponentInfo[]; // 当前页面组件树 + getComponents: (action: any) => ComponentInfo[]; // 当前页面组件树 getContextSchemas?: (id?: string, withoutSuper?: boolean) => DataSchema; // 获取上下文 actionConfigInitFormatter?: (actionConfig: ActionConfig) => ActionConfig; // 动作配置初始化时格式化 actionConfigSubmitFormatter?: (actionConfig: ActionConfig) => ActionConfig; // 动作配置提交时格式化 diff --git a/packages/amis-editor/src/validator.tsx b/packages/amis-editor/src/validator.tsx index 08767838c..0a15d974b 100644 --- a/packages/amis-editor/src/validator.tsx +++ b/packages/amis-editor/src/validator.tsx @@ -49,7 +49,7 @@ export interface Validator { /** * 快速编辑的表单 */ - schema?: SchemaObject[]; + schema?: any[]; /** * 输入类型,true则表示是默认