upgrade datepicker

This commit is contained in:
afc163 2015-10-22 17:16:02 +08:00
parent 9df0cd44c4
commit 75eefe533c
4 changed files with 5 additions and 3 deletions

View File

@ -10,6 +10,6 @@
var Datepicker = antd.Datepicker;
ReactDOM.render(
<Datepicker value="2015-06-06" disabled={true} />
<Datepicker defaultValue="2015-06-06" disabled={true} />
, document.getElementById('components-datepicker-demo-disabled'));
````

View File

@ -10,6 +10,6 @@
var Datepicker = antd.Datepicker;
ReactDOM.render(
<Datepicker value="2015/01/01" format="yyyy/MM/dd" />
<Datepicker defaultValue="2015/01/01" format="yyyy/MM/dd" />
, document.getElementById('components-datepicker-demo-formatter'));
````

View File

@ -56,6 +56,7 @@ function createPicker(TheCalendar) {
} //onChangeValidator
};
},
handleInputChange() {},
handleChange(v) {
this.setState({
value: v
@ -106,6 +107,7 @@ function createPicker(TheCalendar) {
({value}) => {
return ([<input
disabled={this.props.disabled}
onChange={this.handleInputChange}
value={value && this.getFormatter().format(value)}
placeholder={this.props.placeholder}
className={'ant-calendar-picker-input ant-input' + sizeClass}/>,

View File

@ -39,7 +39,7 @@
"gregorian-calendar-format": "~3.0.1",
"object-assign": "~4.0.1",
"rc-animate": "~1.2.9",
"rc-calendar": "4.0.0-alpha5",
"rc-calendar": "4.0.0-alpha6",
"rc-checkbox": "~1.1.1",
"rc-collapse": "~1.3.0",
"rc-dialog": "~5.1.0",