- Preparing search index...
- The search index is not available
mui-form
- getErrorState(name: string, formStateErrors: any, defaultErrorMessage?: string | Element): {
error: boolean;
helperText: any;
}
-
Parameters
-
name: string
-
formStateErrors: any
-
Optional
defaultErrorMessage: string | Element
Returns {
error: boolean;
helperText: any;
}
-
error: boolean
-
helperText: any
Description
获取指定filed的错误信息
Returns
{error:是否错误,helperText:错误提示}