mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-15 15:18:27 +09:00
Clean up
This commit is contained in:
parent
9ca60bad7f
commit
8df7864064
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<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"/>
|
<x-url-preview :url="url"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -83,15 +83,6 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
}).$mount();
|
}).$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);
|
document.body.appendChild(this.preview.$el);
|
||||||
},
|
},
|
||||||
closePreview() {
|
closePreview() {
|
||||||
|
Loading…
Reference in New Issue
Block a user