ant-design/components/slider/demo/range.md
2015-11-01 11:42:47 +08:00

19 lines
310 B
Markdown

# 双滑块
- order: 4
设置 `range``true`,将会渲染两个滑块。
---
````jsx
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'));
````