rc-calendar
Advanced tools
Comparing version 9.1.5 to 9.1.6
@@ -235,12 +235,22 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
var timePickerEle = timePicker && showTimePicker ? React.cloneElement(timePicker, _extends({ | ||
showHour: true, | ||
showSecond: true, | ||
showMinute: true | ||
}, timePicker.props, disabledTimeConfig, { | ||
onChange: this.onDateInputChange, | ||
defaultOpenValue: timePicker.props.defaultValue, | ||
value: selectedValue, | ||
disabledTime: disabledTime | ||
})) : null; | ||
var timePickerEle = null; | ||
if (timePicker && showTimePicker) { | ||
var timePickerProps = _extends({ | ||
showHour: true, | ||
showSecond: true, | ||
showMinute: true | ||
}, timePicker.props, disabledTimeConfig, { | ||
onChange: this.onDateInputChange, | ||
value: selectedValue, | ||
disabledTime: disabledTime | ||
}); | ||
if (timePicker.props.defaultValue !== undefined) { | ||
timePickerProps.defaultOpenValue = timePicker.props.defaultValue; | ||
} | ||
timePickerEle = React.cloneElement(timePicker, timePickerProps); | ||
} | ||
var dateInputElement = props.showDateInput ? React.createElement(DateInput, { | ||
@@ -247,0 +257,0 @@ format: this.getFormat(), |
@@ -280,12 +280,22 @@ 'use strict'; | ||
var timePickerEle = timePicker && showTimePicker ? _react2['default'].cloneElement(timePicker, (0, _extends3['default'])({ | ||
showHour: true, | ||
showSecond: true, | ||
showMinute: true | ||
}, timePicker.props, disabledTimeConfig, { | ||
onChange: this.onDateInputChange, | ||
defaultOpenValue: timePicker.props.defaultValue, | ||
value: selectedValue, | ||
disabledTime: disabledTime | ||
})) : null; | ||
var timePickerEle = null; | ||
if (timePicker && showTimePicker) { | ||
var timePickerProps = (0, _extends3['default'])({ | ||
showHour: true, | ||
showSecond: true, | ||
showMinute: true | ||
}, timePicker.props, disabledTimeConfig, { | ||
onChange: this.onDateInputChange, | ||
value: selectedValue, | ||
disabledTime: disabledTime | ||
}); | ||
if (timePicker.props.defaultValue !== undefined) { | ||
timePickerProps.defaultOpenValue = timePicker.props.defaultValue; | ||
} | ||
timePickerEle = _react2['default'].cloneElement(timePicker, timePickerProps); | ||
} | ||
var dateInputElement = props.showDateInput ? _react2['default'].createElement(_DateInput2['default'], { | ||
@@ -292,0 +302,0 @@ format: this.getFormat(), |
{ | ||
"name": "rc-calendar", | ||
"version": "9.1.5", | ||
"version": "9.1.6", | ||
"description": "React Calendar", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1418708
21973