@seafile/seafile-calendar 0.0.97 → 0.0.98
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
|
};
|
|
@@ -7419,6 +7420,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
7419
7420
|
// 没有内容,合法并直接退出
|
|
7420
7421
|
|
|
7421
7422
|
if (!str || !calendarStr) {
|
|
7423
|
+
console.log('没有内容,合法并直接退出');
|
|
7422
7424
|
if (shouldDisplayCurrent) {
|
|
7423
7425
|
_this2.setState({ str: '' });
|
|
7424
7426
|
onChange(__WEBPACK_IMPORTED_MODULE_8_dayjs___default()());
|
|
@@ -7431,10 +7433,10 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
7431
7433
|
var value = _this2.props.value.clone();
|
|
7432
7434
|
value = value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
|
|
7433
7435
|
|
|
7434
|
-
if (!value || disabledDate && disabledDate(value)) {
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
}
|
|
7436
|
+
// if (!value || (disabledDate && disabledDate(value))) {
|
|
7437
|
+
// this.setState({ str });
|
|
7438
|
+
// return;
|
|
7439
|
+
// }
|
|
7438
7440
|
|
|
7439
7441
|
if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
|
|
7440
7442
|
_this2.setState({ str: str });
|