Skip to content

Commit d478653

Browse files
committed
2 parents faa4c1c + ec0ff99 commit d478653

File tree

6 files changed

+11
-1
lines changed

6 files changed

+11
-1
lines changed

components/_util/ContainerRender.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default {
3636
this._component && this._component.$destroy();
3737
this.container.parentNode.removeChild(this.container);
3838
this.container = null;
39+
this._component = null;
3940
}
4041
},
4142

components/avatar/Avatar.jsx

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ export default {
3030
scale: 1,
3131
};
3232
},
33+
watch: {
34+
src() {
35+
this.isImgExist = true;
36+
this.scale = 1;
37+
},
38+
},
3339
mounted() {
3440
this.prevChildren = this.$slots.default;
3541
this.prevState = { ...this.$data };

components/dropdown/demo/dropdown-button.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A button is on the left, and a related functional menu is on the right.
1111
```html
1212
<template>
1313
<div>
14-
<a-dropdown-button @click="handleMenuClick">
14+
<a-dropdown-button @click="handleButtonClick">
1515
Dropdown
1616
<a-menu slot="overlay" @click="handleMenuClick">
1717
<a-menu-item key="1"><a-icon type="user" />1st menu item</a-menu-item>

components/tooltip/abstractTooltipProps.js

+1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ export default () => ({
2828
getPopupContainer: PropTypes.func,
2929
arrowPointAtCenter: PropTypes.bool.def(false),
3030
autoAdjustOverflow: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]).def(true),
31+
destroyTooltipOnHide: PropTypes.bool.def(false),
3132
align: PropTypes.object.def({}),
3233
});

components/tooltip/index.en-US.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The following APIs are shared by Tooltip, Popconfirm, Popover.
2121
| 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` |
2222
| trigger | Tooltip trigger mode | `hover` \| `focus` \| `click` \| `contextmenu` | `hover` |
2323
| visible(v-model) | Whether the floating tooltip card is visible or not | boolean | `false` |
24+
| destroyTooltipOnHide | Whether to destroy tooltip on hide | boolean | false |
2425
| align | this value will be merged into placement's config, please refer to the settings [dom-align](https://github.com/yiminghe/dom-align) | Object | - |
2526

2627
### events

components/tooltip/index.zh-CN.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
| placement | 气泡框位置,可选 `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom` | string | top |
2222
| trigger | 触发行为,可选 `hover/focus/click/contextmenu` | string | hover |
2323
| visible(v-model) | 用于手动控制浮层显隐 | boolean | false |
24+
| destroyTooltipOnHide | 隐藏后是否销毁tooltip | boolean | false |
2425
| align | 该值将合并到 placement 的配置中,设置参考 [dom-align](https://github.com/yiminghe/dom-align) | Object ||
2526

2627
### 事件

0 commit comments

Comments
 (0)