x-ui-design 0.5.16 → 0.5.17
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.esm.js +0 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +0 -5
- package/dist/index.js.map +1 -1
- package/lib/hooks/useForm.ts +0 -6
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -732,11 +732,6 @@ const useForm = (initialValues = {}, onFieldsChange, onValuesChange, scrollToFir
|
|
|
732
732
|
const fieldWarnings = [];
|
|
733
733
|
await Promise.all([rules].flat(1).map(async rule => {
|
|
734
734
|
rule = typeof rule === 'function' ? rule(formInstance) : rule;
|
|
735
|
-
console.log({
|
|
736
|
-
name,
|
|
737
|
-
rule: JSON.parse(JSON.stringify(rule)),
|
|
738
|
-
value
|
|
739
|
-
});
|
|
740
735
|
if (rule.required && (rule.validateBooleanFalse && !value || value === undefined || value === null || value === '' || Array.isArray(value) && !value.length)) {
|
|
741
736
|
fieldErrors.push(rule.message || 'This field is required');
|
|
742
737
|
}
|