Merge pull request #4993 from subying/patch-1

fix: dropdown位置自动调整后,选项列表的长度发生改变后,dropdown位置不会自动计算
This commit is contained in:
Aresn 2018-12-17 11:17:50 +08:00 committed by GitHub
commit a7cebb97b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -750,6 +750,10 @@
if (this.slotOptions && this.slotOptions.length === 0){ if (this.slotOptions && this.slotOptions.length === 0){
this.query = ''; this.query = '';
} }
// dropdown ()
// dropdown
this.broadcast('Drop', 'on-update-popper');
}, },
visible(state){ visible(state){
this.$emit('on-open-change', state); this.$emit('on-open-change', state);