@zgfe/business-lib 1.1.41-attribution.17 → 1.1.41-attribution.18

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.
@@ -36,13 +36,13 @@ var BizDate = function BizDate(props) {
36
36
  var disabledDate = function disabledDate(current) {
37
37
  if (includeToday) {
38
38
  if (selectRange) {
39
- return current && (current > moment(dateRange === null || dateRange === void 0 ? void 0 : dateRange.begin).add(selectRange - 1, 'day') || current > moment().endOf('day'));
39
+ return current && (current < moment().subtract(selectRange, 'days') || current > moment().endOf('day'));
40
40
  } else {
41
41
  return current && current > moment().endOf('day');
42
42
  }
43
43
  }
44
44
  if (selectRange) {
45
- return current && (current > moment(dateRange === null || dateRange === void 0 ? void 0 : dateRange.begin).add(selectRange - 1, 'day') || current > moment().subtract(1, 'days').endOf('day'));
45
+ return current && (current < moment().subtract(selectRange, 'days') || current > moment().subtract(1, 'days').endOf('day'));
46
46
  } else {
47
47
  return current && current > moment().subtract(1, 'days').endOf('day');
48
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.1.41-attribution.17",
3
+ "version": "1.1.41-attribution.18",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -60,5 +60,5 @@
60
60
  "react": "^16.12.0 || ^17.0.0",
61
61
  "yorkie": "^2.0.0"
62
62
  },
63
- "gitHead": "72190c559b4652cd10e5d48625624772e12f0510"
63
+ "gitHead": "2bcacc5f5861d800729f3d61785bc922f0e21f61"
64
64
  }