mirror of
https://github.com/wassname/slider.git
synced 2026-09-11 12:42:49 +08:00
feat: allow user set step to null to make marks as steps
This commit is contained in:
+3
-3
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user