diff --git a/components/_util/ContainerRender.jsx b/components/_util/ContainerRender.jsx index 5dd80381c..65845869c 100644 --- a/components/_util/ContainerRender.jsx +++ b/components/_util/ContainerRender.jsx @@ -36,6 +36,7 @@ export default { this._component && this._component.$destroy(); this.container.parentNode.removeChild(this.container); this.container = null; + this._component = null; } }, diff --git a/components/avatar/Avatar.jsx b/components/avatar/Avatar.jsx index dbc971e87..7652bc73e 100644 --- a/components/avatar/Avatar.jsx +++ b/components/avatar/Avatar.jsx @@ -30,6 +30,12 @@ export default { scale: 1, }; }, + watch: { + src() { + this.isImgExist = true; + this.scale = 1; + }, + }, mounted() { this.prevChildren = this.$slots.default; this.prevState = { ...this.$data }; diff --git a/components/dropdown/demo/dropdown-button.md b/components/dropdown/demo/dropdown-button.md index 4df822b4f..886997519 100644 --- a/components/dropdown/demo/dropdown-button.md +++ b/components/dropdown/demo/dropdown-button.md @@ -11,7 +11,7 @@ A button is on the left, and a related functional menu is on the right. ```html