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

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: true
2874
+ showHourAndMinute: showHourAndMinute
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
- __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__calendar_CalendarRightPanel__["a" /* default */], {
2950
+ showHourAndMinute && __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: true,
2957
+ showHourAndMinute: showHourAndMinute,
2958
2958
  format: this.getFormat()
2959
2959
  })
2960
2960
  )
@@ -6864,6 +6864,7 @@ var CalendarRightPanel = function (_React$Component) {
6864
6864
  var _this = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props));
6865
6865
 
6866
6866
  _this.onSelect = function (value) {
6867
+ console.log('value', value);
6867
6868
  _this.setState({
6868
6869
  highlightTime: value
6869
6870
  });
@@ -6922,7 +6923,6 @@ var CalendarRightPanel = function (_React$Component) {
6922
6923
  if (showHourAndMinute) {
6923
6924
  selectedDate = value.format().slice(0, String(value.format()).indexOf('T')).padStart(10, 0);
6924
6925
  }
6925
- console.log('selectedDate', selectedDate);
6926
6926
  var highlight = this.state.highlightTime;
6927
6927
  var highlightTime = highlight ? highlight.format().slice(11, 16) : null;
6928
6928
  var isZhcn = locale && locale.today === '今天';