mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 11:08:00 +08:00
Fix tooltip destroy tooltip on hide (#727)
* fix: add destroyTooltipOnHide prop * doc: destroyTooltipOnHide
This commit is contained in:
parent
e5020f7eb8
commit
d970f47b35
@ -28,5 +28,6 @@ export default () => ({
|
||||
getPopupContainer: PropTypes.func,
|
||||
arrowPointAtCenter: PropTypes.bool.def(false),
|
||||
autoAdjustOverflow: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]).def(true),
|
||||
destroyTooltipOnHide: PropTypes.bool.def(false),
|
||||
align: PropTypes.object.def({}),
|
||||
});
|
||||
|
@ -21,6 +21,7 @@ The following APIs are shared by Tooltip, Popconfirm, Popover.
|
||||
| placement | The position of the tooltip relative to the target, which can be one of `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom` | string | `top` |
|
||||
| trigger | Tooltip trigger mode | `hover` \| `focus` \| `click` \| `contextmenu` | `hover` |
|
||||
| visible(v-model) | Whether the floating tooltip card is visible or not | boolean | `false` |
|
||||
| destroyTooltipOnHide | Whether to destroy tooltip on hide | boolean | false |
|
||||
| align | this value will be merged into placement's config, please refer to the settings [dom-align](https://github.com/yiminghe/dom-align) | Object | - |
|
||||
|
||||
### events
|
||||
|
@ -21,6 +21,7 @@
|
||||
| placement | 气泡框位置,可选 `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom` | string | top |
|
||||
| trigger | 触发行为,可选 `hover/focus/click/contextmenu` | string | hover |
|
||||
| visible(v-model) | 用于手动控制浮层显隐 | boolean | false |
|
||||
| destroyTooltipOnHide | 隐藏后是否销毁tooltip | boolean | false |
|
||||
| align | 该值将合并到 placement 的配置中,设置参考 [dom-align](https://github.com/yiminghe/dom-align) | Object | 无 |
|
||||
|
||||
### 事件
|
||||
|
Loading…
Reference in New Issue
Block a user