hsy-vue-tooltip
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -567,3 +567,4 @@ module.exports = | ||
return { | ||
arrowStyle: {} | ||
arrowStyle: {}, | ||
isShowing: true | ||
}; | ||
@@ -796,2 +797,4 @@ }, | ||
show: function show() { | ||
if (this.isShowing) return; | ||
this.isShowing = true; | ||
this.tooltipEl.style.display = 'block'; | ||
@@ -802,4 +805,6 @@ this.updateArrowStyle(); | ||
hide: function hide() { | ||
if (!this.isShowing) return; | ||
this.tooltipEl.style.display = 'none'; | ||
this.cbHide !== EMPTY_FN && this.cbHide(); | ||
this.isShowing = false; | ||
}, | ||
@@ -806,0 +811,0 @@ autoShowWithMode: function autoShowWithMode(evt) { |
{ | ||
"name": "hsy-vue-tooltip", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "vue tooltip component", | ||
@@ -5,0 +5,0 @@ "author": "hsiaosiyuan0 <hsiaosiyuan0@outlook.com>", |
Sorry, the diff of this file is not supported yet
46187
916