fix(Form): improve method onFieldsChange params type defs (#16577)

This commit is contained in:
SylvanasGone 2019-05-15 12:24:33 +08:00 committed by zombieJ
parent c598b364dd
commit a19a500970

View File

@ -20,7 +20,7 @@ interface FormCreateOptionMessages {
}
export interface FormCreateOption<T> {
onFieldsChange?: (props: T, fields: object, allFields: any) => void;
onFieldsChange?: (props: T, fields: any, allFields: any) => void;
onValuesChange?: (props: T, changedValues: any, allValues: any) => void;
mapPropsToFields?: (props: T) => void;
validateMessages?: FormCreateOptionMessages;