From 950a19305f4f9a365d5f9ea5967083e4f3ba8d7c Mon Sep 17 00:00:00 2001 From: quirkyshop Date: Wed, 11 Dec 2019 15:57:43 +0800 Subject: [PATCH] fix: types merge error --- packages/antd/src/types.ts | 4 +++- packages/next/src/types.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/antd/src/types.ts b/packages/antd/src/types.ts index a37bdaf7f74..28ab923dbcf 100644 --- a/packages/antd/src/types.ts +++ b/packages/antd/src/types.ts @@ -17,7 +17,9 @@ type ColSpanType = number | string export type IAntdSchemaFormProps = FormProps & IFormItemTopProps & PreviewTextConfigProps & - ISchemaFormProps + ISchemaFormProps | { + onSubmit?: ISchemaFormProps['onSubmit'] + } export type IAntdSchemaFieldProps = IMarkupSchemaFieldProps diff --git a/packages/next/src/types.ts b/packages/next/src/types.ts index 0a0866a88c2..ad38f373663 100644 --- a/packages/next/src/types.ts +++ b/packages/next/src/types.ts @@ -14,7 +14,9 @@ type ColSpanType = number | string export type INextSchemaFormProps = FormProps & IFormItemTopProps & PreviewTextConfigProps & - ISchemaFormProps + ISchemaFormProps | { + onSubmit?: ISchemaFormProps['onSubmit'] + } export type INextSchemaFieldProps = IMarkupSchemaFieldProps