mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
docs: add MonthPicker disableDate demo
This commit is contained in:
parent
12a6060304
commit
555dbb9b29
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user