mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-03 13:47:55 +01:00
chore(Avatar): cast ImageComponent to string
This commit is contained in:
@@ -75,7 +75,7 @@ const sizePx = computed(() => ({
|
|||||||
|
|
||||||
// Reproduces Reka UI's [AvatarImage](https://reka-ui.com/docs/components/avatar#image) component behavior which cannot be used with NuxtImg component
|
// Reproduces Reka UI's [AvatarImage](https://reka-ui.com/docs/components/avatar#image) component behavior which cannot be used with NuxtImg component
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (!props.src || ImageComponent !== 'img') {
|
if (!props.src || (ImageComponent as unknown as string) !== 'img') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user