From 49973c8df29264e0af6f17763d9dd7c29d666271 Mon Sep 17 00:00:00 2001 From: jeessy2 <454207171@qq.com> Date: Thu, 18 Jul 2019 12:29:23 +0800 Subject: [PATCH] Update FormItem typescript definition (#17703) --- components/form/FormItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/form/FormItem.tsx b/components/form/FormItem.tsx index 91e6214ae5..97d3a29fec 100644 --- a/components/form/FormItem.tsx +++ b/components/form/FormItem.tsx @@ -29,7 +29,7 @@ interface FormItemProps extends FormItemLabelProps, FormItemInputProps, RcFieldP required?: boolean; /** Auto passed by List render props. User should not use this. */ - fieldKey: number; + fieldKey?: number; } const FormItem: React.FC = (props: FormItemProps) => {