update popper.js to fix that props 'offset' doesn't work

This commit is contained in:
Chuanfeng 2018-05-15 19:50:23 +08:00
parent 06ff901ff4
commit 9734ab0f88

View file

@ -90,7 +90,7 @@ export default {
if (!options.modifiers.offset) {
options.modifiers.offset = {};
}
options.modifiers.offset = this.offset;
options.modifiers.offset.offset = this.offset;
options.onCreate =()=>{
this.$nextTick(this.updatePopper);
this.$emit('created', this);