From 9734ab0f88e0a469bee3d142f5927456e440a4cb Mon Sep 17 00:00:00 2001 From: Chuanfeng Date: Tue, 15 May 2018 19:50:23 +0800 Subject: [PATCH] update popper.js to fix that props 'offset' doesn't work --- src/components/base/popper.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/base/popper.js b/src/components/base/popper.js index bb4b222..2f0d438 100644 --- a/src/components/base/popper.js +++ b/src/components/base/popper.js @@ -90,14 +90,14 @@ 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); }; this.popperJS = new Popper(reference, popper, options); - + }, updatePopper() { if (isServer) return; @@ -112,7 +112,7 @@ export default { }, updated (){ this.$nextTick(()=>this.updatePopper()); - + }, beforeDestroy() { if (isServer) return; -- libgit2 0.21.4