fix: rename unmount lifecycles

This commit is contained in:
chenjiahan
2020-08-17 10:40:48 +08:00
parent 3a290ce564
commit 6c85294d35
9 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -28,6 +28,6 @@ export function BindEventMixin(handler: BindEventHandler) {
mounted: bind,
activated: bind,
deactivated: unbind,
beforeDestroy: unbind,
beforeUnmount: unbind,
};
}
+1 -1
View File
@@ -25,7 +25,7 @@ export const ClickOutsideMixin = (config) => ({
on(document, config.event, this.clickOutsideHandler);
},
beforeDestroy() {
beforeUnmount() {
off(document, config.event, this.clickOutsideHandler);
},
});
+1 -1
View File
@@ -83,7 +83,7 @@ export function PopupMixin(options = {}) {
}
},
beforeDestroy() {
beforeUnmount() {
if (this.opened) {
this.removeLock();
}