fix: icon error
parent
75531b671c
commit
8f16358e20
|
|
@ -2,13 +2,13 @@
|
||||||
<el-avatar
|
<el-avatar
|
||||||
v-if="isAppIcon(item?.icon)"
|
v-if="isAppIcon(item?.icon)"
|
||||||
shape="square"
|
shape="square"
|
||||||
:size="32"
|
:size="size || 32"
|
||||||
style="background: none"
|
style="background: none"
|
||||||
class="mr-8"
|
class="mr-8"
|
||||||
>
|
>
|
||||||
<img :src="item?.icon" alt="" />
|
<img :src="item?.icon" alt="" />
|
||||||
</el-avatar>
|
</el-avatar>
|
||||||
<LogoIcon v-else height="32px" />
|
<LogoIcon v-else :height="`${size}px`" />
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { isAppIcon } from '@/utils/common'
|
import { isAppIcon } from '@/utils/common'
|
||||||
|
|
@ -17,5 +17,6 @@ const props = defineProps<{
|
||||||
name: string
|
name: string
|
||||||
icon: string
|
icon: string
|
||||||
}
|
}
|
||||||
|
size?: string | number
|
||||||
}>()
|
}>()
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue