mirror of https://github.com/ElemeFE/element
change vue-pomper 'options' to 'popperOptions'
parent
8453db88e5
commit
20fabc7b09
|
@ -325,7 +325,7 @@ export default {
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
// vue-popper
|
// vue-popper
|
||||||
this.options = {
|
this.popperOptions = {
|
||||||
boundariesPadding: 0,
|
boundariesPadding: 0,
|
||||||
gpuAcceleration: false
|
gpuAcceleration: false
|
||||||
};
|
};
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
default: 0
|
default: 0
|
||||||
},
|
},
|
||||||
|
|
||||||
options: {
|
popperOptions: {
|
||||||
default() {
|
default() {
|
||||||
return {
|
return {
|
||||||
forceAbsolute: true,
|
forceAbsolute: true,
|
||||||
|
|
|
@ -26,7 +26,7 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'fade-in-linear'
|
default: 'fade-in-linear'
|
||||||
},
|
},
|
||||||
options: {
|
popperOptions: {
|
||||||
default() {
|
default() {
|
||||||
return {
|
return {
|
||||||
boundariesPadding: 10,
|
boundariesPadding: 10,
|
||||||
|
|
|
@ -34,7 +34,7 @@ export default {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
},
|
},
|
||||||
options: {
|
popperOptions: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default() {
|
default() {
|
||||||
return {
|
return {
|
||||||
|
@ -74,7 +74,7 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const options = this.options;
|
const options = this.popperOptions;
|
||||||
const popper = this.popperElm = this.popperElm || this.popper || this.$refs.popper;
|
const popper = this.popperElm = this.popperElm || this.popper || this.$refs.popper;
|
||||||
let reference = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
|
let reference = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue