@seafile/seafile-calendar 0.0.31-Apph0.40 → 0.0.31-Apph0.41

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.
@@ -32,6 +32,10 @@ var _DateConstants2 = _interopRequireDefault(_DateConstants);
32
32
 
33
33
  var _util = require('../util/');
34
34
 
35
+ var _dayjs = require('dayjs');
36
+
37
+ var _dayjs2 = _interopRequireDefault(_dayjs);
38
+
35
39
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
36
40
 
37
41
  var DATE_ROW_COLUMN_COUNT = _DateConstants2['default'].DATE_ROW_COLUMN_COUNT,
@@ -78,7 +82,8 @@ var DateTBody = function (_React$Component) {
78
82
  dateRender = props.dateRender,
79
83
  disabledDate = props.disabledDate,
80
84
  hoverValue = props.hoverValue,
81
- firstDayOfWeek = props.firstDayOfWeek;
85
+ firstDayOfWeek = props.firstDayOfWeek,
86
+ currentStatus = props.currentStatus;
82
87
 
83
88
  var iIndex = void 0;
84
89
  var jIndex = void 0;
@@ -146,7 +151,11 @@ var DateTBody = function (_React$Component) {
146
151
  for (jIndex = 0; jIndex < DATE_ROW_COLUMN_COUNT.DATE_COL_COUNT; jIndex++) {
147
152
  var next = null;
148
153
  var last = null;
149
- current = dateTable[passed];
154
+ if (currentStatus === 1) {
155
+ current = dateTable[passed].hour((0, _dayjs2['default'])().hour()).minute((0, _dayjs2['default'])().minute()).second((0, _dayjs2['default'])().second());;
156
+ } else {
157
+ current = dateTable[passed];
158
+ }
150
159
  if (jIndex < DATE_ROW_COLUMN_COUNT.DATE_COL_COUNT - 1) {
151
160
  next = dateTable[passed + 1];
152
161
  }
@@ -298,7 +307,8 @@ DateTBody.propTypes = {
298
307
  value: _propTypes2['default'].object,
299
308
  hoverValue: _propTypes2['default'].any,
300
309
  showWeekNumber: _propTypes2['default'].bool,
301
- firstDayOfWeek: _propTypes2['default'].string
310
+ firstDayOfWeek: _propTypes2['default'].string,
311
+ currentStatus: _propTypes2['default'].number
302
312
  };
303
313
  DateTBody.defaultProps = {
304
314
  hoverValue: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-calendar",
3
- "version": "0.0.31Apph0.40",
3
+ "version": "0.0.31Apph0.41",
4
4
  "description": "React Calendar",
5
5
  "keywords": [
6
6
  "react",