Commit 9734ab0f88e0a469bee3d142f5927456e440a4cb
1 parent
06ff901f
update popper.js to fix that props 'offset' doesn't work
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/components/base/popper.js
... | ... | @@ -90,14 +90,14 @@ export default { |
90 | 90 | if (!options.modifiers.offset) { |
91 | 91 | options.modifiers.offset = {}; |
92 | 92 | } |
93 | - options.modifiers.offset = this.offset; | |
93 | + options.modifiers.offset.offset = this.offset; | |
94 | 94 | options.onCreate =()=>{ |
95 | 95 | this.$nextTick(this.updatePopper); |
96 | 96 | this.$emit('created', this); |
97 | 97 | }; |
98 | 98 | |
99 | 99 | this.popperJS = new Popper(reference, popper, options); |
100 | - | |
100 | + | |
101 | 101 | }, |
102 | 102 | updatePopper() { |
103 | 103 | if (isServer) return; |
... | ... | @@ -112,7 +112,7 @@ export default { |
112 | 112 | }, |
113 | 113 | updated (){ |
114 | 114 | this.$nextTick(()=>this.updatePopper()); |
115 | - | |
115 | + | |
116 | 116 | }, |
117 | 117 | beforeDestroy() { |
118 | 118 | if (isServer) return; | ... | ... |