@seafile/seafile-calendar 0.0.31-Apph0.37 → 0.0.31-Apph0.39

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.
@@ -7390,7 +7390,6 @@ var _initialiseProps = function _initialiseProps() {
7390
7390
  };
7391
7391
 
7392
7392
  this.onInputChange = function (event) {
7393
- console.log(_this2.props);
7394
7393
  var str = event.target.value;
7395
7394
  var calendarStr = Object(__WEBPACK_IMPORTED_MODULE_9__util__["g" /* initializeStr */])(str, _this2.state.localFormat) || '';
7396
7395
  var _props = _this2.props,
@@ -7402,16 +7401,14 @@ var _initialiseProps = function _initialiseProps() {
7402
7401
  // 没有内容,合法并直接退出
7403
7402
 
7404
7403
  if (!str) {
7405
- onChange(__WEBPACK_IMPORTED_MODULE_8_dayjs___default()());
7404
+ onChange(null);
7406
7405
  _this2.setState({ str: '' });
7407
7406
  return;
7408
7407
  }
7409
7408
  var parsed = __WEBPACK_IMPORTED_MODULE_8_dayjs___default()(calendarStr, format[0]);
7410
7409
  var value = _this2.props.value.clone();
7411
7410
  value = value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
7412
- console.log('calendarStr', calendarStr);
7413
7411
 
7414
- console.log('value', value);
7415
7412
  if (!value || disabledDate && disabledDate(value)) {
7416
7413
  _this2.setState({ str: str });
7417
7414
  return;