mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
修复Demo无效的BUG
DatePicker的onSelect接口变更为onChange。
This commit is contained in:
parent
2ca31c7cac
commit
803a8d4ccc
@ -63,7 +63,7 @@ const App = React.createClass({
|
||||
},
|
||||
render() {
|
||||
return <div style={{width: 400, margin: '100px auto'}}>
|
||||
<DatePicker onSelect={this.handleChange} />
|
||||
<DatePicker onChange={this.handleChange} />
|
||||
<div style={{marginTop: 20}}>当前日期:{this.state.date.toString()}</div>
|
||||
</div>;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user