@seafile/seafile-calendar 0.0.29-alpha35 → 0.0.29-alpha39

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.
@@ -7462,24 +7462,11 @@ var _initialiseProps = function _initialiseProps() {
7462
7462
  // 不合法直接退出
7463
7463
  var format = Object(__WEBPACK_IMPORTED_MODULE_9__util__["e" /* getDateFormatByStr */])(cananderStr, _this2.state.localeFormat);
7464
7464
  var parsed = __WEBPACK_IMPORTED_MODULE_8_dayjs___default()(cananderStr, format);
7465
- // eslint-disable-next-line no-console
7466
- console.log('cananderStr', cananderStr, format, parts); // eslint-disable-next-line no-console
7467
7465
  var value = _this2.props.value.clone();
7468
7466
  value.locale('zh-cn');
7469
- // value = value
7470
- // .year(parsed.year())
7471
- // .month(parsed.month())
7472
- // .date(parsed.date())
7473
- // .hour(parsed.hour())
7474
- // .minute(parsed.minute())
7475
- // .second(parsed.second());
7476
-
7477
7467
  if (_this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].ISO || _this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].ISOAndTime) {
7478
7468
  if (parts[0] && parts[0].length === 4 && (parts[0].slice(0, 3) === '000' || parts[0].slice(0, 2) === '00')) {
7479
- console.log('ISO format', parts[0]);
7480
7469
  value = value.year(parts[0]).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
7481
- // eslint-disable-next-line no-console
7482
- console.log('ISO format year', value);
7483
7470
  } else {
7484
7471
  value = value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
7485
7472
  }
@@ -7497,8 +7484,6 @@ var _initialiseProps = function _initialiseProps() {
7497
7484
 
7498
7485
  if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
7499
7486
  _this2.setState({ str: str });
7500
- // eslint-disable-next-line no-console
7501
- console.log('value', value);
7502
7487
  onChange(value);
7503
7488
  }
7504
7489
  };