rc-field-form
Advanced tools
Comparing version 0.0.0-alpha.5 to 0.0.0-alpha.6
@@ -132,2 +132,4 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
_this.refresh(); | ||
return; | ||
} | ||
@@ -151,2 +153,4 @@ | ||
_this.refresh(); | ||
return; | ||
} | ||
@@ -165,2 +169,4 @@ | ||
_this.reRender(); | ||
return; | ||
} | ||
@@ -182,2 +188,4 @@ | ||
_this.reRender(); | ||
return; | ||
} | ||
@@ -197,4 +205,6 @@ | ||
return containsNamePath(namePathList, getNamePath(dependency)); | ||
}) || shouldUpdate === true || (typeof shouldUpdate === 'function' ? shouldUpdate(prevStore, values, info) : prevValue !== curValue)) { | ||
}) || (typeof shouldUpdate === 'function' ? shouldUpdate(prevStore, values, info) : prevValue !== curValue)) { | ||
_this.reRender(); | ||
return; | ||
} | ||
@@ -204,2 +214,6 @@ | ||
} | ||
if (shouldUpdate === true) { | ||
_this.reRender(); | ||
} | ||
}; | ||
@@ -206,0 +220,0 @@ |
@@ -0,1 +1,2 @@ | ||
import { ReactElement } from 'react'; | ||
import { ReducerAction } from './useForm'; | ||
@@ -28,3 +29,3 @@ export declare type InternalNamePath = (string | number)[]; | ||
max?: number; | ||
message?: string; | ||
message?: string | ReactElement; | ||
min?: number; | ||
@@ -105,3 +106,2 @@ pattern?: RegExp; | ||
} | ||
export declare type IsFieldsTouched = ((allFieldsTouched?: boolean) => boolean) | ((nameList: NamePath[], allFieldsTouched?: boolean) => boolean); | ||
export interface FormInstance { | ||
@@ -112,3 +112,4 @@ getFieldValue: (name: NamePath) => StoreValue; | ||
getFieldsError: (nameList?: NamePath[]) => FieldError[]; | ||
isFieldsTouched: IsFieldsTouched; | ||
isFieldsTouched(nameList?: NamePath[], allFieldsTouched?: boolean): boolean; | ||
isFieldsTouched(allFieldsTouched?: boolean): boolean; | ||
isFieldTouched: (name: NamePath) => boolean; | ||
@@ -115,0 +116,0 @@ isFieldValidating: (name: NamePath) => boolean; |
@@ -149,2 +149,4 @@ "use strict"; | ||
_this.refresh(); | ||
return; | ||
} | ||
@@ -168,2 +170,4 @@ | ||
_this.refresh(); | ||
return; | ||
} | ||
@@ -182,2 +186,4 @@ | ||
_this.reRender(); | ||
return; | ||
} | ||
@@ -199,2 +205,4 @@ | ||
_this.reRender(); | ||
return; | ||
} | ||
@@ -214,4 +222,6 @@ | ||
return (0, _valueUtil.containsNamePath)(namePathList, (0, _valueUtil.getNamePath)(dependency)); | ||
}) || shouldUpdate === true || (typeof shouldUpdate === 'function' ? shouldUpdate(prevStore, values, info) : prevValue !== curValue)) { | ||
}) || (typeof shouldUpdate === 'function' ? shouldUpdate(prevStore, values, info) : prevValue !== curValue)) { | ||
_this.reRender(); | ||
return; | ||
} | ||
@@ -221,2 +231,6 @@ | ||
} | ||
if (shouldUpdate === true) { | ||
_this.reRender(); | ||
} | ||
}; | ||
@@ -223,0 +237,0 @@ |
@@ -0,1 +1,2 @@ | ||
import { ReactElement } from 'react'; | ||
import { ReducerAction } from './useForm'; | ||
@@ -28,3 +29,3 @@ export declare type InternalNamePath = (string | number)[]; | ||
max?: number; | ||
message?: string; | ||
message?: string | ReactElement; | ||
min?: number; | ||
@@ -105,3 +106,2 @@ pattern?: RegExp; | ||
} | ||
export declare type IsFieldsTouched = ((allFieldsTouched?: boolean) => boolean) | ((nameList: NamePath[], allFieldsTouched?: boolean) => boolean); | ||
export interface FormInstance { | ||
@@ -112,3 +112,4 @@ getFieldValue: (name: NamePath) => StoreValue; | ||
getFieldsError: (nameList?: NamePath[]) => FieldError[]; | ||
isFieldsTouched: IsFieldsTouched; | ||
isFieldsTouched(nameList?: NamePath[], allFieldsTouched?: boolean): boolean; | ||
isFieldsTouched(allFieldsTouched?: boolean): boolean; | ||
isFieldTouched: (name: NamePath) => boolean; | ||
@@ -115,0 +116,0 @@ isFieldValidating: (name: NamePath) => boolean; |
{ | ||
"name": "rc-field-form", | ||
"version": "0.0.0-alpha.5", | ||
"version": "0.0.0-alpha.6", | ||
"description": "React Form Component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
196951
4238