mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 09:39:10 +08:00
562 B
562 B
order | title | ||||
---|---|---|---|---|---|
1 |
|
zh-CN
通过设置 picker
属性,指定范围选择器类型。
en-US
Set range picker type by picker
prop.
import { DatePicker, Space } from 'antd';
const { RangePicker } = DatePicker;
ReactDOM.render(
<Space direction="vertical" size={12}>
<RangePicker />
<RangePicker showTime />
<RangePicker picker="week" />
<RangePicker picker="month" />
<RangePicker picker="quarter" />
<RangePicker picker="year" />
</Space>,
mountNode,
);