|
|
|
@ -124,8 +124,8 @@ export interface FormProps {
|
|
|
|
|
// Show confirmation button
|
|
|
|
|
showSubmitButton?: boolean
|
|
|
|
|
|
|
|
|
|
resetFunc?: () => Promise<void>
|
|
|
|
|
submitFunc?: () => Promise<void>
|
|
|
|
|
resetFunc?: (() => Promise<void>) | (() => void)
|
|
|
|
|
submitFunc?: (() => Promise<void>) | (() => void)
|
|
|
|
|
transformDateFunc?: (date: any) => string
|
|
|
|
|
colon?: boolean,
|
|
|
|
|
// 表单是否初始状态是只读属性
|
|
|
|
@ -145,9 +145,9 @@ export interface FormSchema {
|
|
|
|
|
subLabel?: string
|
|
|
|
|
// Help text on the right side of the text
|
|
|
|
|
helpMessage?:
|
|
|
|
|
| string
|
|
|
|
|
| string[]
|
|
|
|
|
| ((renderCallbackParams: RenderCallbackParams) => string | string[])
|
|
|
|
|
| string
|
|
|
|
|
| string[]
|
|
|
|
|
| ((renderCallbackParams: RenderCallbackParams) => string | string[])
|
|
|
|
|
// BaseHelp component props
|
|
|
|
|
helpComponentProps?: Partial<HelpComponentProps>
|
|
|
|
|
// Label width, if it is passed, the labelCol and WrapperCol configured by itemProps will be invalid
|
|
|
|
@ -158,13 +158,13 @@ export interface FormSchema {
|
|
|
|
|
component: ComponentType
|
|
|
|
|
// Component parameters
|
|
|
|
|
componentProps?:
|
|
|
|
|
| ((opt: {
|
|
|
|
|
schema: FormSchema
|
|
|
|
|
tableAction: TableActionType
|
|
|
|
|
formActionType: FormActionType
|
|
|
|
|
formModel: Recordable
|
|
|
|
|
}) => Recordable)
|
|
|
|
|
| object
|
|
|
|
|
| ((opt: {
|
|
|
|
|
schema: FormSchema
|
|
|
|
|
tableAction: TableActionType
|
|
|
|
|
formActionType: FormActionType
|
|
|
|
|
formModel: Recordable
|
|
|
|
|
}) => Recordable)
|
|
|
|
|
| object
|
|
|
|
|
// Required
|
|
|
|
|
required?: boolean | ((renderCallbackParams: RenderCallbackParams) => boolean)
|
|
|
|
|
|
|
|
|
@ -203,10 +203,10 @@ export interface FormSchema {
|
|
|
|
|
renderColContent?: (renderCallbackParams: RenderCallbackParams) => VNode | VNode[] | string
|
|
|
|
|
|
|
|
|
|
renderComponentContent?:
|
|
|
|
|
| ((renderCallbackParams: RenderCallbackParams) => any)
|
|
|
|
|
| VNode
|
|
|
|
|
| VNode[]
|
|
|
|
|
| string
|
|
|
|
|
| ((renderCallbackParams: RenderCallbackParams) => any)
|
|
|
|
|
| VNode
|
|
|
|
|
| VNode[]
|
|
|
|
|
| string
|
|
|
|
|
|
|
|
|
|
// Custom slot, in from-item
|
|
|
|
|
slot?: string
|
|
|
|
|