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

24 lines
543 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
`tooltip.open``true` 时,将始终显示 ToolTip反之则始终不显示即使在拖动、移入时也是如此。
2018-12-20 20:39:18 +08:00
## en-US
When `tooltip.open` is `true`, ToolTip will always show, or ToolTip will not show anyway, even if dragging or hovering.
```tsx
2018-12-11 15:18:30 +08:00
import { Slider } from 'antd';
2022-05-23 14:37:16 +08:00
import React from 'react';
const App: React.FC = () => <Slider defaultValue={30} tooltip={{ open: true }} />;
export default App;
2019-05-07 14:57:32 +08:00
```