rc-slider
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -58,2 +58,3 @@ 'use strict'; | ||
var tipTransitionName = props.tipTransitionName; | ||
var tipFormatter = props.tipFormatter; | ||
var offset = props.offset; | ||
@@ -84,3 +85,3 @@ var value = props.value; | ||
null, | ||
value | ||
tipFormatter ? tipFormatter(value) : value | ||
), | ||
@@ -103,2 +104,3 @@ delay: 0, | ||
tipTransitionName: _react2['default'].PropTypes.string, | ||
tipFormatter: _react2['default'].PropTypes.func, | ||
value: _react2['default'].PropTypes.number, | ||
@@ -105,0 +107,0 @@ dragging: _react2['default'].PropTypes.bool, |
@@ -407,2 +407,3 @@ 'use strict'; | ||
var tipTransitionName = props.tipTransitionName; | ||
var tipFormatter = props.tipFormatter; | ||
var children = props.children; | ||
@@ -424,4 +425,4 @@ | ||
var handleClassName = prefixCls + '-handle'; | ||
var isNoTip = marksLen > 0; | ||
var upper = _react2['default'].createElement(_Handle2['default'], { className: handleClassName, tipTransitionName: tipTransitionName, noTip: isNoTip, | ||
var isNoTip = marksLen > 0 && !tipFormatter; | ||
var upper = _react2['default'].createElement(_Handle2['default'], { className: handleClassName, tipTransitionName: tipTransitionName, noTip: isNoTip, tipFormatter: tipFormatter, | ||
offset: upperOffset, value: upperBound, dragging: handle === 'upperBound' }); | ||
@@ -431,3 +432,3 @@ | ||
if (range) { | ||
lower = _react2['default'].createElement(_Handle2['default'], { className: handleClassName, tipTransitionName: tipTransitionName, noTip: isNoTip, | ||
lower = _react2['default'].createElement(_Handle2['default'], { className: handleClassName, tipTransitionName: tipTransitionName, noTip: isNoTip, tipFormatter: tipFormatter, | ||
offset: lowerOffset, value: lowerBound, dragging: handle === 'lowerBound' }); | ||
@@ -491,2 +492,3 @@ } | ||
tipTransitionName: _react2['default'].PropTypes.string, | ||
tipFormatter: _react2['default'].PropTypes.func, | ||
dots: _react2['default'].PropTypes.bool, | ||
@@ -493,0 +495,0 @@ range: _react2['default'].PropTypes.bool |
{ | ||
"name": "rc-slider", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "slider ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -152,2 +152,8 @@ # rc-slider | ||
<tr> | ||
<td>tipFormatter</td> | ||
<td>func</td> | ||
<td></td> | ||
<td>Format the value of the tooltip if it shows.</td> | ||
</tr> | ||
<tr> | ||
<td>dots</td> | ||
@@ -154,0 +160,0 @@ <td>bool</td> |
Sorry, the diff of this file is not supported yet
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
39901
882
190