From 8feed523d93c99d68b38d8e806350fcfd6a61e01 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 16 May 2017 15:33:01 +0800 Subject: [PATCH] Allow showHour can be overrided --- components/time-picker/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/time-picker/index.tsx b/components/time-picker/index.tsx index 41e6a7419f..f46a8f6718 100644 --- a/components/time-picker/index.tsx +++ b/components/time-picker/index.tsx @@ -120,15 +120,15 @@ abstract class TimePicker extends React.Component { return ( -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}