mirror of
https://github.com/elk-zone/elk.git
synced 2025-05-04 22:34:54 +03:00
fix: show emoji in nav account (#159)
This commit is contained in:
parent
75aaf85e84
commit
d967520005
2 changed files with 11 additions and 6 deletions
components/nav
|
@ -1,9 +1,14 @@
|
|||
<script setup lang="ts">
|
||||
defineProps<{
|
||||
text: string
|
||||
text?: string
|
||||
icon: string
|
||||
to: string
|
||||
}>()
|
||||
|
||||
defineSlots<{
|
||||
icon: {}
|
||||
default: {}
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -12,7 +17,9 @@ defineProps<{
|
|||
<slot name="icon">
|
||||
<div :class="icon" />
|
||||
</slot>
|
||||
<span>{{ text }}</span>
|
||||
<slot>
|
||||
<span>{{ text }}</span>
|
||||
</slot>
|
||||
</div>
|
||||
</NuxtLink>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue