fix type errors of MkAutoComplete

This commit is contained in:
Lhcfl 2024-04-10 20:36:20 +08:00
parent 6ac6a4cfa9
commit 73537ec6fa

View file

@ -62,7 +62,7 @@
<span v-else class="emoji">{{ emoji.emoji }}</span> <span v-else class="emoji">{{ emoji.emoji }}</span>
<span <span
class="name" class="name"
v-html="emoji.name.replace(q, `<b>${q}</b>`)" v-html="q ? emoji.name.replace(q, `<b>${q}</b>`) : emoji.name"
></span> ></span>
<span v-if="emoji.aliasOf" class="alias" <span v-if="emoji.aliasOf" class="alias"
>({{ emoji.aliasOf }})</span >({{ emoji.aliasOf }})</span
@ -107,7 +107,7 @@ interface EmojiDef {
emoji: string; emoji: string;
name: string; name: string;
aliasOf?: string; aliasOf?: string;
url?: string; url: string;
isCustomEmoji?: boolean; isCustomEmoji?: boolean;
} }