Skip to content

Commit

Permalink
add demo allowCross false && pushable true
Browse files Browse the repository at this point in the history
  • Loading branch information
paranoidjk committed Nov 3, 2017
1 parent 18d4fa3 commit 9bbc8b1
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions examples/range.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@ class ControlledRangeDisableAcross extends React.Component {
}
render() {
return (
<Range value={this.state.value} onChange={this.handleChange} allowCross={false} />
<Range
value={this.state.value}
onChange={this.handleChange}
allowCross={false}
{...this.props}
/>
);
}
}
Expand Down Expand Up @@ -174,9 +179,13 @@ ReactDOM.render(
<ControlledRange />
</div>
<div style={style}>
<p>Controlled Range, not allow across</p>
<ControlledRangeDisableAcross />
</div>
<p>Controlled Range, not allow across</p>
<ControlledRangeDisableAcross />
</div>
<div style={style}>
<p>Controlled Range, not allow across, pushable</p>
<ControlledRangeDisableAcross pushable/>
</div>
<div style={style}>
<p>Multi Range</p>
<Range count={3} defaultValue={[20, 40, 60, 80]} pushable />
Expand Down

0 comments on commit 9bbc8b1

Please sign in to comment.