This commit is contained in:
梁灏 2018-12-20 11:42:44 +08:00
parent 3e012ca94d
commit 4cc72ddba5
2 changed files with 5 additions and 0 deletions

View file

@ -679,6 +679,9 @@
},
focus() {
this.$refs.input && this.$refs.input.focus();
},
updatePopper () {
this.$refs.drop.update();
}
},
watch: {
@ -715,6 +718,7 @@
// to handle focus from confirm buttons
this.$on('focus-input', () => this.focus());
this.$on('update-popper', () => this.updatePopper());
}
};
</script>