UnisKB/ui/src/workflow/icons/application-node-icon.vue

29 lines
499 B
Vue
Raw Normal View History

2025-06-03 08:08:49 +00:00
<template>
2025-06-05 09:28:07 +00:00
<el-avatar
2025-06-03 08:08:49 +00:00
v-if="isAppIcon(item?.icon)"
shape="square"
:size="32"
style="background: none"
class="mr-8"
>
<img :src="item?.icon" alt="" />
2025-06-05 09:28:07 +00:00
</el-avatar>
<el-avatar
2025-06-03 08:08:49 +00:00
v-else-if="item?.name"
:name="item?.name"
pinyinColor
shape="square"
:size="32"
class="mr-8"
/>
</template>
<script setup lang="ts">
import { isAppIcon } from '@/utils/common'
const props = defineProps<{
item: {
name: string
icon: string
}
}>()
</script>