mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
aa97494625
* feat: change slide tooltip api * fix: deprecated warning * refactor: remove boolean type support for Slider tooltip * feat: update warning text * chore: fix typo * chore: save prod perf * test: back of test case * chore: clean up * chore: fix test require Co-authored-by: 二货机器人 <smith3816@gmail.com>
24 lines
543 B
Markdown
24 lines
543 B
Markdown
---
|
||
order: 7
|
||
title:
|
||
zh-CN: 控制 ToolTip 的显示
|
||
en-US: Control visible of ToolTip
|
||
---
|
||
|
||
## zh-CN
|
||
|
||
当 `tooltip.open` 为 `true` 时,将始终显示 ToolTip;反之则始终不显示,即使在拖动、移入时也是如此。
|
||
|
||
## en-US
|
||
|
||
When `tooltip.open` is `true`, ToolTip will always show, or ToolTip will not show anyway, even if dragging or hovering.
|
||
|
||
```tsx
|
||
import { Slider } from 'antd';
|
||
import React from 'react';
|
||
|
||
const App: React.FC = () => <Slider defaultValue={30} tooltip={{ open: true }} />;
|
||
|
||
export default App;
|
||
```
|