mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
docs: update demo of slider
This commit is contained in:
parent
2a57a4af27
commit
d8c6eccaea
@ -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} />
|
||||
|
Loading…
Reference in New Issue
Block a user