docs: update demo of slider

This commit is contained in:
Benjy Cui 2016-09-14 14:45:01 +08:00
parent 2a57a4af27
commit d8c6eccaea

View File

@ -33,12 +33,12 @@ const marks = {
ReactDOM.render(
<div>
<p>包含关系</p>
<p>`included=true`</p>
<Slider marks={marks} defaultValue={37} />
<Slider range marks={marks} defaultValue={[26, 37]} />
<p>并列关系</p>
<p>`included=false`</p>
<Slider marks={marks} included={false} defaultValue={37} />
<p>结合 step</p>
<p>`marks && step`</p>
<Slider marks={marks} step={10} defaultValue={37} />
<p>`step=null`</p>
<Slider marks={marks} step={null} defaultValue={37} />