@seafile/seafile-calendar 0.0.31-Apph0.60 → 0.0.31-Apph0.62
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.
- package/dist/rc-calendar.js +6 -10
- package/dist/rc-calendar.js.map +1 -1
- package/dist/rc-calendar.min.js +1 -1
- package/es/Calendar.js +2 -6
- package/es/date/DateInput.js +4 -4
- package/lib/Calendar.js +2 -6
- package/lib/date/DateInput.js +4 -4
- package/package.json +1 -1
package/dist/rc-calendar.js
CHANGED
@@ -3081,12 +3081,8 @@ var _initialiseProps = function _initialiseProps() {
|
|
3081
3081
|
}
|
3082
3082
|
};
|
3083
3083
|
|
3084
|
-
this.onClear = function (
|
3085
|
-
|
3086
|
-
_this2.onSelect(value || __WEBPACK_IMPORTED_MODULE_9_dayjs___default()());
|
3087
|
-
} else {
|
3088
|
-
_this2.onSelect(null);
|
3089
|
-
}
|
3084
|
+
this.onClear = function () {
|
3085
|
+
_this2.onSelect(null);
|
3090
3086
|
_this2.props.onClear();
|
3091
3087
|
_this2.setState({ currentStatus: 1 });
|
3092
3088
|
};
|
@@ -7423,14 +7419,14 @@ var _initialiseProps = function _initialiseProps() {
|
|
7423
7419
|
format = _props.format,
|
7424
7420
|
onChange = _props.onChange,
|
7425
7421
|
selectedValue = _props.selectedValue,
|
7426
|
-
shouldDisplayCurrent = _props.shouldDisplayCurrent
|
7427
|
-
|
7428
|
-
console.log('openValue', openValue);
|
7422
|
+
shouldDisplayCurrent = _props.shouldDisplayCurrent,
|
7423
|
+
openValue = _props.openValue;
|
7429
7424
|
// 没有内容,合法并直接退出
|
7425
|
+
|
7430
7426
|
if (!str || !calendarStr) {
|
7431
7427
|
if (shouldDisplayCurrent) {
|
7432
7428
|
_this2.setState({ str: '' });
|
7433
|
-
_this2.props.onClear(openValue
|
7429
|
+
_this2.props.onClear(openValue);
|
7434
7430
|
return;
|
7435
7431
|
}
|
7436
7432
|
_this2.onClear();
|