@seafile/seafile-calendar 0.0.31-gzc05 → 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() {
@@ -7391,20 +7393,19 @@ var _initialiseProps = function _initialiseProps() {
7391
7393
 
7392
7394
  this.onInputChange = function (event) {
7393
7395
  var str = event.target.value;
7394
- console.log('str', str);
7395
7396
  var calendarStr = Object(__WEBPACK_IMPORTED_MODULE_9__util__["g" /* initializeStr */])(str, _this2.state.localFormat) || '';
7396
7397
  var _props = _this2.props,
7397
7398
  disabledDate = _props.disabledDate,
7398
7399
  format = _props.format,
7400
+ defaultValue = _props.defaultValue,
7399
7401
  onChange = _props.onChange,
7400
7402
  selectedValue = _props.selectedValue;
7401
7403
 
7402
7404
  // 没有内容,合法并直接退出
7403
7405
 
7404
7406
  if (!str) {
7407
+ console.log('defayltValue', defaultValue);
7405
7408
  onChange(__WEBPACK_IMPORTED_MODULE_8_dayjs___default()());
7406
- console.log(111);
7407
- var nowDay = __WEBPACK_IMPORTED_MODULE_8_dayjs___default()().format(format[0]);
7408
7409
  _this2.setState({ str: '' });
7409
7410
  return;
7410
7411
  }