@seafile/seafile-calendar 0.0.31-Apph0.61 → 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 +4 -9
- 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 +2 -3
- package/lib/Calendar.js +2 -6
- package/lib/date/DateInput.js +2 -3
- 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
|
};
|
@@ -7425,13 +7421,12 @@ var _initialiseProps = function _initialiseProps() {
|
|
7425
7421
|
selectedValue = _props.selectedValue,
|
7426
7422
|
shouldDisplayCurrent = _props.shouldDisplayCurrent,
|
7427
7423
|
openValue = _props.openValue;
|
7428
|
-
|
7429
|
-
console.log('openValue', openValue);
|
7430
7424
|
// 没有内容,合法并直接退出
|
7425
|
+
|
7431
7426
|
if (!str || !calendarStr) {
|
7432
7427
|
if (shouldDisplayCurrent) {
|
7433
7428
|
_this2.setState({ str: '' });
|
7434
|
-
_this2.props.onClear(openValue
|
7429
|
+
_this2.props.onClear(openValue);
|
7435
7430
|
return;
|
7436
7431
|
}
|
7437
7432
|
_this2.onClear();
|