ant-design/components/slider/demo/range.md

19 lines
310 B
Markdown
Raw Normal View History

2015-10-30 14:09:15 +08:00
# 双滑块
- order: 4
2015-11-01 11:42:47 +08:00
设置 `range``true`,将会渲染两个滑块。
2015-10-30 14:09:15 +08:00
---
````jsx
import { Slider } from 'antd';
ReactDOM.render(
<div>
2015-11-01 11:42:47 +08:00
<Slider range defaultValue={[0, 30]} />
<Slider range step={10} value={[20, 50]} />
2015-10-30 14:09:15 +08:00
</div>
, document.getElementById('components-slider-demo-range'));
````