Permalink
Browse files

feat(popover): Add ability to disable fade animation in component ver…

…sion
  • Loading branch information...
tmorehouse committed Aug 31, 2017
1 parent 36c428a commit 7161b5fa1ab437812ba68c08d4c4b5018a1d56f1
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/components/popover.vue
@@ -51,6 +51,10 @@
offset: {
type: [Number, String],
default: 0
},
noFade: {
type: Boolean,
default: false
}
},
mounted() {
@@ -96,8 +100,10 @@
title: this.title.trim() || '',
content: this.content.trim() || '',
placement: this.placement || 'top',
delay: this.delay || 0,
delay: parseInt(this.delay, 10) || 0,
// offset can be a css distance string. if no units provided then pixels are assumed
offset: this.offset || 0,
animation: Boolean(this.noFade),
triggers: isArray(this.triggers) ? this.triggers.join(' ') : this.triggers
};
}

0 comments on commit 7161b5f

Please sign in to comment.