feat: migrate ImagePreview component

This commit is contained in:
chenjiahan
2020-08-17 10:38:11 +08:00
parent b4e02668cf
commit 3a290ce564
7 changed files with 104 additions and 71 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ export function ChildrenMixin(parent, options = {}) {
this.bindRelation();
},
beforeDestroy() {
beforeUnmount() {
if (this.parent) {
this.parent.children = this.parent.children.filter(
(item) => item !== this