[new feature] Popup: add open/close event (#2649)

This commit is contained in:
neverland
2019-01-30 19:39:29 +08:00
committed by GitHub
parent 079b582460
commit 466bb3ce1e
4 changed files with 15 additions and 1 deletions
+3 -1
View File
@@ -48,8 +48,10 @@ export default {
watch: {
value(val) {
const type = val ? 'open' : 'close';
this.inited = this.inited || this.value;
this[val ? 'open' : 'close']();
this[type]();
this.$emit(type);
},
getContainer() {