fix type errors in MkEmoji
This commit is contained in:
parent
75cf048876
commit
9bfa8dc417
1 changed files with 5 additions and 4 deletions
|
@ -4,16 +4,16 @@
|
||||||
class="mk-emoji custom"
|
class="mk-emoji custom"
|
||||||
:class="{ normal, noStyle }"
|
:class="{ normal, noStyle }"
|
||||||
:src="url"
|
:src="url"
|
||||||
:alt="alt"
|
:alt="alt || undefined"
|
||||||
:title="alt"
|
:title="alt || undefined"
|
||||||
decoding="async"
|
decoding="async"
|
||||||
/>
|
/>
|
||||||
<img
|
<img
|
||||||
v-else-if="char && !useOsNativeEmojis"
|
v-else-if="char && !useOsNativeEmojis"
|
||||||
class="mk-emoji"
|
class="mk-emoji"
|
||||||
:src="url"
|
:src="url"
|
||||||
:alt="alt"
|
:alt="alt || undefined"
|
||||||
:title="alt"
|
:title="alt || undefined"
|
||||||
decoding="async"
|
decoding="async"
|
||||||
/>
|
/>
|
||||||
<span v-else-if="char && useOsNativeEmojis">{{ char }}</span>
|
<span v-else-if="char && useOsNativeEmojis">{{ char }}</span>
|
||||||
|
@ -50,6 +50,7 @@ const customEmoji = computed(() =>
|
||||||
: null,
|
: null,
|
||||||
);
|
);
|
||||||
const url = computed(() => {
|
const url = computed(() => {
|
||||||
|
if (!customEmoji.value) return undefined;
|
||||||
if (char.value) {
|
if (char.value) {
|
||||||
return char2filePath(char.value);
|
return char2filePath(char.value);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue