ant-design/components/slider/demo/show-tooltip.md

21 lines
489 B
Markdown
Raw Normal View History

---
order: 7
title:
zh-CN: 控制 ToolTip 的显示
en-US: Control visible of ToolTip
---
2018-12-20 20:39:18 +08:00
## zh-CN
2019-05-07 14:57:32 +08:00
`tooltipVisible``true` 时,将始终显示 ToolTip反之则始终不显示即使在拖动、移入时也是如此。
2018-12-20 20:39:18 +08:00
## en-US
2018-12-20 20:39:18 +08:00
When `tooltipVisible` is `true`, ToolTip will show always, or ToolTip will not show anyway, even if dragging or hovering.
2019-05-07 14:57:32 +08:00
```jsx
2018-12-11 15:18:30 +08:00
import { Slider } from 'antd';
2018-12-11 17:07:55 +08:00
ReactDOM.render(<Slider defaultValue={30} tooltipVisible />, mountNode);
2019-05-07 14:57:32 +08:00
```