mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-28 19:00:35 +01:00
fix(Chip): size injection (#105)
This commit is contained in:
@@ -7,7 +7,7 @@ export function useAvatarGroup(props: { size: AvatarGroupProps['size'] }) {
|
|||||||
const injectedSize = inject(avatarGroupInjectionKey, undefined)
|
const injectedSize = inject(avatarGroupInjectionKey, undefined)
|
||||||
|
|
||||||
const size = computed(() => props.size ?? injectedSize?.value.size)
|
const size = computed(() => props.size ?? injectedSize?.value.size)
|
||||||
provide('avatar-size', size)
|
provide(avatarGroupInjectionKey, computed(() => ({ size: size.value })))
|
||||||
|
|
||||||
return {
|
return {
|
||||||
size
|
size
|
||||||
|
|||||||
Reference in New Issue
Block a user