Correct date-picker demo

This commit is contained in:
ztplz 2018-11-26 20:58:56 +08:00 committed by 偏右
parent 4abc2824e4
commit 8e7da2a480

View File

@ -27,12 +27,12 @@ function onChange(dates, dateStrings) {
ReactDOM.render( ReactDOM.render(
<div> <div>
<RangePicker <RangePicker
ranges={{ Today: [moment(), moment()], 'This Month': [moment(), moment().endOf('month')] }} ranges={{ Today: [moment(), moment()], 'This Month': [moment().startOf('month'), moment().endOf('month')] }}
onChange={onChange} onChange={onChange}
/> />
<br /> <br />
<RangePicker <RangePicker
ranges={{ Today: [moment(), moment()], 'This Month': [moment(), moment().endOf('month')] }} ranges={{ Today: [moment(), moment()], 'This Month': [moment().startOf('month'), moment().endOf('month')] }}
showTime showTime
format="YYYY/MM/DD HH:mm:ss" format="YYYY/MM/DD HH:mm:ss"
onChange={onChange} onChange={onChange}