Documents / @faasjs/ant-design / FormProps
Interface: FormProps<Values, ExtendItemProps>
Extends
Omit
<AntdFormProps
<Values
>,"onFinish"
|"children"
|"initialValues"
>
Type Parameters
• Values extends Record
<string
, any
> = any
• ExtendItemProps extends ExtendFormItemProps
= ExtendFormItemProps
Properties
beforeItems?
optional
beforeItems:Element
|Element
[]
children?
optional
children:ReactNode
extendTypes?
optional
extendTypes:ExtendTypes
footer?
optional
footer:Element
|Element
[]
initialValues?
optional
initialValues:Partial
<Values
>
items?
optional
items: (Element
|ExtendItemProps
extendsExtendFormItemProps
?FormItemProps
<any
> |ExtendItemProps
<ExtendItemProps
> :FormItemProps
<any
>)[]
onFinish()?
optional
onFinish: (values
,submit
?) =>Promise
<any
>
Parameters
• values: Values
• submit?
Returns
Promise
<any
>
submit?
optional
submit:false
|FormSubmitProps
Default: { text: 'Submit' }, set false to disable it