Skip to content
Snippets Groups Projects
Commit 18fa317e authored by syuilo's avatar syuilo
Browse files

fix bug

parent 414f1d11
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ export default {
});
}
const show = e => {
self.show = () => {
if (!document.body.contains(el)) return;
if (self._close) return;
if (self.text == null) return;
......@@ -60,7 +60,7 @@ export default {
el.addEventListener(start, () => {
clearTimeout(self.showTimer);
clearTimeout(self.hideTimer);
self.showTimer = setTimeout(show, delay);
self.showTimer = setTimeout(self.show, delay);
}, { passive: true });
el.addEventListener(end, () => {
......@@ -75,6 +75,11 @@ export default {
});
},
updated(el, binding) {
const self = el._tooltipDirective_;
self.text = binding.value as string;
},
unmounted(el, binding, vn) {
const self = el._tooltipDirective_;
clearInterval(self.checkTimer);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment