@seafile/seafile-calendar 0.0.31-Apph0.62 → 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 +5 -15
- package/dist/rc-calendar.js.map +1 -1
- package/dist/rc-calendar.min.js +1 -1
- package/es/Calendar.js +3 -6
- package/es/Picker.js +0 -1
- package/es/date/DateInput.js +2 -9
- package/lib/Calendar.js +3 -6
- package/lib/Picker.js +0 -1
- package/lib/date/DateInput.js +2 -9
- 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,
|
@@ -7399,8 +7396,7 @@ DateInput.propTypes = {
|
|
7399
7396
|
selectedValue: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,
|
7400
7397
|
clearIcon: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node,
|
7401
7398
|
inputMode: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,
|
7402
|
-
shouldDisplayCurrent: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool
|
7403
|
-
openValue: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object
|
7399
|
+
shouldDisplayCurrent: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool
|
7404
7400
|
};
|
7405
7401
|
|
7406
7402
|
var _initialiseProps = function _initialiseProps() {
|
@@ -7419,16 +7415,10 @@ var _initialiseProps = function _initialiseProps() {
|
|
7419
7415
|
format = _props.format,
|
7420
7416
|
onChange = _props.onChange,
|
7421
7417
|
selectedValue = _props.selectedValue,
|
7422
|
-
shouldDisplayCurrent = _props.shouldDisplayCurrent
|
7423
|
-
openValue = _props.openValue;
|
7418
|
+
shouldDisplayCurrent = _props.shouldDisplayCurrent;
|
7424
7419
|
// 没有内容,合法并直接退出
|
7425
7420
|
|
7426
7421
|
if (!str || !calendarStr) {
|
7427
|
-
if (shouldDisplayCurrent) {
|
7428
|
-
_this2.setState({ str: '' });
|
7429
|
-
_this2.props.onClear(openValue);
|
7430
|
-
return;
|
7431
|
-
}
|
7432
7422
|
_this2.onClear();
|
7433
7423
|
return;
|
7434
7424
|
}
|