@zgfe/business-lib 1.2.33-hrFix.1 → 1.2.33-hrFix.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.
|
@@ -33,7 +33,7 @@ var BizDate = function BizDate(_ref) {
|
|
|
33
33
|
function disabledDate(current) {
|
|
34
34
|
var step = includeToday ? 0 : 1;
|
|
35
35
|
var max = moment().subtract(step, 'days');
|
|
36
|
-
var _timeRangeOpen = timeRangeOpen ||
|
|
36
|
+
var _timeRangeOpen = timeRangeOpen || 24;
|
|
37
37
|
if (envs === null || envs === void 0 ? void 0 : envs.timeRangeOpen) {
|
|
38
38
|
_timeRangeOpen = typeof (envs === null || envs === void 0 ? void 0 : envs.timeRangeOpen) === 'boolean' ? (envs === null || envs === void 0 ? void 0 : envs.timeRangeOpen) ? 200 : 12 : envs === null || envs === void 0 ? void 0 : envs.timeRangeOpen;
|
|
39
39
|
}
|
|
@@ -106,7 +106,7 @@ var BizDate = function BizDate(_ref) {
|
|
|
106
106
|
disabledDate: disabledDate,
|
|
107
107
|
onOpenChange: function onOpenChange(open) {
|
|
108
108
|
if (BizDateBeyondRange) {
|
|
109
|
-
message.error("\u65F6\u95F4\u6BB5\u6700\u5927\u652F\u6301".concat(selectRange ? selectRange :
|
|
109
|
+
message.error("\u65F6\u95F4\u6BB5\u6700\u5927\u652F\u6301".concat(selectRange ? selectRange : 24).concat(selectRangeUnitText));
|
|
110
110
|
BizDateBeyondRange = false;
|
|
111
111
|
}
|
|
112
112
|
_onOpenChange && _onOpenChange(open);
|
|
@@ -116,7 +116,7 @@ var BizDate = function BizDate(_ref) {
|
|
|
116
116
|
if (includeToday && value && value.length === 2 && isTodayInRange(value[0], value[1])) {
|
|
117
117
|
subtractDays = 1;
|
|
118
118
|
}
|
|
119
|
-
if (value && value.length === 2 && moment(_.cloneDeep(value[1]).subtract(subtractDays, 'days').format('YYYY-MM-DD')).diff(moment(value[0].format('YYYY-MM-DD')), selectRangeUnit || 'months') >= (selectRange ? selectRange :
|
|
119
|
+
if (value && value.length === 2 && moment(_.cloneDeep(value[1]).subtract(subtractDays, 'days').format('YYYY-MM-DD')).diff(moment(value[0].format('YYYY-MM-DD')), selectRangeUnit || 'months') >= (selectRange ? selectRange : 24)) {
|
|
120
120
|
BizDateBeyondRange = true;
|
|
121
121
|
return;
|
|
122
122
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.2.33-hrFix.
|
|
3
|
+
"version": "1.2.33-hrFix.2",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react": "^16.12.0 || ^17.0.0",
|
|
56
56
|
"yorkie": "^2.0.0"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "e82d7a05a283144aa7dface1f2302632ca4df541",
|
|
59
59
|
"gitHooks": {
|
|
60
60
|
"pre-commit": "lint-staged"
|
|
61
61
|
}
|