mirror of
https://github.com/wassname/slider.git
synced 2026-09-17 12:50:06 +08:00
fix: Slider 点击圆点后气泡提示会消失以及分段式滑块无法拖动问题。
This commit is contained in:
+2
-1
@@ -33,7 +33,7 @@ function getValueFromIndex(props) {
|
||||
}
|
||||
if (marksLen > 0) {
|
||||
value = ((props.max - props.min) / (marksLen - 1)) * (index);
|
||||
value = value.toFixed(5);
|
||||
value = value.toFixed(5) / 1;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
@@ -299,6 +299,7 @@ const Slider = React.createClass({
|
||||
tooltipVisible = true;
|
||||
} else {
|
||||
events = {
|
||||
onClick: this.showTooltip.bind(this, true),
|
||||
onMouseEnter: this.showTooltip.bind(this, true),
|
||||
onMouseLeave: this.showTooltip.bind(this, false),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user