@seafile/seafile-calendar 0.0.31-gzc03 → 0.0.31-gzc05
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
@@ -7391,6 +7391,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
7391
7391
|
|
7392
7392
|
this.onInputChange = function (event) {
|
7393
7393
|
var str = event.target.value;
|
7394
|
+
console.log('str', str);
|
7394
7395
|
var calendarStr = Object(__WEBPACK_IMPORTED_MODULE_9__util__["g" /* initializeStr */])(str, _this2.state.localFormat) || '';
|
7395
7396
|
var _props = _this2.props,
|
7396
7397
|
disabledDate = _props.disabledDate,
|
@@ -7400,10 +7401,11 @@ var _initialiseProps = function _initialiseProps() {
|
|
7400
7401
|
|
7401
7402
|
// 没有内容,合法并直接退出
|
7402
7403
|
|
7403
|
-
if (!
|
7404
|
-
onChange(
|
7404
|
+
if (!str) {
|
7405
|
+
onChange(__WEBPACK_IMPORTED_MODULE_8_dayjs___default()());
|
7406
|
+
console.log(111);
|
7405
7407
|
var nowDay = __WEBPACK_IMPORTED_MODULE_8_dayjs___default()().format(format[0]);
|
7406
|
-
_this2.setState({ str:
|
7408
|
+
_this2.setState({ str: '' });
|
7407
7409
|
return;
|
7408
7410
|
}
|
7409
7411
|
var parsed = __WEBPACK_IMPORTED_MODULE_8_dayjs___default()(calendarStr, format[0]);
|