@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.cjs.js
CHANGED
|
@@ -35140,6 +35140,13 @@ const runValidator = (validator, value, form) => {
|
|
|
35140
35140
|
};
|
|
35141
35141
|
|
|
35142
35142
|
const _computeErrors = (fieldName, form, validators) => {
|
|
35143
|
+
console.log("field name is", fieldName);
|
|
35144
|
+
console.log("form is", form);
|
|
35145
|
+
console.log("validators are", validators);
|
|
35146
|
+
const validatorsResult = validators.map(v =>
|
|
35147
|
+
runValidator(v, form[fieldName].rawValue, form)
|
|
35148
|
+
);
|
|
35149
|
+
console.log("validators result is", validatorsResult);
|
|
35143
35150
|
return validators
|
|
35144
35151
|
.map(v => runValidator(v, form[fieldName].rawValue, form))
|
|
35145
35152
|
.filter(x => x !== null);
|