@seafile/seafile-calendar 0.0.29-alpha19 → 0.0.29-alpha31
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 +7 -1
- package/dist/rc-calendar.js.map +1 -1
- package/dist/rc-calendar.min.js +1 -1
- package/es/Calendar.js +0 -1
- package/es/Picker.js +2 -1
- package/es/date/DateInput.js +7 -0
- package/lib/Calendar.js +0 -1
- package/lib/Picker.js +2 -1
- package/lib/date/DateInput.js +7 -0
- package/package.json +1 -1
package/dist/rc-calendar.js
CHANGED
@@ -3109,7 +3109,6 @@ var _initialiseProps = function _initialiseProps() {
|
|
3109
3109
|
};
|
3110
3110
|
|
3111
3111
|
this.onDateInputChange = function (value) {
|
3112
|
-
console.log('onDateInputChange', value);
|
3113
3112
|
_this2.onSelect(value, {
|
3114
3113
|
source: 'dateInput'
|
3115
3114
|
});
|
@@ -7463,12 +7462,17 @@ var _initialiseProps = function _initialiseProps() {
|
|
7463
7462
|
// 不合法直接退出
|
7464
7463
|
var format = Object(__WEBPACK_IMPORTED_MODULE_9__util__["e" /* getDateFormatByStr */])(cananderStr, _this2.state.localeFormat);
|
7465
7464
|
var parsed = __WEBPACK_IMPORTED_MODULE_8_dayjs___default()(cananderStr, format);
|
7465
|
+
// eslint-disable-next-line no-console
|
7466
|
+
console.log('cananderStr', cananderStr, format, parts); // eslint-disable-next-line no-console
|
7466
7467
|
var value = _this2.props.value.clone();
|
7467
7468
|
value = value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
|
7468
7469
|
|
7469
7470
|
if (_this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].ISO || _this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].ISOAndTime) {
|
7471
|
+
console.log('ISO format');
|
7470
7472
|
if (parts[0] && parts[0].length === 4 && (parts[0].slice(0, 3) === '000' || parts[0].slice(0, 2) === '00')) {
|
7471
7473
|
value.year(parts[0]);
|
7474
|
+
// eslint-disable-next-line no-console
|
7475
|
+
console.log('ISO format year', value);
|
7472
7476
|
}
|
7473
7477
|
}
|
7474
7478
|
if (_this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].European || _this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].EuropeanAndTime || _this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].US || _this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].USAndTime || _this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].Germany_Russia_etc || _this2.state.localeFormat === __WEBPACK_IMPORTED_MODULE_9__util__["a" /* DATE_FORMATS */].Germany_Russia_etcAndTime) {
|
@@ -7483,6 +7487,8 @@ var _initialiseProps = function _initialiseProps() {
|
|
7483
7487
|
|
7484
7488
|
if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
|
7485
7489
|
_this2.setState({ str: str });
|
7490
|
+
// eslint-disable-next-line no-console
|
7491
|
+
console.log('value', value);
|
7486
7492
|
onChange(value);
|
7487
7493
|
}
|
7488
7494
|
};
|