rc-slider
Advanced tools
Comparing version 8.6.12 to 8.6.13
@@ -153,2 +153,10 @@ import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; | ||
this.document = this.sliderRef && this.sliderRef.ownerDocument; | ||
var _props = this.props, | ||
autoFocus = _props.autoFocus, | ||
disabled = _props.disabled; | ||
if (autoFocus && !disabled) { | ||
this.focus(); | ||
} | ||
} | ||
@@ -227,6 +235,6 @@ }, { | ||
value: function calcValue(offset) { | ||
var _props = this.props, | ||
vertical = _props.vertical, | ||
min = _props.min, | ||
max = _props.max; | ||
var _props2 = this.props, | ||
vertical = _props2.vertical, | ||
min = _props2.min, | ||
max = _props2.max; | ||
@@ -247,5 +255,5 @@ var ratio = Math.abs(Math.max(offset, 0) / this.getSliderLength()); | ||
value: function calcOffset(value) { | ||
var _props2 = this.props, | ||
min = _props2.min, | ||
max = _props2.max; | ||
var _props3 = this.props, | ||
min = _props3.min, | ||
max = _props3.max; | ||
@@ -265,19 +273,19 @@ var ratio = (value - min) / (max - min); | ||
var _props3 = this.props, | ||
prefixCls = _props3.prefixCls, | ||
className = _props3.className, | ||
marks = _props3.marks, | ||
dots = _props3.dots, | ||
step = _props3.step, | ||
included = _props3.included, | ||
disabled = _props3.disabled, | ||
vertical = _props3.vertical, | ||
min = _props3.min, | ||
max = _props3.max, | ||
children = _props3.children, | ||
maximumTrackStyle = _props3.maximumTrackStyle, | ||
style = _props3.style, | ||
railStyle = _props3.railStyle, | ||
dotStyle = _props3.dotStyle, | ||
activeDotStyle = _props3.activeDotStyle; | ||
var _props4 = this.props, | ||
prefixCls = _props4.prefixCls, | ||
className = _props4.className, | ||
marks = _props4.marks, | ||
dots = _props4.dots, | ||
step = _props4.step, | ||
included = _props4.included, | ||
disabled = _props4.disabled, | ||
vertical = _props4.vertical, | ||
min = _props4.min, | ||
max = _props4.max, | ||
children = _props4.children, | ||
maximumTrackStyle = _props4.maximumTrackStyle, | ||
style = _props4.style, | ||
railStyle = _props4.railStyle, | ||
dotStyle = _props4.dotStyle, | ||
activeDotStyle = _props4.activeDotStyle; | ||
@@ -284,0 +292,0 @@ var _get$call = _get(ComponentEnhancer.prototype.__proto__ || Object.getPrototypeOf(ComponentEnhancer.prototype), 'render', this).call(this), |
@@ -473,2 +473,3 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty'; | ||
Range.propTypes = { | ||
autoFocus: PropTypes.bool, | ||
defaultValue: PropTypes.arrayOf(PropTypes.number), | ||
@@ -475,0 +476,0 @@ value: PropTypes.arrayOf(PropTypes.number), |
@@ -47,13 +47,2 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
_createClass(Slider, [{ | ||
key: 'componentDidMount', | ||
value: function componentDidMount() { | ||
var _props = this.props, | ||
autoFocus = _props.autoFocus, | ||
disabled = _props.disabled; | ||
if (autoFocus && !disabled) { | ||
this.focus(); | ||
} | ||
} | ||
}, { | ||
key: 'componentWillReceiveProps', | ||
@@ -166,14 +155,14 @@ value: function componentWillReceiveProps(nextProps) { | ||
var _props2 = this.props, | ||
prefixCls = _props2.prefixCls, | ||
vertical = _props2.vertical, | ||
included = _props2.included, | ||
disabled = _props2.disabled, | ||
minimumTrackStyle = _props2.minimumTrackStyle, | ||
trackStyle = _props2.trackStyle, | ||
handleStyle = _props2.handleStyle, | ||
tabIndex = _props2.tabIndex, | ||
min = _props2.min, | ||
max = _props2.max, | ||
handleGenerator = _props2.handle; | ||
var _props = this.props, | ||
prefixCls = _props.prefixCls, | ||
vertical = _props.vertical, | ||
included = _props.included, | ||
disabled = _props.disabled, | ||
minimumTrackStyle = _props.minimumTrackStyle, | ||
trackStyle = _props.trackStyle, | ||
handleStyle = _props.handleStyle, | ||
tabIndex = _props.tabIndex, | ||
min = _props.min, | ||
max = _props.max, | ||
handleGenerator = _props.handle; | ||
var _state = this.state, | ||
@@ -180,0 +169,0 @@ value = _state.value, |
@@ -215,2 +215,10 @@ 'use strict'; | ||
this.document = this.sliderRef && this.sliderRef.ownerDocument; | ||
var _props = this.props, | ||
autoFocus = _props.autoFocus, | ||
disabled = _props.disabled; | ||
if (autoFocus && !disabled) { | ||
this.focus(); | ||
} | ||
} | ||
@@ -289,6 +297,6 @@ }, { | ||
value: function calcValue(offset) { | ||
var _props = this.props, | ||
vertical = _props.vertical, | ||
min = _props.min, | ||
max = _props.max; | ||
var _props2 = this.props, | ||
vertical = _props2.vertical, | ||
min = _props2.min, | ||
max = _props2.max; | ||
@@ -309,5 +317,5 @@ var ratio = Math.abs(Math.max(offset, 0) / this.getSliderLength()); | ||
value: function calcOffset(value) { | ||
var _props2 = this.props, | ||
min = _props2.min, | ||
max = _props2.max; | ||
var _props3 = this.props, | ||
min = _props3.min, | ||
max = _props3.max; | ||
@@ -327,19 +335,19 @@ var ratio = (value - min) / (max - min); | ||
var _props3 = this.props, | ||
prefixCls = _props3.prefixCls, | ||
className = _props3.className, | ||
marks = _props3.marks, | ||
dots = _props3.dots, | ||
step = _props3.step, | ||
included = _props3.included, | ||
disabled = _props3.disabled, | ||
vertical = _props3.vertical, | ||
min = _props3.min, | ||
max = _props3.max, | ||
children = _props3.children, | ||
maximumTrackStyle = _props3.maximumTrackStyle, | ||
style = _props3.style, | ||
railStyle = _props3.railStyle, | ||
dotStyle = _props3.dotStyle, | ||
activeDotStyle = _props3.activeDotStyle; | ||
var _props4 = this.props, | ||
prefixCls = _props4.prefixCls, | ||
className = _props4.className, | ||
marks = _props4.marks, | ||
dots = _props4.dots, | ||
step = _props4.step, | ||
included = _props4.included, | ||
disabled = _props4.disabled, | ||
vertical = _props4.vertical, | ||
min = _props4.min, | ||
max = _props4.max, | ||
children = _props4.children, | ||
maximumTrackStyle = _props4.maximumTrackStyle, | ||
style = _props4.style, | ||
railStyle = _props4.railStyle, | ||
dotStyle = _props4.dotStyle, | ||
activeDotStyle = _props4.activeDotStyle; | ||
@@ -346,0 +354,0 @@ var _get$call = (0, _get3['default'])(ComponentEnhancer.prototype.__proto__ || Object.getPrototypeOf(ComponentEnhancer.prototype), 'render', this).call(this), |
@@ -523,2 +523,3 @@ 'use strict'; | ||
Range.propTypes = { | ||
autoFocus: _propTypes2['default'].bool, | ||
defaultValue: _propTypes2['default'].arrayOf(_propTypes2['default'].number), | ||
@@ -525,0 +526,0 @@ value: _propTypes2['default'].arrayOf(_propTypes2['default'].number), |
@@ -89,13 +89,2 @@ 'use strict'; | ||
(0, _createClass3['default'])(Slider, [{ | ||
key: 'componentDidMount', | ||
value: function componentDidMount() { | ||
var _props = this.props, | ||
autoFocus = _props.autoFocus, | ||
disabled = _props.disabled; | ||
if (autoFocus && !disabled) { | ||
this.focus(); | ||
} | ||
} | ||
}, { | ||
key: 'componentWillReceiveProps', | ||
@@ -208,14 +197,14 @@ value: function componentWillReceiveProps(nextProps) { | ||
var _props2 = this.props, | ||
prefixCls = _props2.prefixCls, | ||
vertical = _props2.vertical, | ||
included = _props2.included, | ||
disabled = _props2.disabled, | ||
minimumTrackStyle = _props2.minimumTrackStyle, | ||
trackStyle = _props2.trackStyle, | ||
handleStyle = _props2.handleStyle, | ||
tabIndex = _props2.tabIndex, | ||
min = _props2.min, | ||
max = _props2.max, | ||
handleGenerator = _props2.handle; | ||
var _props = this.props, | ||
prefixCls = _props.prefixCls, | ||
vertical = _props.vertical, | ||
included = _props.included, | ||
disabled = _props.disabled, | ||
minimumTrackStyle = _props.minimumTrackStyle, | ||
trackStyle = _props.trackStyle, | ||
handleStyle = _props.handleStyle, | ||
tabIndex = _props.tabIndex, | ||
min = _props.min, | ||
max = _props.max, | ||
handleGenerator = _props.handle; | ||
var _state = this.state, | ||
@@ -222,0 +211,0 @@ value = _state.value, |
{ | ||
"name": "rc-slider", | ||
"version": "8.6.12", | ||
"version": "8.6.13", | ||
"description": "Slider UI component for React", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1094599
13425