rc-slider
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -83,3 +83,4 @@ 'use strict'; | ||
onChange: _react2['default'].PropTypes.func, | ||
onAfterChange: _react2['default'].PropTypes.func | ||
onAfterChange: _react2['default'].PropTypes.func, | ||
tipTransitionName: _react2['default'].PropTypes.string | ||
}, | ||
@@ -98,3 +99,4 @@ | ||
disabled: false, | ||
defaultIndex: 0 | ||
defaultIndex: 0, | ||
tipTransitionName: '' | ||
}; | ||
@@ -133,4 +135,10 @@ }, | ||
onMouseUp: function onMouseUp() { | ||
this._end('mouse'); | ||
onMouseUp: function onMouseUp(e) { | ||
var m = e.target; | ||
var handleDom = _react2['default'].findDOMNode(this.refs.handle); | ||
var showToolTip = false; | ||
if (m === handleDom) { | ||
showToolTip = true; | ||
} | ||
this._end('mouse', showToolTip); | ||
}, | ||
@@ -356,2 +364,3 @@ | ||
delay: 0, | ||
transitionName: this.props.tipTransitionName, | ||
prefixCls: prefixClsFn(prefixCls, 'tooltip') }, | ||
@@ -500,3 +509,3 @@ handle | ||
_end: function _end(type) { | ||
_end: function _end(type, showToolTip) { | ||
this._removeEventons(type); | ||
@@ -506,3 +515,3 @@ this._triggerEvents('onAfterChange'); | ||
dragging: false, | ||
showTooltip: false | ||
showTooltip: !!showToolTip | ||
}); | ||
@@ -509,0 +518,0 @@ } |
{ | ||
"name": "rc-slider", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "slider ui component for react", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"config": { | ||
"port": 8000 | ||
"port": 8005 | ||
}, | ||
@@ -30,0 +30,0 @@ "scripts": { |
@@ -139,2 +139,8 @@ # rc-slider | ||
</tr> | ||
<tr> | ||
<td>tipTransitionName</td> | ||
<td>string</td> | ||
<td>''</td> | ||
<td>Set the animation for tooltip if it shows.</td> | ||
</tr> | ||
</tbody> | ||
@@ -152,3 +158,3 @@ </table> | ||
http://localhost:8000/examples/ | ||
http://localhost:8005/examples/ | ||
@@ -159,7 +165,7 @@ online example: http://react-component.github.io/slider/ | ||
http://localhost:8000/tests/runner.html?coverage | ||
http://localhost:8005/tests/runner.html?coverage | ||
## Coverage | ||
http://localhost:8000/node_modules/rc-server/node_modules/node-jscover/lib/front-end/jscoverage.html?w=http://localhost:8088/tests/runner.html?coverage | ||
http://localhost:8005/node_modules/rc-server/node_modules/node-jscover/lib/front-end/jscoverage.html?w=http://localhost:8088/tests/runner.html?coverage | ||
@@ -166,0 +172,0 @@ ## License |
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
27240
681
172