Skip to content
Snippets Groups Projects
Commit 8df78640 authored by syuilo's avatar syuilo
Browse files

Clean up

parent 9ca60bad
No related branches found
No related tags found
No related merge requests found
<template>
<div class="fgmtyycl _panel" :style="{ top: top + 'px', left: left + 'px' }" @mouseover="() => { $emit('mouseover'); }" @mouseleave="() => { $emit('mouseleave'); }">
<div class="fgmtyycl _panel" :style="{ top: top + 'px', left: left + 'px' }">
<x-url-preview :url="url"/>
</div>
</template>
......
......@@ -83,15 +83,6 @@ export default Vue.extend({
}
}).$mount();
this.preview.$on('mouseover', () => {
clearTimeout(this.hideTimer);
});
this.preview.$on('mouseleave', () => {
clearTimeout(this.showTimer);
this.hideTimer = setTimeout(this.closePreview, 500);
});
document.body.appendChild(this.preview.$el);
},
closePreview() {
......
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