@seafile/seafile-calendar 0.0.29-alpha19 → 0.0.29-alpha29
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 +3 -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 +3 -0
- package/lib/Calendar.js +0 -1
- package/lib/Picker.js +2 -1
- package/lib/date/DateInput.js +3 -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,10 +7462,13 @@ 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]);
|
7472
7474
|
}
|