fix autocomplete dropdown position(#2868) (#2875)

* fix dropdown style

* fix autocomplete dropdown position
pull/2887/head
baiyaaaaa 2017-02-17 15:26:13 +08:00 committed by cinwell.li
parent 59de02e3cd
commit 7f6d698f72
2 changed files with 7 additions and 1 deletions

View File

@ -66,6 +66,12 @@
}
},
updated() {
this.$nextTick(_ => {
this.updatePopper();
});
},
mounted() {
this.popperElm = this.$el;
this.referenceElm = this.$parent.$refs.input.$refs.input;

View File

@ -8,7 +8,7 @@
display: inline-block;
}
@b autocomplete-suggestion {
margin: 5px 0 0;
margin: 5px 0;
box-shadow: 0 0 6px 0 rgba(0,0,0,0.04), 0 2px 4px 0 rgba(0,0,0,0.12);
@e wrap {