Skip to content

Commit

Permalink
change Form typescript define about async callback order
Browse files Browse the repository at this point in the history
  • Loading branch information
TomIsion authored and afc163 committed Oct 8, 2018
1 parent 5bef1aa commit 4d48641
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,17 @@ export type WrappedFormUtils = {
validateFields(fieldNames: Array<string>, callback: ValidateCallback): void;
validateFields(fieldNames: Array<string>, options: Object): void;
validateFields(fieldNames: Array<string>): void;
validateFields(options: Object): void;
validateFields(callback: ValidateCallback): void;
validateFields(options: Object): void;
validateFields(): void;
/** 与 `validateFields` 相似,但校验完后,如果校验不通过的菜单域不在可见范围内,则自动滚动进可见范围 */
validateFieldsAndScroll(fieldNames: Array<string>, options: Object, callback: ValidateCallback): void;
validateFieldsAndScroll(options: Object, callback: ValidateCallback): void;
validateFieldsAndScroll(fieldNames: Array<string>, callback: ValidateCallback): void;
validateFieldsAndScroll(fieldNames: Array<string>, options: Object): void;
validateFieldsAndScroll(fieldNames: Array<string>): void;
validateFieldsAndScroll(options: Object): void;
validateFieldsAndScroll(callback: ValidateCallback): void;
validateFieldsAndScroll(options: Object): void;
validateFieldsAndScroll(): void;
/** 获取某个输入控件的 Error */
getFieldError(name: string): Object[];
Expand Down

0 comments on commit 4d48641

Please sign in to comment.