Commit 3bdeb592 authored by patriciussanctus's avatar patriciussanctus Committed by 杨奕

Update component.vue

For using `done(false)` as well as `vue-router.beforeEach` function `next(false)`.
There are cases when it is necessary.
parent 1a4f7674
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment