2018-11-01 11:40:47 +08:00
|
|
|
|
---
|
|
|
|
|
order: 7
|
|
|
|
|
title:
|
|
|
|
|
zh-CN: 控制 ToolTip 的显示
|
|
|
|
|
en-US: Control visible of ToolTip
|
|
|
|
|
---
|
|
|
|
|
|
2018-12-20 20:39:18 +08:00
|
|
|
|
## zh-CN
|
2018-11-01 11:40:47 +08:00
|
|
|
|
|
2019-05-07 14:57:32 +08:00
|
|
|
|
当 `tooltipVisible` 为 `true` 时,将始终显示 ToolTip;反之则始终不显示,即使在拖动、移入时也是如此。
|
2018-11-01 11:40:47 +08:00
|
|
|
|
|
2018-12-20 20:39:18 +08:00
|
|
|
|
## en-US
|
2018-11-01 11:40:47 +08:00
|
|
|
|
|
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.
|
2018-11-01 11:40:47 +08:00
|
|
|
|
|
2019-05-07 14:57:32 +08:00
|
|
|
|
```jsx
|
2018-12-11 15:18:30 +08:00
|
|
|
|
import { Slider } from 'antd';
|
2018-11-01 11:40:47 +08:00
|
|
|
|
|
2018-12-11 17:07:55 +08:00
|
|
|
|
ReactDOM.render(<Slider defaultValue={30} tooltipVisible />, mountNode);
|
2019-05-07 14:57:32 +08:00
|
|
|
|
```
|