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?
optionalchildren:ReactNode
Defined in: apps/web/src/components/form/context.ts:81
子元素
Overrides
Omit.children
colon?
optionalcolon:boolean
Defined in: apps/web/src/components/form/context.ts:66
是否显示冒号
disabled?
optionaldisabled:boolean
Defined in: apps/web/src/components/form/context.ts:68
是否禁用
form?
optionalform:FormInstance
Defined in: apps/web/src/components/form/context.ts:54
表单实例
gap?
optionalgap:"medium"|"small"|"large"
Defined in: apps/web/src/components/form/context.ts:70
表单项间距
initialValues?
optionalinitialValues:FormValues
Defined in: apps/web/src/components/form/context.ts:56
初始值
labelAlign?
optionallabelAlign:"left"|"right"|"center"
Defined in: apps/web/src/components/form/context.ts:64
标签对齐方式
labelPosition?
optionallabelPosition:"top"|"left"|"right"
Defined in: apps/web/src/components/form/context.ts:60
标签位置
labelWidth?
optionallabelWidth:string|number
Defined in: apps/web/src/components/form/context.ts:62
标签宽度
layout?
optionallayout:"inline"|"horizontal"|"vertical"
Defined in: apps/web/src/components/form/context.ts:58
表单布局
onSubmit()?
optionalonSubmit: (values) =>void|Promise<void>
Defined in: apps/web/src/components/form/context.ts:72
提交回调
Parameters
values
Returns
void | Promise<void>
onSubmitFailed()?
optionalonSubmitFailed: (errorInfo) =>void
Defined in: apps/web/src/components/form/context.ts:74
提交失败回调
Parameters
errorInfo
errors
values
Returns
void
onValuesChange()?
optionalonValuesChange: (changedValues,allValues) =>void
Defined in: apps/web/src/components/form/context.ts:79
值变化回调
Parameters
changedValues
allValues
Returns
void