getInitialState() {
return {
value: this.props.value,
+ selectionRange: [],
};
},
this.props.onClear();
},
+ onCurrentSelectPanelChange(currentSelectPanel) {
+ this.setState({ currentSelectPanel });
+ },
+
render() {
const { locale, prefixCls, placeholder, hourOptions, minuteOptions, secondOptions, allowEmpty, showHour, showSecond, formatter, gregorianCalendarLocale } = this.props;
const value = this.state.value;
gregorianCalendarLocale={gregorianCalendarLocale}
locale={locale}
value={value}
+ currentSelectPanel={this.state.currentSelectPanel}
onEsc={this.props.onEsc}
formatter={formatter}
placeholder={placeholder}
hourOptions={hourOptions}
minuteOptions={minuteOptions}
secondOptions={secondOptions}
+ onCurrentSelectPanelChange={this.onCurrentSelectPanelChange}
/>
</div>
);