hsy-vue-tooltip
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -809,6 +809,19 @@ module.exports = | ||
autoShowWithMode: function autoShowWithMode(evt) { | ||
if (this.mode === 'hover' && evt.type === 'mouseover' || this.mode === 'click' && evt.type === 'click') { | ||
this.show(); | ||
this.$emit('input', true); | ||
if (this.mode === 'hover') { | ||
if (evt.type === 'mouseover') { | ||
this.show(); | ||
this.$emit('input', true); | ||
} | ||
return; | ||
} | ||
if (this.mode === 'click' && evt.type === 'click') { | ||
if (this.isShowing) { | ||
this.hide(); | ||
this.$emit('input', false); | ||
} else { | ||
this.show(); | ||
this.$emit('input', true); | ||
} | ||
} | ||
}, | ||
@@ -815,0 +828,0 @@ autoHideWithMode: function autoHideWithMode(evt) { |
{ | ||
"name": "hsy-vue-tooltip", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "vue tooltip component", | ||
@@ -5,0 +5,0 @@ "author": "hsiaosiyuan0 <hsiaosiyuan0@outlook.com>", |
Sorry, the diff of this file is not supported yet
46654
928