<template>
  <el-avatar v-if="type === 1" class="avatar-purple" shape="square" :size="32">
    <img src="@/assets/knowledge/icon_web.svg" style="width: 58%" alt="" />
  </el-avatar>
  <el-avatar
    v-else-if="type === 2"
    class="avatar-purple"
    shape="square"
    :size="32"
    style="background: none"
  >
    <img src="@/assets/knowledge/logo_lark.svg" style="width: 100%" alt="" />
  </el-avatar>
  <el-avatar v-else class="avatar-blue" shape="square" :size="32">
    <img src="@/assets/knowledge/icon_document.svg" style="width: 58%" alt="" />
  </el-avatar>
</template>
<script setup lang="ts">
const props = defineProps({
  type: {
    type: [String, Number],
    default: '',
  },
})
</script>
