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

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.
@@ -2805,7 +2805,8 @@ var Calendar = function (_React$Component) {
2805
2805
  inputMode = props.inputMode,
2806
2806
  showHourAndMinute = props.showHourAndMinute,
2807
2807
  firstDayOfWeek = props.firstDayOfWeek,
2808
- showWeekNumber = props.showWeekNumber;
2808
+ showWeekNumber = props.showWeekNumber,
2809
+ defaultValue = props.defaultValue;
2809
2810
  var value = state.value,
2810
2811
  selectedValue = state.selectedValue,
2811
2812
  mode = state.mode;
@@ -2844,6 +2845,7 @@ var Calendar = function (_React$Component) {
2844
2845
  disabledTime: disabledTime,
2845
2846
  disabledDate: disabledDate,
2846
2847
  onClear: this.onClear,
2848
+ defaultValue: defaultValue,
2847
2849
  prefixCls: prefixCls,
2848
2850
  selectedValue: selectedValue,
2849
2851
  onChange: this.onDateInputChange,
@@ -7328,8 +7330,10 @@ var DateInput = function (_React$Component) {
7328
7330
  prefixCls = props.prefixCls,
7329
7331
  placeholder = props.placeholder,
7330
7332
  clearIcon = props.clearIcon,
7331
- inputMode = props.inputMode;
7333
+ inputMode = props.inputMode,
7334
+ defaultValue = props.defaultValue;
7332
7335
 
7336
+ console.log('defaultValue', defaultValue);
7333
7337
  return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
7334
7338
  'div',
7335
7339
  { className: prefixCls + '-input-wrap' },
@@ -7386,7 +7390,6 @@ var _initialiseProps = function _initialiseProps() {
7386
7390
 
7387
7391
  this.onClear = function () {
7388
7392
  _this2.setState({ str: '' });
7389
- _this2.props.onChange(null);
7390
7393
  _this2.props.onClear(null);
7391
7394
  };
7392
7395
 
@@ -7399,10 +7402,10 @@ var _initialiseProps = function _initialiseProps() {
7399
7402
  onChange = _props.onChange,
7400
7403
  selectedValue = _props.selectedValue;
7401
7404
 
7405
+ console.log('str', str);
7402
7406
  // 没有内容,合法并直接退出
7403
-
7404
7407
  if (!str) {
7405
- _this2.props.onClear(null);
7408
+ onChange(null);
7406
7409
  _this2.setState({ str: '' });
7407
7410
  return;
7408
7411
  }