update popper

This commit is contained in:
huanghong 2018-04-10 12:50:19 +08:00
parent 586bf3fc1b
commit e8139eac58
2 changed files with 17 additions and 2 deletions

View file

@ -33,6 +33,12 @@ export default {
computeStyle:{
gpuAcceleration: false,
}
},
preventOverflow :{
boundariesElement: 'body',
},
flip :{
boundariesElement: 'body',
}
};
}
@ -84,10 +90,10 @@ export default {
options.placement = this.placement;
if (options.modifiers) {
if (!options.modifiers) {
options.modifiers = {};
}
if (options.modifiers.offset) {
if (!options.modifiers.offset) {
options.modifiers.offset = {};
}
options.modifiers.offset = this.offset;