mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Update component.vue
For using `done(false)` as well as `vue-router.beforeEach` function `next(false)`. There are cases when it is necessary.
This commit is contained in:
@@ -122,9 +122,11 @@
|
||||
this.hide();
|
||||
}
|
||||
},
|
||||
hide() {
|
||||
this.$emit('update:visible', false);
|
||||
this.$emit('visible-change', false);
|
||||
hide(cancel) {
|
||||
if (cancel !== false) {
|
||||
this.$emit('update:visible', false);
|
||||
this.$emit('visible-change', false);
|
||||
}
|
||||
},
|
||||
updatePopper() {
|
||||
this.broadcast('ElSelectDropdown', 'updatePopper');
|
||||
|
||||
Reference in New Issue
Block a user