@seafile/seafile-calendar 0.0.31-pdd0.1 → 0.0.31

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.
@@ -822,7 +822,7 @@ function initializeStr(str, format) {
822
822
  return '' + _day10 + dateDelimater + _month10 + dateDelimater + _year10;
823
823
  } else if (inputStrLength >= 1 && inputStrLength <= 8) {
824
824
  var _dateStr6 = inputStr.slice(0, 2);
825
- var _monthStr6 = inputStr.slice(2, 4) || getCurrentMonth();
825
+ var _monthStr6 = inputStr.slice(2, 4);
826
826
  var _yearStr6 = inputStr.slice(4, inputStr.length);
827
827
  var _validateYear11 = validateCalendarYear(_yearStr6);
828
828
 
@@ -866,7 +866,7 @@ function initializeStr(str, format) {
866
866
  return '' + _day12 + dateDelimater + _month12 + dateDelimater + _year12 + ' ' + time;
867
867
  } else if (_datePart2.length >= 1 && _datePart2.length <= 8) {
868
868
  var _dateStr7 = _datePart2.slice(0, 2);
869
- var _monthStr7 = _datePart2.slice(2, 4) || getCurrentMonth();
869
+ var _monthStr7 = _datePart2.slice(2, 4);
870
870
  var _yearStr7 = _datePart2.slice(4, _datePart2.length);
871
871
  var _timeParts2 = tokenizeFormattedDate(inputStr, format);
872
872
  time = validateTime(_timeParts2[1] + ':' + _timeParts2[2]);
@@ -7400,8 +7400,8 @@ var _initialiseProps = function _initialiseProps() {
7400
7400
 
7401
7401
  // 没有内容,合法并直接退出
7402
7402
 
7403
- if (!str) {
7404
- onChange(__WEBPACK_IMPORTED_MODULE_8_dayjs___default()());
7403
+ if (!calendarStr) {
7404
+ onChange(null);
7405
7405
  _this2.setState({ str: '' });
7406
7406
  return;
7407
7407
  }