ant-design/components/slider/demo/show-tooltip.md
MadCcc 6776bb8916
docs: demo support react18 (#34843)
* 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
2022-04-03 23:27:45 +08:00

21 lines
482 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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 />;
```