docs: add MonthPicker disableDate demo

This commit is contained in:
Benjy Cui 2017-05-15 16:18:08 +08:00
parent 12a6060304
commit 555dbb9b29

View File

@ -15,7 +15,7 @@ Disabled part of dates and time by `disabledDate` and `disabledTime` respectivel
````jsx
import { DatePicker } from 'antd';
const RangePicker = DatePicker.RangePicker;
const { MonthPicker, RangePicker } = DatePicker;
function range(start, end) {
const result = [];
@ -62,6 +62,8 @@ ReactDOM.render(
showTime
/>
<br />
<MonthPicker disabledDate={disabledDate} placeholder="Select month" />
<br />
<RangePicker
disabledDate={disabledDate}
disabledTime={disabledRangeTime}