mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 13:08:41 +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
501 B
501 B
order | debug | title | ||||
---|---|---|---|---|---|---|
4 | true |
|
zh-CN
通过 destroyTooltipOnHide
控制提示关闭时是否销毁 dom 节点。
en-US
Setting destroyTooltipOnHide
to control whether destroy dom node of tooltip when hidden.
import { Tooltip } from 'antd';
export default () => (
<Tooltip destroyTooltipOnHide={{ keepParent: false }} title="prompt text">
<span>Tooltip will destroy when hidden.</span>
</Tooltip>
);