@seafile/seafile-calendar 0.0.29-alpha41 → 0.0.29-alpha43
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
@@ -7320,8 +7320,7 @@ var DateInput = function (_React$Component) {
|
|
7320
7320
|
str: Object(__WEBPACK_IMPORTED_MODULE_9__util__["c" /* formatDate */])(selectedValue, _this.props.format),
|
7321
7321
|
hasFocus: false,
|
7322
7322
|
localeFormat: formatPrefix,
|
7323
|
-
delimiter: Object(__WEBPACK_IMPORTED_MODULE_9__util__["b" /* delimate */])(formatPrefix)
|
7324
|
-
cananderIput: ''
|
7323
|
+
delimiter: Object(__WEBPACK_IMPORTED_MODULE_9__util__["b" /* delimate */])(formatPrefix)
|
7325
7324
|
};
|
7326
7325
|
return _this;
|
7327
7326
|
}
|
@@ -7454,7 +7453,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
7454
7453
|
|
7455
7454
|
var parts = Object(__WEBPACK_IMPORTED_MODULE_9__util__["d" /* formatDateLocal */])(cananderStr, _this2.state.localeFormat);
|
7456
7455
|
// 没有内容,合法并直接退出
|
7457
|
-
if (!str
|
7456
|
+
if (!str) {
|
7458
7457
|
onChange(null);
|
7459
7458
|
_this2.setState({ str: str });
|
7460
7459
|
return;
|
@@ -7501,7 +7500,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
7501
7500
|
_this2.setState(function (prevState, prevProps) {
|
7502
7501
|
return {
|
7503
7502
|
hasFocus: false,
|
7504
|
-
str: Object(__WEBPACK_IMPORTED_MODULE_9__util__["c" /* formatDate */])(prevProps.value, prevProps.format)
|
7503
|
+
str: prevState.str ? Object(__WEBPACK_IMPORTED_MODULE_9__util__["c" /* formatDate */])(prevProps.value, prevProps.format) : ''
|
7505
7504
|
};
|
7506
7505
|
});
|
7507
7506
|
};
|