Browse Source
Merge pull request #16524 from vicrep/patch-1
fix(forms): improve field error method type defs
pull/16531/head
偏右
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
components/form/Form.tsx
|
|
@ -171,8 +171,8 @@ export type WrappedFormUtils<V = any> = { |
|
|
|
validateFieldsAndScroll(options: ValidateFieldsOptions): void; |
|
|
|
validateFieldsAndScroll(): void; |
|
|
|
/** 获取某个输入控件的 Error */ |
|
|
|
getFieldError(name: string): Object[]; |
|
|
|
getFieldsError(names?: Array<string>): Object; |
|
|
|
getFieldError(name: string): string[] | undefined; |
|
|
|
getFieldsError(names?: Array<string>): Record<string, string[] | undefined>; |
|
|
|
/** 判断一个输入控件是否在校验状态 */ |
|
|
|
isFieldValidating(name: string): boolean; |
|
|
|
isFieldTouched(name: string): boolean; |
|
|
|