@seafile/seafile-calendar 0.0.29-alpha42 → 0.0.29-alpha44
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
@@ -7454,10 +7454,6 @@ var _initialiseProps = function _initialiseProps() {
|
|
7454
7454
|
var parts = Object(__WEBPACK_IMPORTED_MODULE_9__util__["d" /* formatDateLocal */])(cananderStr, _this2.state.localeFormat);
|
7455
7455
|
// 没有内容,合法并直接退出
|
7456
7456
|
if (!str) {
|
7457
|
-
if (str === '') {
|
7458
|
-
_this2.setState({ str: '' });
|
7459
|
-
return;
|
7460
|
-
}
|
7461
7457
|
onChange(null);
|
7462
7458
|
_this2.setState({ str: str });
|
7463
7459
|
return;
|
@@ -7501,6 +7497,9 @@ var _initialiseProps = function _initialiseProps() {
|
|
7501
7497
|
};
|
7502
7498
|
|
7503
7499
|
this.onBlur = function () {
|
7500
|
+
if (!_this2.state.str) {
|
7501
|
+
_this2.setState({ str: Object(__WEBPACK_IMPORTED_MODULE_9__util__["c" /* formatDate */])(_this2.props.value, _this2.props.format) });
|
7502
|
+
}
|
7504
7503
|
_this2.setState(function (prevState, prevProps) {
|
7505
7504
|
return {
|
7506
7505
|
hasFocus: false,
|