Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit e9e754c

Browse files
committed
fix: loading icon
1 parent 34e0657 commit e9e754c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/composables/useComponentIcons.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { AvatarProps } from '@/ui/components/Avatar/Avatar.vue'
2+
import { loadingIcon } from '@/ui/icons'
23
import type { MaybeRefOrGetter } from 'vue'
34
import { computed, toValue } from 'vue'
45

@@ -20,15 +21,15 @@ export function useComponentIcons(componentProps: MaybeRefOrGetter<UseComponentI
2021

2122
const leadingIconName = computed(() => {
2223
if (props.value.loading) {
23-
return ''
24+
return loadingIcon
2425
}
2526

2627
return props.value.leadingIcon || props.value.icon
2728
})
2829

2930
const trailingIconName = computed(() => {
3031
if (props.value.loading) {
31-
return ''
32+
return loadingIcon
3233
}
3334

3435
return props.value.trailingIcon || props.value.icon

0 commit comments

Comments
 (0)