fix: team icon color issue

This commit is contained in:
Ramesh Mane
2026-01-28 11:20:38 +00:00
parent b9c7737389
commit 82aa42e7ca

View File

@@ -30,7 +30,7 @@ const props = withDefaults(defineProps<TeamIconProps>(), {
const { size } = toRefs(props)
const { getColor } = useTheme()
const { getColor: _getColor } = useTheme()
const team = computed(() => {
return {
@@ -80,6 +80,14 @@ const teamIcon = computed<{
}
})
const getColor = (color: string) => {
if (color === 'transparent') {
return _getColor('var(--nc-bg-default)')
}
return _getColor(color)
}
const backgroundColor = computed(() => {
if (props.iconBgColor === 'transparent') {
return 'transparent'