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

30 lines
442 B
Markdown
Raw Normal View History

2015-07-13 08:00:31 +08:00
# 基本
- order: 0
基本滑动条
---
````jsx
var Slider = antd.Slider;
React.render(
2015-07-14 12:06:44 +08:00
<div className="sliderContainer">
2015-07-13 08:00:31 +08:00
<Slider />
2015-07-14 12:06:44 +08:00
<Slider value={65} disabled />
</div>
2015-07-13 08:00:31 +08:00
, document.getElementById('components-slider-demo-basic'));
````
2015-07-14 12:06:44 +08:00
<style>
/* .sliderContainer p {
margin-bottom: 10px;
}
.sliderContainer .ant-slider {
margin-bottom: 45px;
}
.sliderContainer .ant-slider:last-child {
margin-bottom: 0;
}*/
</style>