mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-11 10:05:07 +08:00
docs: 添加tooltip destroyTooltipOnHide Api说明 (#18859)
* 添加tooltip destroyTooltipOnHide Api说明 * 添加tooltip destroyTooltipOnHide Api说明 * 修复destroyTooltipOnHide说明
This commit is contained in:
parent
b188a5e4d2
commit
f956b55c92
@ -35,6 +35,7 @@ The following APIs are shared by Tooltip, Popconfirm, Popover.
|
|||||||
| trigger | Tooltip trigger mode | `hover` \| `focus` \| `click` \| `contextMenu` | `hover` | |
|
| trigger | Tooltip trigger mode | `hover` \| `focus` \| `click` \| `contextMenu` | `hover` | |
|
||||||
| visible | Whether the floating tooltip card is visible or not | boolean | `false` | |
|
| 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 | - | |
|
| 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 |
|
| 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
|
## Note
|
||||||
|
@ -37,6 +37,7 @@ title: Tooltip
|
|||||||
| trigger | 触发行为,可选 `hover/focus/click/contextMenu` | string | hover | |
|
| trigger | 触发行为,可选 `hover/focus/click/contextMenu` | string | hover | |
|
||||||
| visible | 用于手动控制浮层显隐 | boolean | false | |
|
| visible | 用于手动控制浮层显隐 | boolean | false | |
|
||||||
| onVisibleChange | 显示隐藏的回调 | (visible) => void | 无 | |
|
| onVisibleChange | 显示隐藏的回调 | (visible) => void | 无 | |
|
||||||
|
| destroyTooltipOnHide | 是否在隐藏时销毁 Tooltip | boolean | false | |
|
||||||
| align | 该值将合并到 placement 的配置中,设置参考 [rc-tooltip](https://github.com/react-component/tooltip) | Object | 无 | 3.10.0 |
|
| align | 该值将合并到 placement 的配置中,设置参考 [rc-tooltip](https://github.com/react-component/tooltip) | Object | 无 | 3.10.0 |
|
||||||
|
|
||||||
## 注意
|
## 注意
|
||||||
|
Loading…
Reference in New Issue
Block a user