This commit is contained in:
syuilo
2020-11-03 15:22:55 +09:00
parent 5ef4a52bbd
commit c3ae6f3a4a
25 changed files with 73 additions and 62 deletions

View File

@@ -23,13 +23,13 @@ export default {
}
};
const show = async e => {
const show = e => {
if (!document.body.contains(el)) return;
if (self._close) return;
if (self.text == null) return;
const showing = ref(true);
popup(await import('@/components/ui/tooltip.vue'), {
popup(import('@/components/ui/tooltip.vue'), {
showing,
text: self.text,
source: el

View File

@@ -18,13 +18,13 @@ export class UserPreview {
}
@autobind
private async show() {
private show() {
if (!document.body.contains(this.el)) return;
if (this.promise) return;
const showing = ref(true);
popup(await import('@/components/user-preview.vue'), {
popup(import('@/components/user-preview.vue'), {
showing,
q: this.user,
source: this.el