mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
change vue-pomper 'options' to 'popperOptions'
This commit is contained in:
@@ -325,7 +325,7 @@ export default {
|
||||
|
||||
created() {
|
||||
// vue-popper
|
||||
this.options = {
|
||||
this.popperOptions = {
|
||||
boundariesPadding: 0,
|
||||
gpuAcceleration: false
|
||||
};
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
default: 0
|
||||
},
|
||||
|
||||
options: {
|
||||
popperOptions: {
|
||||
default() {
|
||||
return {
|
||||
forceAbsolute: true,
|
||||
|
||||
@@ -26,7 +26,7 @@ export default {
|
||||
type: String,
|
||||
default: 'fade-in-linear'
|
||||
},
|
||||
options: {
|
||||
popperOptions: {
|
||||
default() {
|
||||
return {
|
||||
boundariesPadding: 10,
|
||||
|
||||
@@ -34,7 +34,7 @@ export default {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
options: {
|
||||
popperOptions: {
|
||||
type: Object,
|
||||
default() {
|
||||
return {
|
||||
@@ -74,7 +74,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
const options = this.options;
|
||||
const options = this.popperOptions;
|
||||
const popper = this.popperElm = this.popperElm || this.popper || this.$refs.popper;
|
||||
let reference = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user