@seafile/seafile-calendar 0.0.31-Apph0.24 → 0.0.31-Apph0.26

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.
@@ -7330,10 +7330,9 @@ var DateInput = function (_React$Component) {
7330
7330
  prefixCls = props.prefixCls,
7331
7331
  placeholder = props.placeholder,
7332
7332
  clearIcon = props.clearIcon,
7333
- inputMode = props.inputMode,
7334
- defaultValue = props.defaultValue;
7333
+ inputMode = props.inputMode;
7334
+
7335
7335
 
7336
- console.log('defaultValue', defaultValue);
7337
7336
  return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
7338
7337
  'div',
7339
7338
  { className: prefixCls + '-input-wrap' },
@@ -7382,7 +7381,8 @@ DateInput.propTypes = {
7382
7381
  onSelect: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,
7383
7382
  selectedValue: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,
7384
7383
  clearIcon: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node,
7385
- inputMode: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string
7384
+ inputMode: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,
7385
+ defaultValue: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object
7386
7386
  };
7387
7387
 
7388
7388
  var _initialiseProps = function _initialiseProps() {
@@ -7400,12 +7400,13 @@ var _initialiseProps = function _initialiseProps() {
7400
7400
  disabledDate = _props.disabledDate,
7401
7401
  format = _props.format,
7402
7402
  onChange = _props.onChange,
7403
- selectedValue = _props.selectedValue;
7403
+ selectedValue = _props.selectedValue,
7404
+ defaultValue = _props.defaultValue;
7404
7405
 
7405
7406
  console.log('str', str);
7406
7407
  // 没有内容,合法并直接退出
7407
7408
  if (!str) {
7408
- onChange(null);
7409
+ onChange(defaultValue);
7409
7410
  _this2.setState({ str: '' });
7410
7411
  return;
7411
7412
  }