mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 05:29:37 +08:00
upgrade datepicker
This commit is contained in:
parent
9df0cd44c4
commit
75eefe533c
@ -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'));
|
||||
````
|
||||
|
@ -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'));
|
||||
````
|
||||
|
@ -56,6 +56,7 @@ function createPicker(TheCalendar) {
|
||||
} //onChange可用于Validator
|
||||
};
|
||||
},
|
||||
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}/>,
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user