From 7bbb86249b3915b617cec7019f532c9a983dabc9 Mon Sep 17 00:00:00 2001 From: zty Date: Thu, 16 Mar 2023 13:04:49 +0800 Subject: [PATCH] fix: set type of FormActionType.setFieldsValue same as type of setFieldsValue in useFormEvents (#2630) --- src/components/Form/src/types/form.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Form/src/types/form.ts b/src/components/Form/src/types/form.ts index 7bb5ce9a..8425e68d 100644 --- a/src/components/Form/src/types/form.ts +++ b/src/components/Form/src/types/form.ts @@ -26,7 +26,7 @@ export interface ButtonProps extends AntdButtonProps { export interface FormActionType { submit: () => Promise; - setFieldsValue: (values: T) => Promise; + setFieldsValue: (values: Recordable) => Promise; resetFields: () => Promise; getFieldsValue: () => Recordable; clearValidate: (name?: string | string[]) => Promise;