Update component.vue

For using `done(false)` as well as `vue-router.beforeEach` function `next(false)`.
There are cases when it is necessary.
pull/4873/head
patriciussanctus 2017-05-12 13:51:47 +03:00 committed by 杨奕
parent 1a4f767434
commit 3bdeb592df
1 changed files with 5 additions and 3 deletions

View File

@ -122,9 +122,11 @@
this.hide();
}
},
hide() {
hide(cancel) {
if (cancel !== false) {
this.$emit('update:visible', false);
this.$emit('visible-change', false);
}
},
updatePopper() {
this.broadcast('ElSelectDropdown', 'updatePopper');