|
|
|
@ -24,7 +24,7 @@ function createPicker(TheCalendar, defaultFormat) {
|
|
|
|
|
align: {
|
|
|
|
|
offset: [0, -9],
|
|
|
|
|
},
|
|
|
|
|
open: false
|
|
|
|
|
open: false,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
getInitialState() {
|
|
|
|
@ -42,9 +42,7 @@ function createPicker(TheCalendar, defaultFormat) {
|
|
|
|
|
},
|
|
|
|
|
handleChange(value) {
|
|
|
|
|
if (!('value' in this.props)) {
|
|
|
|
|
this.setState({
|
|
|
|
|
value,
|
|
|
|
|
});
|
|
|
|
|
this.setState({ value });
|
|
|
|
|
}
|
|
|
|
|
const timeValue = value ? new Date(value.getTime()) : null;
|
|
|
|
|
this.props.onChange(timeValue);
|
|
|
|
@ -97,8 +95,7 @@ function createPicker(TheCalendar, defaultFormat) {
|
|
|
|
|
dateInputPlaceholder={placeholder}
|
|
|
|
|
prefixCls="ant-calendar"
|
|
|
|
|
className={calendarClassName}
|
|
|
|
|
{...calendarHandler}
|
|
|
|
|
showClear/>
|
|
|
|
|
{...calendarHandler} />
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
let sizeClass = '';
|
|
|
|
|