@seafile/seafile-calendar 0.0.29-alpha46 → 0.0.29-alpha48
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
@@ -7445,6 +7445,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
7445
7445
|
};
|
7446
7446
|
|
7447
7447
|
this.onInputChange = function (str) {
|
7448
|
+
console.log(str);
|
7448
7449
|
var cananderStr = Object(__WEBPACK_IMPORTED_MODULE_9__util__["l" /* normalizeDateInput */])(str, _this2.state.localeFormat, _this2.state.delimiter);
|
7449
7450
|
var _props = _this2.props,
|
7450
7451
|
disabledDate = _props.disabledDate,
|
@@ -7453,10 +7454,15 @@ var _initialiseProps = function _initialiseProps() {
|
|
7453
7454
|
|
7454
7455
|
var parts = Object(__WEBPACK_IMPORTED_MODULE_9__util__["d" /* formatDateLocal */])(cananderStr, _this2.state.localeFormat);
|
7455
7456
|
// 没有内容,合法并直接退出
|
7457
|
+
|
7456
7458
|
if (!str) {
|
7457
|
-
|
7458
|
-
|
7459
|
-
|
7459
|
+
if (!_this2.state.str) {
|
7460
|
+
_this2.setState({
|
7461
|
+
str: ''
|
7462
|
+
});
|
7463
|
+
_this2.props.onClear(null);
|
7464
|
+
return;
|
7465
|
+
}
|
7460
7466
|
}
|
7461
7467
|
// 不合法直接退出
|
7462
7468
|
var format = Object(__WEBPACK_IMPORTED_MODULE_9__util__["e" /* getDateFormatByStr */])(cananderStr, _this2.state.localeFormat);
|