修复Demo无效的BUG

DatePicker的onSelect接口变更为onChange。
This commit is contained in:
shouyong 2016-01-01 10:35:11 +08:00
parent 2ca31c7cac
commit 803a8d4ccc

View File

@ -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>;
}