mirror of
https://github.com/wassname/slider.git
synced 2026-10-30 13:50:22 +08:00
feat: allow user set step to null to make marks as steps
This commit is contained in:
1 parent
6f39212df5
commit
0a23a67f31
2 files changed
+6
-11
No files matched your search
+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