diff --git a/src/Slider.jsx b/src/Slider.jsx index a81f3d9..2a23a94 100644 --- a/src/Slider.jsx +++ b/src/Slider.jsx @@ -308,7 +308,7 @@ class Slider extends React.Component { render() { const {handle, upperBound, lowerBound} = this.state; const props = this.props; - const {className, prefixCls, disabled, included, isIncluded, dots, withDots, range} = props; + const {className, prefixCls, disabled, included, isIncluded, dots, range} = props; const {marks, step, max, min, tipTransitionName, children} = props; const marksLen = marks.length; @@ -341,7 +341,7 @@ class Slider extends React.Component { const upperIndex = this.getIndex(upperBound); let steps = null; - if (marksLen > 0 || (step > 1 && (dots || withDots))) { + if (marksLen > 0 || (step > 1 && dots)) { const stepsClassName = prefixCls + '-step'; const stepNum = marksLen > 0 ? marksLen : Math.floor((max - min) / step) + 1; steps = (