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