Permalink
Browse files

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

…sion
  • Loading branch information...
tmorehouse committed Aug 31, 2017
1 parent 5b27336 commit 36c428aa962d970ad4cfc60cabd1152b5b68c600
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/components/tooltip.vue
@@ -46,6 +46,10 @@
offset: {
type: [Number, String],
default: 0
},
noFade: {
type: Boolean,
default: false
}
},
mounted() {
@@ -87,8 +91,10 @@
return {
title: this.title.trim() || '',
placement: this.placement || 'top',
delay: this.delay || 0,
delay: parseInt(this.delay, 10) || 0,
// Offset can be css distance. if no units, pixels are assumed
offset: this.offset || 0,
animation: Boolean(this.noFade),
triggers: isArray(this.triggers) ? this.triggers.join(' ') : this.triggers
};
}

0 comments on commit 36c428a

Please sign in to comment.