ant-design/components/date-picker/demo/range-picker.md
MadCcc 6776bb8916
docs: demo support react18 (#34843)
* 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
2022-04-03 23:27:45 +08:00

554 B

order title
1
zh-CN en-US
范围选择器 Range Picker

zh-CN

通过设置 picker 属性,指定范围选择器类型。

en-US

Set range picker type by picker prop.

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>
);