From 4d486416bf0070bd60481bfa91a641e3e3371eb6 Mon Sep 17 00:00:00 2001 From: TomIsion Date: Mon, 8 Oct 2018 17:33:24 +0800 Subject: [PATCH] change Form typescript define about async callback order --- components/form/Form.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/form/Form.tsx b/components/form/Form.tsx index 670fc630fd..d7c1184f39 100755 --- a/components/form/Form.tsx +++ b/components/form/Form.tsx @@ -104,8 +104,8 @@ export type WrappedFormUtils = { validateFields(fieldNames: Array, callback: ValidateCallback): void; validateFields(fieldNames: Array, options: Object): void; validateFields(fieldNames: Array): void; - validateFields(options: Object): void; validateFields(callback: ValidateCallback): void; + validateFields(options: Object): void; validateFields(): void; /** 与 `validateFields` 相似,但校验完后,如果校验不通过的菜单域不在可见范围内,则自动滚动进可见范围 */ validateFieldsAndScroll(fieldNames: Array, options: Object, callback: ValidateCallback): void; @@ -113,8 +113,8 @@ export type WrappedFormUtils = { validateFieldsAndScroll(fieldNames: Array, callback: ValidateCallback): void; validateFieldsAndScroll(fieldNames: Array, options: Object): void; validateFieldsAndScroll(fieldNames: Array): void; - validateFieldsAndScroll(options: Object): void; validateFieldsAndScroll(callback: ValidateCallback): void; + validateFieldsAndScroll(options: Object): void; validateFieldsAndScroll(): void; /** 获取某个输入控件的 Error */ getFieldError(name: string): Object[];