mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 20:49:14 +08:00
Allow showHour can be overrided
This commit is contained in:
parent
523ad8c802
commit
8feed523d9
@ -120,15 +120,15 @@ abstract class TimePicker extends React.Component<TimePickerProps, any> {
|
||||
|
||||
return (
|
||||
<RcTimePicker
|
||||
showHour={format.indexOf('HH') > -1 || format.indexOf('h') > -1}
|
||||
showMinute={format.indexOf('mm') > -1}
|
||||
showSecond={format.indexOf('ss') > -1}
|
||||
{...props}
|
||||
ref={this.saveTimePicker}
|
||||
format={format}
|
||||
className={className}
|
||||
value={this.state.value}
|
||||
placeholder={props.placeholder === undefined ? this.getLocale().placeholder : props.placeholder}
|
||||
showHour={format.indexOf('HH') > -1 || format.indexOf('h') > -1}
|
||||
showMinute={format.indexOf('mm') > -1}
|
||||
showSecond={format.indexOf('ss') > -1}
|
||||
onChange={this.handleChange}
|
||||
onOpen={this.handleOpenClose}
|
||||
onClose={this.handleOpenClose}
|
||||
|
Loading…
Reference in New Issue
Block a user