@seafile/seafile-calendar 0.0.97 → 0.0.99
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
CHANGED
|
@@ -7370,8 +7370,8 @@ var DateInput = function (_React$Component) {
|
|
|
7370
7370
|
'a',
|
|
7371
7371
|
{
|
|
7372
7372
|
role: 'button',
|
|
7373
|
-
title: locale.clear
|
|
7374
|
-
|
|
7373
|
+
title: locale.clear,
|
|
7374
|
+
onClick: this.onClear
|
|
7375
7375
|
},
|
|
7376
7376
|
clearIcon || __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement('span', { className: prefixCls + '-clear-btn' })
|
|
7377
7377
|
) : null
|
|
@@ -7403,6 +7403,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
7403
7403
|
var _this2 = this;
|
|
7404
7404
|
|
|
7405
7405
|
this.onClear = function () {
|
|
7406
|
+
console.log('onClear');
|
|
7406
7407
|
_this2.setState({ str: '' });
|
|
7407
7408
|
_this2.props.onClear(null);
|
|
7408
7409
|
};
|
|
@@ -7418,7 +7419,11 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
7418
7419
|
shouldDisplayCurrent = _props.shouldDisplayCurrent;
|
|
7419
7420
|
// 没有内容,合法并直接退出
|
|
7420
7421
|
|
|
7422
|
+
console.log('str', str);
|
|
7423
|
+
console.log('calendarStr', calendarStr);
|
|
7424
|
+
|
|
7421
7425
|
if (!str || !calendarStr) {
|
|
7426
|
+
console.log('没有内容,合法并直接退出');
|
|
7422
7427
|
if (shouldDisplayCurrent) {
|
|
7423
7428
|
_this2.setState({ str: '' });
|
|
7424
7429
|
onChange(__WEBPACK_IMPORTED_MODULE_8_dayjs___default()());
|