@seafile/seafile-calendar 0.0.31-Apph0.56 → 0.0.31-Apph0.57
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 -6
- package/dist/rc-calendar.js.map +1 -1
- package/dist/rc-calendar.min.js +1 -1
- package/es/Calendar.js +6 -3
- package/es/Picker.js +1 -0
- package/es/date/DateInput.js +5 -3
- package/lib/Calendar.js +6 -3
- package/lib/Picker.js +1 -0
- package/lib/date/DateInput.js +5 -3
- package/package.json +1 -1
package/dist/rc-calendar.js
CHANGED
@@ -2807,7 +2807,8 @@ var Calendar = function (_React$Component) {
|
|
2807
2807
|
showHourAndMinute = props.showHourAndMinute,
|
2808
2808
|
firstDayOfWeek = props.firstDayOfWeek,
|
2809
2809
|
showWeekNumber = props.showWeekNumber,
|
2810
|
-
shouldDisplayCurrent = props.shouldDisplayCurrent
|
2810
|
+
shouldDisplayCurrent = props.shouldDisplayCurrent,
|
2811
|
+
openValue = props.openValue;
|
2811
2812
|
var value = state.value,
|
2812
2813
|
selectedValue = state.selectedValue,
|
2813
2814
|
mode = state.mode,
|
@@ -2853,7 +2854,8 @@ var Calendar = function (_React$Component) {
|
|
2853
2854
|
onChange: this.onDateInputChange,
|
2854
2855
|
onSelect: this.onDateInputSelect,
|
2855
2856
|
clearIcon: clearIcon,
|
2856
|
-
inputMode: inputMode
|
2857
|
+
inputMode: inputMode,
|
2858
|
+
openValue: openValue
|
2857
2859
|
}) : null;
|
2858
2860
|
|
2859
2861
|
var children = [];
|
@@ -2986,7 +2988,8 @@ Calendar.propTypes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__
|
|
2986
2988
|
onBlur: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
|
2987
2989
|
onClickRightPanelTime: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
|
2988
2990
|
firstDayOfWeek: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
|
2989
|
-
shouldDisplayCurrent: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool
|
2991
|
+
shouldDisplayCurrent: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
|
2992
|
+
openValue: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object
|
2990
2993
|
});
|
2991
2994
|
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 */], {
|
2992
2995
|
showToday: true,
|
@@ -7396,7 +7399,8 @@ DateInput.propTypes = {
|
|
7396
7399
|
selectedValue: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,
|
7397
7400
|
clearIcon: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node,
|
7398
7401
|
inputMode: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,
|
7399
|
-
shouldDisplayCurrent: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool
|
7402
|
+
shouldDisplayCurrent: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,
|
7403
|
+
openValue: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object
|
7400
7404
|
};
|
7401
7405
|
|
7402
7406
|
var _initialiseProps = function _initialiseProps() {
|
@@ -7416,12 +7420,13 @@ var _initialiseProps = function _initialiseProps() {
|
|
7416
7420
|
onChange = _props.onChange,
|
7417
7421
|
selectedValue = _props.selectedValue,
|
7418
7422
|
shouldDisplayCurrent = _props.shouldDisplayCurrent;
|
7419
|
-
// 没有内容,合法并直接退出
|
7420
7423
|
|
7424
|
+
console.log('openValue', openValue);
|
7425
|
+
// 没有内容,合法并直接退出
|
7421
7426
|
if (!str || !calendarStr) {
|
7422
7427
|
if (shouldDisplayCurrent) {
|
7423
7428
|
_this2.setState({ str: '' });
|
7424
|
-
onChange(
|
7429
|
+
onChange(openValue);
|
7425
7430
|
return;
|
7426
7431
|
}
|
7427
7432
|
_this2.onClear();
|