@seafile/seafile-calendar 0.0.31-gzc06 → 0.0.31-gzc07

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.
@@ -2839,6 +2839,7 @@ var Calendar = function (_React$Component) {
2839
2839
  key: 'date-input',
2840
2840
  value: value,
2841
2841
  locale: locale,
2842
+ defaultValue: props.defaultValue,
2842
2843
  placeholder: calendarInputPlaceholder,
2843
2844
  showClear: true,
2844
2845
  disabledTime: disabledTime,
@@ -7378,7 +7379,8 @@ DateInput.propTypes = {
7378
7379
  onSelect: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,
7379
7380
  selectedValue: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,
7380
7381
  clearIcon: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node,
7381
- inputMode: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string
7382
+ inputMode: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,
7383
+ defaultValue: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object
7382
7384
  };
7383
7385
 
7384
7386
  var _initialiseProps = function _initialiseProps() {
@@ -7395,14 +7397,14 @@ var _initialiseProps = function _initialiseProps() {
7395
7397
  var _props = _this2.props,
7396
7398
  disabledDate = _props.disabledDate,
7397
7399
  format = _props.format,
7400
+ defaultValue = _props.defaultValue,
7398
7401
  onChange = _props.onChange,
7399
7402
  selectedValue = _props.selectedValue;
7400
7403
 
7401
7404
  // 没有内容,合法并直接退出
7402
7405
 
7403
7406
  if (!str) {
7404
- var defayltValue = _this2.props.value;
7405
- console.log('defayltValue', defayltValue);
7407
+ console.log('defayltValue', defaultValue);
7406
7408
  onChange(__WEBPACK_IMPORTED_MODULE_8_dayjs___default()());
7407
7409
  _this2.setState({ str: '' });
7408
7410
  return;