@zgfe/business-lib 1.2.6 → 1.2.7

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.
@@ -140,13 +140,16 @@ var BizDatePicker = function BizDatePicker(_ref) {
140
140
  setDateRange(getDateRange(DatePickerTypes.Unit.day, 1, includeToday));
141
141
  }
142
142
  if (type.value === 'day') {
143
- setDateRange(getDateRange(DatePickerTypes.Unit.day, 1, includeToday));
143
+ setDateRange(getDateRange(DatePickerTypes.Unit.day, 7, includeToday));
144
+ setRelative([7, includeToday ? 0 : 1]);
144
145
  }
145
146
  if (type.value === 'week') {
146
- setDateRange(getDateRange(DatePickerTypes.Unit.day, 7, includeToday));
147
+ setDateRange(getDateRange(DatePickerTypes.Unit.week, 4, includeToday));
148
+ setRelative([4, includeToday ? 0 : 1]);
147
149
  }
148
150
  if (type.value === 'month') {
149
- setDateRange(getDateRange(DatePickerTypes.Unit.day, 30, includeToday));
151
+ setDateRange(getDateRange(DatePickerTypes.Unit.month, 1, includeToday));
152
+ setRelative([1, includeToday ? 0 : 1]);
150
153
  }
151
154
  }
152
155
  }), /*#__PURE__*/React.createElement(PickerShortcut, null), /*#__PURE__*/React.createElement(BizDate, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
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": "0ac381908b90c9ed5743655821fb348c6c7a645a",
58
+ "gitHead": "26ac18987a5c98f9b4500c282673b98c7e481cf4",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }