@mw-kit/mw-ui 1.7.35 → 1.7.37
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.modern.js
CHANGED
|
@@ -12432,7 +12432,6 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
|
12432
12432
|
}),
|
|
12433
12433
|
width: '14px'
|
|
12434
12434
|
};
|
|
12435
|
-
inputProps.disabled = true;
|
|
12436
12435
|
} else if (clearable) {
|
|
12437
12436
|
position = position || 'right';
|
|
12438
12437
|
iconOnClick = typeof clearable === 'function' ? clearable : function () {
|
|
@@ -13951,33 +13950,22 @@ var Main$1 = React__default.forwardRef(function (props, ref) {
|
|
|
13951
13950
|
}) ? [false, false] : time.map(function (t) {
|
|
13952
13951
|
return t.length === 0;
|
|
13953
13952
|
});
|
|
13954
|
-
var
|
|
13955
|
-
disabled
|
|
13953
|
+
var submitProps = !props.onSubmit ? undefined : function () {
|
|
13954
|
+
var disabled = props.onSubmit.disabled || value.some(function (v) {
|
|
13956
13955
|
return v === null;
|
|
13957
13956
|
}) || invalid.some(function (v) {
|
|
13958
13957
|
return v;
|
|
13959
13958
|
}) || timeInvalid.some(function (v) {
|
|
13960
13959
|
return v;
|
|
13961
|
-
})
|
|
13962
|
-
onClick
|
|
13963
|
-
|
|
13964
|
-
|
|
13965
|
-
|
|
13966
|
-
var _props$onSubmit = props.onSubmit,
|
|
13967
|
-
disabled = _props$onSubmit.disabled,
|
|
13968
|
-
onClick = _props$onSubmit.onClick;
|
|
13969
|
-
|
|
13970
|
-
if (disabled) {
|
|
13971
|
-
onSubmit.disabled = true;
|
|
13972
|
-
}
|
|
13973
|
-
|
|
13974
|
-
if (!onSubmit.disabled) {
|
|
13975
|
-
onSubmit.onClick = function () {
|
|
13960
|
+
});
|
|
13961
|
+
var onClick = props.onSubmit.onClick;
|
|
13962
|
+
return _extends({}, props.onSubmit, {
|
|
13963
|
+
disabled: disabled,
|
|
13964
|
+
onClick: disabled ? undefined : function () {
|
|
13976
13965
|
onClick([value[0] ? getFullDate(value[0], time[0]) : null, value[1] ? getFullDate(value[1], time[1], true) : null]);
|
|
13977
|
-
}
|
|
13978
|
-
}
|
|
13979
|
-
}
|
|
13980
|
-
|
|
13966
|
+
}
|
|
13967
|
+
});
|
|
13968
|
+
}();
|
|
13981
13969
|
var middle = new Date();
|
|
13982
13970
|
middle.setFullYear(calendar1.year);
|
|
13983
13971
|
middle.setMonth(calendar1.month + 1);
|
|
@@ -14045,9 +14033,10 @@ var Main$1 = React__default.forwardRef(function (props, ref) {
|
|
|
14045
14033
|
calendar: [calendar2, setCalendar2],
|
|
14046
14034
|
min: min && dateCompare(min, middle, 'gt') ? min : middle,
|
|
14047
14035
|
max: max
|
|
14048
|
-
}), inputs[1],
|
|
14049
|
-
type: 'button',
|
|
14036
|
+
}), inputs[1], submitProps && React__default.createElement(SubmitButton, Object.assign({
|
|
14050
14037
|
content: 'Aplicar'
|
|
14038
|
+
}, submitProps, {
|
|
14039
|
+
type: 'button'
|
|
14051
14040
|
}))));
|
|
14052
14041
|
});
|
|
14053
14042
|
Main$1.displayName = 'Main';
|