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

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
  }
@@ -7531,6 +7518,7 @@ var _initialiseProps = function _initialiseProps() {
7531
7518
  if (keyCode === __WEBPACK_IMPORTED_MODULE_6_rc_util_es_KeyCode__["a" /* default */].ENTER && onSelect) {
7532
7519
  var validateDate = !disabledDate || !disabledDate(value);
7533
7520
  if (validateDate) {
7521
+ console.log('🍉', value.clone());
7534
7522
  onSelect(value.clone());
7535
7523
  }
7536
7524
  event.preventDefault();