[improvement] optimize watch options (#4075)

This commit is contained in:
neverland
2019-08-09 11:54:42 +08:00
committed by GitHub
parent 854a91c384
commit 19cd2ed38e
12 changed files with 19 additions and 57 deletions
+1 -3
View File
@@ -62,9 +62,7 @@ export const PopupMixin = {
this.$emit(type);
},
overlay() {
this.renderOverlay();
}
overlay: 'renderOverlay'
},
mounted() {
+1 -3
View File
@@ -20,9 +20,7 @@ export function PortalMixin({ afterPortal }: PortalMixinOptions) {
},
watch: {
getContainer() {
this.portal();
}
getContainer: 'portal'
},
mounted() {