refactor: the default value of tipFormatter

This commit is contained in:
Benjy Cui
2015-12-18 10:10:52 +08:00
parent ddb2bf670b
commit 079469b765
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export default class Handle extends React.Component {
prefixCls={className.replace('slider-handle', 'tooltip')}
placement="top"
visible={isTooltipVisible}
overlay={<span>{tipFormatter ? tipFormatter(value) : value}</span>}
overlay={<span>{tipFormatter(value)}</span>}
delay={0}
transitionName={tipTransitionName}>
{handle}
+1
View File
@@ -417,6 +417,7 @@ Slider.defaultProps = {
onBeforeChange: noop,
onChange: noop,
onAfterChange: noop,
tipFormatter: value => value,
included: true,
disabled: false,
dots: false,