change vue-pomper 'options' to 'popperOptions'

pull/2523/head
baiyaaaaa 2017-01-18 17:17:59 +08:00 committed by 杨奕
parent 8453db88e5
commit 20fabc7b09
4 changed files with 5 additions and 5 deletions

View File

@ -325,7 +325,7 @@ export default {
created() {
// vue-popper
this.options = {
this.popperOptions = {
boundariesPadding: 0,
gpuAcceleration: false
};

View File

@ -26,7 +26,7 @@
default: 0
},
options: {
popperOptions: {
default() {
return {
forceAbsolute: true,

View File

@ -26,7 +26,7 @@ export default {
type: String,
default: 'fade-in-linear'
},
options: {
popperOptions: {
default() {
return {
boundariesPadding: 10,

View File

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