diff --git a/HISTORY.md b/HISTORY.md index f47f001..79d0957 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,7 +1,7 @@ # History ---- -## 3.5.2 / 2016-04-01 +## 3.6.0 / 2016-04-01 [#18](https://github.com/react-component/slider/issues/18) add `vertical` props ([@wnlee](https://github.com/WNLee)) diff --git a/assets/index.less b/assets/index.less index 6da4b28..bdde24d 100644 --- a/assets/index.less +++ b/assets/index.less @@ -133,7 +133,7 @@ } } -.rc-slider-vertical { +.@{prefixClass}-vertical { width: 4px; height: 100%; .@{prefixClass} { diff --git a/examples/v-marks.js b/examples/v-marks.js index 05358c6..1cd8f7c 100644 --- a/examples/v-marks.js +++ b/examples/v-marks.js @@ -4,7 +4,9 @@ const React = require('react'); const ReactDOM = require('react-dom'); const Slider = require('rc-slider'); -const style = {height: 400, marginBottom: 50, marginLeft: 50}; +const style = {float: 'left', 'marginBottom': 20, width: 160, height: 400, marginBottom: 160, marginLeft: 50}; +const parentStyle = {overflow: 'hidden'}; + const marks = { '-10': '-10°C', 0: 0°C, @@ -24,29 +26,29 @@ function log(value) { } ReactDOM.render( -
Slider with marks, `step=null`
+Slider with marks, `step=null`
Slider with marks and steps
Slider with marks and steps
Slider with marks, `included=false`
Slider with marks, `included=false`
Slider with marks and steps, `included=false`
Slider with marks and steps, `included=false`
Range with marks
Range with marks
Range with marks and steps
Range with marks and steps
Basic Range,`allowCross=false`
+Basic Range,`allowCross=false`
Basic Range,`step=20`
Basic Range,`step=20`
Basic Range,`step=20, dots`
Basic Range,`step=20, dots`
Controlled Range
Controlled Range
Customized Range
Customized Range
Range with dynamic `max` `min`
Range with dynamic `max` `min`
Slider with dynamic `min` `max`
+Basic Slider
+Basic Slider
Basic Slider,`step=20`
Basic Slider,`step=20`
Basic Slider,`step=20, dots`
Basic Slider,`step=20, dots`
Basic Slider with `tipFormatter`
Basic Slider with `tipFormatter`
Basic Slider without tooltip
Basic Slider without tooltip
Controlled Slider
Controlled Slider
Customized Slider
Customized Slider
Slider with dynamic `min` `max`