style: 修复文件管理&用例缺陷附件json&未知文件icon颜色

This commit is contained in:
xinxin.wu 2024-09-19 15:45:56 +08:00 committed by Craftsman
parent 4b7f338a5b
commit dfab85c92f
1 changed files with 1 additions and 6 deletions

View File

@ -31,12 +31,7 @@
<template #avatar>
<a-avatar shape="square" class="rounded-[var(--border-radius-mini)] bg-[var(--color-text-n9)]">
<a-image v-if="item.file.type.includes('image/')" :src="item.url" width="40" height="40" hide-footer />
<MsIcon
v-else
:type="getFileIcon(item)"
size="24"
:class="item.status === UploadStatus.init ? 'text-[var(--color-text-4)]' : ''"
/>
<MsIcon v-else :type="getFileIcon(item)" size="24" :class="'text-[var(--color-text-4)]'" />
</a-avatar>
</template>
<template #title>