You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
527 B
36 lines
527 B
5 years ago
|
---
|
||
|
order: 1
|
||
|
title:
|
||
|
zh-CN: 范围选择器
|
||
|
en-US: Range Picker
|
||
|
---
|
||
|
|
||
|
## zh-CN
|
||
|
|
||
|
通过设置 `picker` 属性,指定范围选择器类型。
|
||
|
|
||
|
## en-US
|
||
|
|
||
|
Set range picker type by `picker` prop.
|
||
|
|
||
|
```jsx
|
||
|
import { DatePicker } from 'antd';
|
||
|
|
||
|
const { RangePicker } = DatePicker;
|
||
|
|
||
|
ReactDOM.render(
|
||
|
<div>
|
||
|
<RangePicker />
|
||
|
<br />
|
||
|
<RangePicker showTime />
|
||
|
<br />
|
||
|
<RangePicker picker="week" />
|
||
|
<br />
|
||
|
<RangePicker picker="month" />
|
||
|
<br />
|
||
|
<RangePicker picker="year" />
|
||
|
</div>,
|
||
|
mountNode,
|
||
|
);
|
||
|
```
|