@seafile/seafile-calendar 0.0.31-Apph0.61 → 0.0.31-Apph0.63
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 +8 -23
- package/dist/rc-calendar.js.map +1 -1
- package/dist/rc-calendar.min.js +1 -1
- package/es/Calendar.js +5 -12
- package/es/Picker.js +0 -1
- package/es/date/DateInput.js +3 -11
- package/lib/Calendar.js +5 -12
- package/lib/Picker.js +0 -1
- package/lib/date/DateInput.js +3 -11
- package/package.json +1 -1
package/dist/rc-calendar.js
CHANGED
@@ -2807,8 +2807,7 @@ var Calendar = function (_React$Component) {
|
|
2807
2807
|
showHourAndMinute = props.showHourAndMinute,
|
2808
2808
|
firstDayOfWeek = props.firstDayOfWeek,
|
2809
2809
|
showWeekNumber = props.showWeekNumber,
|
2810
|
-
shouldDisplayCurrent = props.shouldDisplayCurrent
|
2811
|
-
openValue = props.openValue;
|
2810
|
+
shouldDisplayCurrent = props.shouldDisplayCurrent;
|
2812
2811
|
var value = state.value,
|
2813
2812
|
selectedValue = state.selectedValue,
|
2814
2813
|
mode = state.mode,
|
@@ -2854,8 +2853,7 @@ var Calendar = function (_React$Component) {
|
|
2854
2853
|
onChange: this.onDateInputChange,
|
2855
2854
|
onSelect: this.onDateInputSelect,
|
2856
2855
|
clearIcon: clearIcon,
|
2857
|
-
inputMode: inputMode
|
2858
|
-
openValue: openValue
|
2856
|
+
inputMode: inputMode
|
2859
2857
|
}) : null;
|
2860
2858
|
|
2861
2859
|
var children = [];
|
@@ -2988,8 +2986,7 @@ Calendar.propTypes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__
|
|
2988
2986
|
onBlur: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
|
2989
2987
|
onClickRightPanelTime: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
|
2990
2988
|
firstDayOfWeek: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
|
2991
|
-
shouldDisplayCurrent: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool
|
2992
|
-
openValue: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object
|
2989
|
+
shouldDisplayCurrent: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool
|
2993
2990
|
});
|
2994
2991
|
Calendar.defaultProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_14__mixin_CalendarMixin__["a" /* calendarMixinDefaultProps */], __WEBPACK_IMPORTED_MODULE_15__mixin_CommonMixin__["b" /* defaultProp */], {
|
2995
2992
|
showToday: true,
|
@@ -3081,12 +3078,8 @@ var _initialiseProps = function _initialiseProps() {
|
|
3081
3078
|
}
|
3082
3079
|
};
|
3083
3080
|
|
3084
|
-
this.onClear = function (
|
3085
|
-
|
3086
|
-
_this2.onSelect(value || __WEBPACK_IMPORTED_MODULE_9_dayjs___default()());
|
3087
|
-
} else {
|
3088
|
-
_this2.onSelect(null);
|
3089
|
-
}
|
3081
|
+
this.onClear = function () {
|
3082
|
+
_this2.onSelect(null);
|
3090
3083
|
_this2.props.onClear();
|
3091
3084
|
_this2.setState({ currentStatus: 1 });
|
3092
3085
|
};
|
@@ -7403,8 +7396,7 @@ DateInput.propTypes = {
|
|
7403
7396
|
selectedValue: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,
|
7404
7397
|
clearIcon: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node,
|
7405
7398
|
inputMode: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,
|
7406
|
-
shouldDisplayCurrent: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool
|
7407
|
-
openValue: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object
|
7399
|
+
shouldDisplayCurrent: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool
|
7408
7400
|
};
|
7409
7401
|
|
7410
7402
|
var _initialiseProps = function _initialiseProps() {
|
@@ -7423,17 +7415,10 @@ var _initialiseProps = function _initialiseProps() {
|
|
7423
7415
|
format = _props.format,
|
7424
7416
|
onChange = _props.onChange,
|
7425
7417
|
selectedValue = _props.selectedValue,
|
7426
|
-
shouldDisplayCurrent = _props.shouldDisplayCurrent
|
7427
|
-
openValue = _props.openValue;
|
7428
|
-
|
7429
|
-
console.log('openValue', openValue);
|
7418
|
+
shouldDisplayCurrent = _props.shouldDisplayCurrent;
|
7430
7419
|
// 没有内容,合法并直接退出
|
7420
|
+
|
7431
7421
|
if (!str || !calendarStr) {
|
7432
|
-
if (shouldDisplayCurrent) {
|
7433
|
-
_this2.setState({ str: '' });
|
7434
|
-
_this2.props.onClear(openValue, shouldDisplayCurrent);
|
7435
|
-
return;
|
7436
|
-
}
|
7437
7422
|
_this2.onClear();
|
7438
7423
|
return;
|
7439
7424
|
}
|