diff options
Diffstat (limited to 'src/TimePicker.jsx')
-rw-r--r-- | src/TimePicker.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index e3c5a79..7659bc7 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx | |||
@@ -18,6 +18,7 @@ export default class Picker extends Component { | |||
18 | clearText: PropTypes.string, | 18 | clearText: PropTypes.string, |
19 | value: PropTypes.object, | 19 | value: PropTypes.object, |
20 | defaultOpenValue: PropTypes.object, | 20 | defaultOpenValue: PropTypes.object, |
21 | inputReadOnly: PropTypes.bool, | ||
21 | disabled: PropTypes.bool, | 22 | disabled: PropTypes.bool, |
22 | allowEmpty: PropTypes.bool, | 23 | allowEmpty: PropTypes.bool, |
23 | defaultValue: PropTypes.object, | 24 | defaultValue: PropTypes.object, |
@@ -60,6 +61,7 @@ export default class Picker extends Component { | |||
60 | clearText: 'clear', | 61 | clearText: 'clear', |
61 | prefixCls: 'rc-time-picker', | 62 | prefixCls: 'rc-time-picker', |
62 | defaultOpen: false, | 63 | defaultOpen: false, |
64 | inputReadOnly: false, | ||
63 | style: {}, | 65 | style: {}, |
64 | className: '', | 66 | className: '', |
65 | popupClassName: '', | 67 | popupClassName: '', |
@@ -167,7 +169,7 @@ export default class Picker extends Component { | |||
167 | getPanelElement() { | 169 | getPanelElement() { |
168 | const { | 170 | const { |
169 | prefixCls, placeholder, disabledHours, | 171 | prefixCls, placeholder, disabledHours, |
170 | disabledMinutes, disabledSeconds, hideDisabledOptions, | 172 | disabledMinutes, disabledSeconds, hideDisabledOptions, inputReadOnly, |
171 | allowEmpty, showHour, showMinute, showSecond, defaultOpenValue, clearText, | 173 | allowEmpty, showHour, showMinute, showSecond, defaultOpenValue, clearText, |
172 | addon, use12Hours, focusOnOpen, onKeyDown, hourStep, minuteStep, secondStep, | 174 | addon, use12Hours, focusOnOpen, onKeyDown, hourStep, minuteStep, secondStep, |
173 | } = this.props; | 175 | } = this.props; |
@@ -177,6 +179,7 @@ export default class Picker extends Component { | |||
177 | prefixCls={`${prefixCls}-panel`} | 179 | prefixCls={`${prefixCls}-panel`} |
178 | ref={this.savePanelRef} | 180 | ref={this.savePanelRef} |
179 | value={this.state.value} | 181 | value={this.state.value} |
182 | inputReadOnly={inputReadOnly} | ||
180 | onChange={this.onPanelChange} | 183 | onChange={this.onPanelChange} |
181 | onClear={this.onPanelClear} | 184 | onClear={this.onPanelClear} |
182 | defaultOpenValue={defaultOpenValue} | 185 | defaultOpenValue={defaultOpenValue} |