@seafile/seafile-calendar 0.0.29-alpha36 → 0.0.29-alpha41
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 +1 -4
- package/dist/rc-calendar.js.map +1 -1
- package/dist/rc-calendar.min.js +1 -1
- package/es/Picker.js +0 -2
- package/es/date/DateInput.js +1 -4
- package/lib/Picker.js +0 -2
- package/lib/date/DateInput.js +1 -4
- package/package.json +1 -1
package/dist/rc-calendar.js
CHANGED
@@ -7454,7 +7454,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
7454
7454
|
|
7455
7455
|
var parts = Object(__WEBPACK_IMPORTED_MODULE_9__util__["d" /* formatDateLocal */])(cananderStr, _this2.state.localeFormat);
|
7456
7456
|
// 没有内容,合法并直接退出
|
7457
|
-
if (!str) {
|
7457
|
+
if (!str || str.length === 0) {
|
7458
7458
|
onChange(null);
|
7459
7459
|
_this2.setState({ str: str });
|
7460
7460
|
return;
|
@@ -7484,8 +7484,6 @@ var _initialiseProps = function _initialiseProps() {
|
|
7484
7484
|
|
7485
7485
|
if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
|
7486
7486
|
_this2.setState({ str: str });
|
7487
|
-
// eslint-disable-next-line no-console
|
7488
|
-
console.log('value', value);
|
7489
7487
|
onChange(value);
|
7490
7488
|
}
|
7491
7489
|
};
|
@@ -7518,7 +7516,6 @@ var _initialiseProps = function _initialiseProps() {
|
|
7518
7516
|
if (keyCode === __WEBPACK_IMPORTED_MODULE_6_rc_util_es_KeyCode__["a" /* default */].ENTER && onSelect) {
|
7519
7517
|
var validateDate = !disabledDate || !disabledDate(value);
|
7520
7518
|
if (validateDate) {
|
7521
|
-
console.log('🍉', value.clone());
|
7522
7519
|
onSelect(value.clone());
|
7523
7520
|
}
|
7524
7521
|
event.preventDefault();
|