mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-06 02:38:00 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
32 lines
554 B
Markdown
32 lines
554 B
Markdown
---
|
|
order: 1
|
|
title:
|
|
zh-CN: 范围选择器
|
|
en-US: Range Picker
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
通过设置 `picker` 属性,指定范围选择器类型。
|
|
|
|
## en-US
|
|
|
|
Set range picker type by `picker` prop.
|
|
|
|
```jsx
|
|
import { DatePicker, Space } from 'antd';
|
|
|
|
const { RangePicker } = DatePicker;
|
|
|
|
export default () => (
|
|
<Space direction="vertical" size={12}>
|
|
<RangePicker />
|
|
<RangePicker showTime />
|
|
<RangePicker picker="week" />
|
|
<RangePicker picker="month" />
|
|
<RangePicker picker="quarter" />
|
|
<RangePicker picker="year" />
|
|
</Space>
|
|
);
|
|
```
|