@seafile/seafile-calendar 0.0.98 → 0.0.888
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 +11 -8
- package/dist/rc-calendar.js.map +1 -1
- package/dist/rc-calendar.min.js +1 -1
- package/es/Calendar.js +3 -3
- package/es/date/DateInput.js +8 -5
- package/lib/Calendar.js +3 -3
- package/lib/date/DateInput.js +8 -5
- package/package.json +1 -1
package/dist/rc-calendar.js
CHANGED
|
@@ -2836,9 +2836,9 @@ var Calendar = function (_React$Component) {
|
|
|
2836
2836
|
timePickerEle = __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(timePicker, timePickerProps);
|
|
2837
2837
|
}
|
|
2838
2838
|
var calendarInputPlaceholder = dateInputPlaceholder || (Array.isArray(this.getFormat()) ? this.getFormat()[0] : this.getFormat());
|
|
2839
|
-
|
|
2839
|
+
var inputFormat = Array.isArray(this.getFormat()) ? this.getFormat()[0] : this.getFormat();
|
|
2840
2840
|
var dateInputElement = props.showDateInput ? __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_16__date_DateInput__["a" /* default */], {
|
|
2841
|
-
format:
|
|
2841
|
+
format: inputFormat,
|
|
2842
2842
|
key: 'date-input',
|
|
2843
2843
|
value: value,
|
|
2844
2844
|
locale: locale,
|
|
@@ -2937,7 +2937,7 @@ var Calendar = function (_React$Component) {
|
|
|
2937
2937
|
onSelect: this.onDateTableSelect,
|
|
2938
2938
|
onClickRightPanelTime: onClickRightPanelTime,
|
|
2939
2939
|
defaultMinutesTime: this.props.defaultMinutesTime,
|
|
2940
|
-
format:
|
|
2940
|
+
format: inputFormat
|
|
2941
2941
|
})
|
|
2942
2942
|
)
|
|
2943
2943
|
));
|
|
@@ -7419,7 +7419,10 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
7419
7419
|
shouldDisplayCurrent = _props.shouldDisplayCurrent;
|
|
7420
7420
|
// 没有内容,合法并直接退出
|
|
7421
7421
|
|
|
7422
|
-
|
|
7422
|
+
console.log('str', str);
|
|
7423
|
+
console.log('calendarStr', calendarStr);
|
|
7424
|
+
|
|
7425
|
+
if (!str) {
|
|
7423
7426
|
console.log('没有内容,合法并直接退出');
|
|
7424
7427
|
if (shouldDisplayCurrent) {
|
|
7425
7428
|
_this2.setState({ str: '' });
|
|
@@ -7433,10 +7436,10 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
7433
7436
|
var value = _this2.props.value.clone();
|
|
7434
7437
|
value = value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
|
|
7435
7438
|
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
7439
|
+
if (!value || disabledDate && disabledDate(value)) {
|
|
7440
|
+
_this2.setState({ str: str });
|
|
7441
|
+
return;
|
|
7442
|
+
}
|
|
7440
7443
|
|
|
7441
7444
|
if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
|
|
7442
7445
|
_this2.setState({ str: str });
|