@seafile/seafile-calendar 0.0.29-alpha42 → 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
@@ -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;
|
@@ -7504,7 +7500,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
7504
7500
|
_this2.setState(function (prevState, prevProps) {
|
7505
7501
|
return {
|
7506
7502
|
hasFocus: false,
|
7507
|
-
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) : ''
|
7508
7504
|
};
|
7509
7505
|
});
|
7510
7506
|
};
|