mirror of
https://github.com/wassname/slider.git
synced 2026-09-09 11:35:22 +08:00
refactor: the default value of tipFormatter
This commit is contained in:
+1
-1
@@ -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}
|
||||
|
||||
@@ -417,6 +417,7 @@ Slider.defaultProps = {
|
||||
onBeforeChange: noop,
|
||||
onChange: noop,
|
||||
onAfterChange: noop,
|
||||
tipFormatter: value => value,
|
||||
included: true,
|
||||
disabled: false,
|
||||
dots: false,
|
||||
|
||||
Reference in New Issue
Block a user