indicator-ui 0.0.74 → 0.0.76
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.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8486,10 +8486,10 @@ const getValidateFun = ({ validationProps, keyWay, value, schemeRequired, addErr
|
|
|
8486
8486
|
return () => {
|
|
8487
8487
|
let required = schemeRequired;
|
|
8488
8488
|
let fun = () => true;
|
|
8489
|
-
if ('required' in validationProps && validationProps.required !== undefined) {
|
|
8489
|
+
if (validationProps && 'required' in validationProps && validationProps.required !== undefined) {
|
|
8490
8490
|
required = validationProps.required;
|
|
8491
8491
|
}
|
|
8492
|
-
if ('fun' in validationProps && validationProps.fun !== undefined) {
|
|
8492
|
+
if (validationProps && 'fun' in validationProps && validationProps.fun !== undefined) {
|
|
8493
8493
|
fun = validationProps.fun;
|
|
8494
8494
|
}
|
|
8495
8495
|
const isEmptyValue = !value ||
|
|
@@ -8506,7 +8506,7 @@ const getValidateFun = ({ validationProps, keyWay, value, schemeRequired, addErr
|
|
|
8506
8506
|
};
|
|
8507
8507
|
const getOnBlurValidation = (schema, additionProps, keyWay) => {
|
|
8508
8508
|
const props = schema.props.onBlurValidation || schema.props.onChangeValidation;
|
|
8509
|
-
if (props || props.required) {
|
|
8509
|
+
if (props || schema.props.required) {
|
|
8510
8510
|
const value = additionProps.getValue(keyWay);
|
|
8511
8511
|
return getValidateFun({
|
|
8512
8512
|
validationProps: props,
|
|
@@ -8524,7 +8524,7 @@ const getOnChangeValidation = (schema, additionProps, keyWay) => {
|
|
|
8524
8524
|
if (!props && schema.props.required === true) {
|
|
8525
8525
|
props = { fun: () => true };
|
|
8526
8526
|
}
|
|
8527
|
-
if (props) {
|
|
8527
|
+
if (props || schema.props.required) {
|
|
8528
8528
|
const value = additionProps.getValue(keyWay);
|
|
8529
8529
|
return getValidateFun({
|
|
8530
8530
|
validationProps: props,
|