mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 15:59:38 +08:00
497 B
497 B
order | title | ||||
---|---|---|---|---|---|
4 |
|
zh-CN
通过 destroyTooltipOnHide
控制提示关闭时是否销毁 dom 节点。
en-US
Setting destroyTooltipOnHide
to control whether destroy dom node of tooltip when hidden.
import { Tooltip } from 'antd';
ReactDOM.render(
<Tooltip destroyTooltipOnHide={{ keepParent: false }} title="prompt text">
<span>Tooltip will destroy when hidden.</span>
</Tooltip>,
mountNode,
);