rc-calendar
Advanced tools
Comparing version 9.0.3 to 9.0.4
@@ -223,12 +223,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, { | ||
@@ -235,0 +245,0 @@ format: this.getFormat(), |
@@ -268,12 +268,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'], { | ||
@@ -280,0 +290,0 @@ format: this.getFormat(), |
{ | ||
"name": "rc-calendar", | ||
"version": "9.0.3", | ||
"version": "9.0.4", | ||
"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
1417208
128
21988