Merge pull request #4751 from RookieZoe/2.0-bug-fix

[Select, AutoComplete] 当选项列表中的 dropdown 在控件上部显示时的一个BUG
This commit is contained in:
Aresn 2018-11-01 11:13:31 +08:00 committed by GitHub
commit 62725de376
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -753,7 +753,14 @@
}, },
visible(state){ visible(state){
this.$emit('on-open-change', state); this.$emit('on-open-change', state);
} },
slotOptions(options, old){
// dropdown
// dropdown
if (options && old && options.length !== old.length) {
this.broadcast('Drop', 'on-update-popper');
}
},
} }
}; };
</script> </script>