diff --git a/components/slider/SliderTooltip.tsx b/components/slider/SliderTooltip.tsx index f9be502d8..11f4fa1a2 100644 --- a/components/slider/SliderTooltip.tsx +++ b/components/slider/SliderTooltip.tsx @@ -25,12 +25,12 @@ export default defineComponent({ } const align = () => { cancelKeepAlign(); - if (props.visible) { + if (props.open) { keepAlign(); } }; watch( - [() => props.visible, () => props.title], + [() => props.open, () => props.title], () => { align(); }, diff --git a/components/slider/demo/show-tooltip.vue b/components/slider/demo/show-tooltip.vue index 37eaa5a1d..bbc5a1046 100644 --- a/components/slider/demo/show-tooltip.vue +++ b/components/slider/demo/show-tooltip.vue @@ -8,15 +8,15 @@ title: ## zh-CN -当 `tooltipVisible` 为 `true` 时,将始终显示 ToolTip;反之则始终不显示,即使在拖动、移入时也是如此。 +当 `tooltipOpen` 为 `true` 时,将始终显示 ToolTip;反之则始终不显示,即使在拖动、移入时也是如此。 ## en-US -When `tooltipVisible` is `true`, ToolTip will show always, or ToolTip will not show anyway, even if dragging or hovering. +When `tooltipOpen` is `true`, ToolTip will show always, or ToolTip will not show anyway, even if dragging or hovering.