From 7563a816423c42b26ce0df4ea1540f4bdb6a34b7 Mon Sep 17 00:00:00 2001 From: tjz <415800467@qq.com> Date: Sat, 14 Apr 2018 17:27:50 +0800 Subject: [PATCH] fix slider --- components/slider/index.jsx | 2 +- components/vc-slider/src/Handle.jsx | 2 -- components/vc-slider/src/createSliderWithTooltip.jsx | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/components/slider/index.jsx b/components/slider/index.jsx index 5ae128e92..a84209e4c 100644 --- a/components/slider/index.jsx +++ b/components/slider/index.jsx @@ -85,7 +85,7 @@ export default { title: tipFormatter ? tipFormatter(value) : '', visible, placement: 'top', - transitionName: 'zoom-down', + transitionName: 'fade', }, key: index, } diff --git a/components/vc-slider/src/Handle.jsx b/components/vc-slider/src/Handle.jsx index 2ce8d35e6..32efae194 100644 --- a/components/vc-slider/src/Handle.jsx +++ b/components/vc-slider/src/Handle.jsx @@ -3,8 +3,6 @@ import addEventListener from '../../_util/Dom/addEventListener' import BaseMixin from '../../_util/BaseMixin' import { getOptionProps } from '../../_util/props-util' -function noop () {} - export default { name: 'Handle', mixins: [BaseMixin], diff --git a/components/vc-slider/src/createSliderWithTooltip.jsx b/components/vc-slider/src/createSliderWithTooltip.jsx index 93e11c4af..3305a615f 100644 --- a/components/vc-slider/src/createSliderWithTooltip.jsx +++ b/components/vc-slider/src/createSliderWithTooltip.jsx @@ -51,11 +51,11 @@ export default function createSliderWithTooltip (Component) { const tooltipProps = { props: { + ...restTooltipProps, prefixCls, overlay, placement, visible: (!disabled && (this.visibles[index] || dragging)) || visible, - ...restTooltipProps, }, key: index, }