feat: allow user set step to null to make marks as steps

This commit is contained in:
Benjy Cui
2015-11-19 11:42:04 +08:00
parent 6f39212df5
commit 0a23a67f31
2 changed files with 6 additions and 11 deletions
+3 -3
View File
@@ -22,11 +22,11 @@ var log = function(value) {
ReactDOM.render(
<div>
<div style={style}>
<p>Slider with marks, `included=true`</p>
<Slider min={-10} marks={marks} onChange={log} defaultValue={20} />
<p>Slider with marks, `step=null`</p>
<Slider min={-10} marks={marks} step={null} onChange={log} defaultValue={20} />
</div>
<div style={style}>
<p>Slider with marks and steps, `included=true`</p>
<p>Slider with marks and steps</p>
<Slider min={-10} marks={marks} step={10} onChange={log} defaultValue={20} />
</div>