This commit is contained in:
afc163 2015-08-03 17:39:29 +08:00
parent babcb6ac8c
commit ad2e78ce80

View File

@ -69,12 +69,14 @@ export default React.createClass({
disabled={this.props.disabled} disabled={this.props.disabled}
trigger={<span className="ant-calendar-picker-icon" />} trigger={<span className="ant-calendar-picker-icon" />}
calendar={calendar} calendar={calendar}
adjustOrientOnCalendarOverflow={false} adjustOrientOnCalendarOverflow={true}
formatter={new DateTimeFormat(this.props.format)} formatter={new DateTimeFormat(this.props.format)}
value={this.state.value} value={this.state.value}
prefixCls="ant-calendar-picker" prefixCls="ant-calendar-picker"
onChange={this.handleChange}> onChange={this.handleChange}>
<input placeholder={this.props.placeholder} className={'ant-calendar-picker-input ant-input ant-input-' + this.props.size}/> <input
placeholder={this.props.placeholder}
className={'ant-calendar-picker-input ant-input ant-input-' + this.props.size}/>
</Datepicker> </Datepicker>
); );
} }