docs: 添加tooltip destroyTooltipOnHide Api说明 (#18859)

* 添加tooltip destroyTooltipOnHide Api说明

* 添加tooltip destroyTooltipOnHide Api说明

* 修复destroyTooltipOnHide说明
This commit is contained in:
TTC 2019-09-17 18:18:56 +08:00 committed by Amumu
parent b188a5e4d2
commit f956b55c92
2 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ The following APIs are shared by Tooltip, Popconfirm, Popover.
| trigger | Tooltip trigger mode | `hover` \| `focus` \| `click` \| `contextMenu` | `hover` | |
| visible | Whether the floating tooltip card is visible or not | boolean | `false` | |
| onVisibleChange | Callback executed when visibility of the tooltip card is changed | (visible) => void | - | |
| destroyTooltipOnHide | whether destroy tooltip when tooltip is hidden | boolean | false | |
| align | this value will be merged into placement's config, please refer to the settings [rc-tooltip](https://github.com/react-component/tooltip) | Object | - | 3.10.0 |
## Note

View File

@ -37,6 +37,7 @@ title: Tooltip
| trigger | 触发行为,可选 `hover/focus/click/contextMenu` | string | hover | |
| visible | 用于手动控制浮层显隐 | boolean | false | |
| onVisibleChange | 显示隐藏的回调 | (visible) => void | 无 | |
| destroyTooltipOnHide | 是否在隐藏时销毁 Tooltip | boolean | false | |
| align | 该值将合并到 placement 的配置中,设置参考 [rc-tooltip](https://github.com/react-component/tooltip) | Object | 无 | 3.10.0 |
## 注意