fix(lite/UiBadge): do not instanciate FontAwesomeIcon if icon is undefined (#6446)
This commit is contained in:
parent
72a3a9f04f
commit
2512a00205
@ -1,12 +1,13 @@
|
||||
<template>
|
||||
<span class="ui-badge">
|
||||
<FontAwesomeIcon :icon="icon" />
|
||||
<UiIcon :icon="icon" />
|
||||
<slot />
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import type { IconDefinition } from "@fortawesome/fontawesome-common-types";
|
||||
import UiIcon from "@/components/ui/UiIcon.vue";
|
||||
|
||||
defineProps<{
|
||||
icon?: IconDefinition;
|
||||
|
Loading…
Reference in New Issue
Block a user