mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 09:39:10 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
21 lines
482 B
Markdown
21 lines
482 B
Markdown
---
|
||
order: 7
|
||
title:
|
||
zh-CN: 控制 ToolTip 的显示
|
||
en-US: Control visible of ToolTip
|
||
---
|
||
|
||
## zh-CN
|
||
|
||
当 `tooltipVisible` 为 `true` 时,将始终显示 ToolTip;反之则始终不显示,即使在拖动、移入时也是如此。
|
||
|
||
## en-US
|
||
|
||
When `tooltipVisible` is `true`, ToolTip will show always, or ToolTip will not show anyway, even if dragging or hovering.
|
||
|
||
```jsx
|
||
import { Slider } from 'antd';
|
||
|
||
export default () => <Slider defaultValue={30} tooltipVisible />;
|
||
```
|