mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-29 03:48:26 +08:00
310 B
310 B
双滑块
- order: 4
设置 range
为 true
,将会渲染两个滑块。
import { Slider } from 'antd';
ReactDOM.render(
<div>
<Slider range defaultValue={[0, 30]} />
<Slider range step={10} value={[20, 50]} />
</div>
, document.getElementById('components-slider-demo-range'));