@seafile/seafile-calendar 0.0.29-alpha54 → 0.0.29-alpha57

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.
@@ -2871,7 +2871,7 @@ var Calendar = function (_React$Component) {
2871
2871
  onSelect: this.onDateInputSelect,
2872
2872
  clearIcon: clearIcon,
2873
2873
  inputMode: inputMode,
2874
- showHourAndMinute: showHourAndMinute
2874
+ showHourAndMinute: true
2875
2875
  }) : null;
2876
2876
 
2877
2877
  var children = [];
@@ -2947,14 +2947,14 @@ var Calendar = function (_React$Component) {
2947
2947
  onCloseTimePicker: this.closeTimePicker
2948
2948
  })
2949
2949
  ),
2950
- showHourAndMinute && __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__calendar_CalendarRightPanel__["a" /* default */], {
2950
+ __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__calendar_CalendarRightPanel__["a" /* default */], {
2951
2951
  prefixCls: prefixCls,
2952
2952
  value: value,
2953
2953
  locale: locale,
2954
2954
  onSelect: this.onDateTableSelect,
2955
2955
  onClickRightPanelTime: onClickRightPanelTime,
2956
2956
  defaultMinutesTime: this.props.defaultMinutesTime,
2957
- showHourAndMinute: showHourAndMinute,
2957
+ showHourAndMinute: true,
2958
2958
  format: this.getFormat()
2959
2959
  })
2960
2960
  )
@@ -3109,6 +3109,7 @@ var _initialiseProps = function _initialiseProps() {
3109
3109
  };
3110
3110
 
3111
3111
  this.onDateInputChange = function (value) {
3112
+ if (!value) return;
3112
3113
  _this2.onSelect(value, {
3113
3114
  source: 'dateInput'
3114
3115
  });
@@ -6921,6 +6922,7 @@ var CalendarRightPanel = function (_React$Component) {
6921
6922
  if (showHourAndMinute) {
6922
6923
  selectedDate = value.format().slice(0, String(value.format()).indexOf('T')).padStart(10, 0);
6923
6924
  }
6925
+ console.log('selectedDate', selectedDate);
6924
6926
  var highlight = this.state.highlightTime;
6925
6927
  var highlightTime = highlight ? highlight.format().slice(11, 16) : null;
6926
6928
  var isZhcn = locale && locale.today === '今天';
@@ -7454,7 +7456,7 @@ var _initialiseProps = function _initialiseProps() {
7454
7456
  var parts = Object(__WEBPACK_IMPORTED_MODULE_9__util__["d" /* formatDateLocal */])(cananderStr, _this2.state.localeFormat);
7455
7457
  // 没有内容,合法并直接退出
7456
7458
  if (!str) {
7457
- onChange(__WEBPACK_IMPORTED_MODULE_8_dayjs___default()());
7459
+ onChange(null);
7458
7460
  _this2.setState({ str: '' });
7459
7461
  return;
7460
7462
  }