forward
This commit is contained in:
parent
ff21d975a9
commit
ae6b4ec667
5 changed files with 5 additions and 3 deletions
2
dist/iview.min.js
vendored
2
dist/iview.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/iview.min.js.gz
vendored
BIN
dist/iview.min.js.gz
vendored
Binary file not shown.
2
dist/iview.min.js.map
vendored
2
dist/iview.min.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -71,6 +71,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
createPopper() {
|
||||
console.log('createPopper', this.popperJS);
|
||||
if (isServer) return;
|
||||
if (!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.placement)) {
|
||||
return;
|
||||
|
@ -96,11 +97,12 @@ export default {
|
|||
this.$nextTick(this.updatePopper);
|
||||
this.$emit('created', this);
|
||||
};
|
||||
|
||||
console.log('create Popper', reference, popper, options);
|
||||
this.popperJS = new Popper(reference, popper, options);
|
||||
|
||||
},
|
||||
updatePopper() {
|
||||
console.log('updatePopper', this.popperJS);
|
||||
if (isServer) return;
|
||||
this.popperJS ? this.popperJS.update() : this.createPopper();
|
||||
},
|
||||
|
|
BIN
view-design-v4.x.2.1.tar.gz
Normal file
BIN
view-design-v4.x.2.1.tar.gz
Normal file
Binary file not shown.
Loading…
Reference in a new issue