@seafile/seafile-calendar 0.0.29-alpha72 → 0.0.29-alpha74

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.
@@ -6891,7 +6891,8 @@ var CalendarRightPanel = function (_React$Component) {
6891
6891
  };
6892
6892
 
6893
6893
  _this.state = {
6894
- highlightTime: _this.props.value || null
6894
+ highlightTime: _this.props.value || null,
6895
+ localeFormat: _this.props.format[0]
6895
6896
  };
6896
6897
  _this.timeRef = __WEBPACK_IMPORTED_MODULE_3_react___default.a.createRef();
6897
6898
  _this.times = _this.getTimes();
@@ -6921,6 +6922,7 @@ var CalendarRightPanel = function (_React$Component) {
6921
6922
  var highlight = this.state.highlightTime;
6922
6923
  var highlightTime = highlight ? highlight.format().slice(11, 16) : null;
6923
6924
  var isZhcn = locale && locale.today === '今天';
6925
+ console.log('1111', '' + selectedDate);
6924
6926
  return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
6925
6927
  'div',
6926
6928
  { className: prefixCls + '-right-panel' },
@@ -6936,13 +6938,9 @@ var CalendarRightPanel = function (_React$Component) {
6936
6938
  'ul',
6937
6939
  null,
6938
6940
  this.times.map(function (time) {
6939
-
6940
- console.log('1111', selectedDate + ' ' + time);
6941
6941
  var parts = Object(__WEBPACK_IMPORTED_MODULE_6__util__["d" /* formatDateLocal */])(selectedDate, _this2.state.localeFormat);
6942
- var current = __WEBPACK_IMPORTED_MODULE_5_dayjs___default()(selectedDate + ' ' + time).year(parts[0]);
6943
-
6942
+ var current = __WEBPACK_IMPORTED_MODULE_5_dayjs___default()(selectedDate + ' ' + time).year(parts[0]).month(parts[1]).date(parts[2]);
6944
6943
  current = isZhcn ? current.locale('zh-cn') : current.locale('en-gb');
6945
- console.log('current', current);
6946
6944
  return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
6947
6945
  'li',
6948
6946
  {
@@ -6972,7 +6970,9 @@ CalendarRightPanel.propTypes = {
6972
6970
  onSelect: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
6973
6971
  onClickRightPanelTime: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
6974
6972
  locale: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
6975
- defaultMinutesTime: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string
6973
+ defaultMinutesTime: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
6974
+ format: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string)])
6975
+
6976
6976
  };
6977
6977
  /* harmony default export */ __webpack_exports__["a"] = (CalendarRightPanel);
6978
6978