This commit is contained in:
rhyme 2022-01-19 17:52:15 +08:00
parent ff21d975a9
commit ae6b4ec667
5 changed files with 5 additions and 3 deletions

2
dist/iview.min.js vendored

File diff suppressed because one or more lines are too long

BIN
dist/iview.min.js.gz vendored

Binary file not shown.

File diff suppressed because one or more lines are too long

View file

@ -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

Binary file not shown.