Appearance
@sylis/web / components/form/context / FormProps
Interface: FormProps
Defined in: apps/web/src/components/form/context.ts:51
Extends
Omit
<React.FormHTMLAttributes
<HTMLFormElement
>,"onSubmit"
>
Properties
children?
optional
children:ReactNode
Defined in: apps/web/src/components/form/context.ts:81
子元素
Overrides
Omit.children
colon?
optional
colon:boolean
Defined in: apps/web/src/components/form/context.ts:66
是否显示冒号
disabled?
optional
disabled:boolean
Defined in: apps/web/src/components/form/context.ts:68
是否禁用
form?
optional
form:FormInstance
Defined in: apps/web/src/components/form/context.ts:54
表单实例
gap?
optional
gap:"medium"
|"small"
|"large"
Defined in: apps/web/src/components/form/context.ts:70
表单项间距
initialValues?
optional
initialValues:FormValues
Defined in: apps/web/src/components/form/context.ts:56
初始值
labelAlign?
optional
labelAlign:"left"
|"right"
|"center"
Defined in: apps/web/src/components/form/context.ts:64
标签对齐方式
labelPosition?
optional
labelPosition:"top"
|"left"
|"right"
Defined in: apps/web/src/components/form/context.ts:60
标签位置
labelWidth?
optional
labelWidth:string
|number
Defined in: apps/web/src/components/form/context.ts:62
标签宽度
layout?
optional
layout:"inline"
|"horizontal"
|"vertical"
Defined in: apps/web/src/components/form/context.ts:58
表单布局
onSubmit()?
optional
onSubmit: (values
) =>void
|Promise
<void
>
Defined in: apps/web/src/components/form/context.ts:72
提交回调
Parameters
values
Returns
void
| Promise
<void
>
onSubmitFailed()?
optional
onSubmitFailed: (errorInfo
) =>void
Defined in: apps/web/src/components/form/context.ts:74
提交失败回调
Parameters
errorInfo
errors
values
Returns
void
onValuesChange()?
optional
onValuesChange: (changedValues
,allValues
) =>void
Defined in: apps/web/src/components/form/context.ts:79
值变化回调
Parameters
changedValues
allValues
Returns
void