@thecb/components 6.1.4-beta.1 → 6.1.4-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +7 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +7 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -35132,6 +35132,13 @@ const runValidator = (validator, value, form) => {
|
|
|
35132
35132
|
};
|
|
35133
35133
|
|
|
35134
35134
|
const _computeErrors = (fieldName, form, validators) => {
|
|
35135
|
+
console.log("field name is", fieldName);
|
|
35136
|
+
console.log("form is", form);
|
|
35137
|
+
console.log("validators are", validators);
|
|
35138
|
+
const validatorsResult = validators.map(v =>
|
|
35139
|
+
runValidator(v, form[fieldName].rawValue, form)
|
|
35140
|
+
);
|
|
35141
|
+
console.log("validators result is", validatorsResult);
|
|
35135
35142
|
return validators
|
|
35136
35143
|
.map(v => runValidator(v, form[fieldName].rawValue, form))
|
|
35137
35144
|
.filter(x => x !== null);
|