提交
This commit is contained in:
1 parent
417d6c9c51
commit
c8fe0cdc20
102 files changed
+19847
-12224
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<!-- 协议附件 — 迷你缩略图只读(卡片列表用) -->
|
||||
<template>
|
||||
<div class="protocol-attachment-mini">
|
||||
<div class="protocol-attachment-mini" :class="{ 'is-multi': files.length > 1 }">
|
||||
<div v-if="label" class="protocol-attachment-mini__label">{{ label }}</div>
|
||||
<span v-if="!files.length" class="protocol-attachment-mini__empty">{{ emptyText }}</span>
|
||||
<div v-else class="protocol-attachment-mini__list">
|
||||
@@ -22,12 +22,12 @@
|
||||
</template>
|
||||
<template v-else-if="isVideoFile(file)">
|
||||
<div class="protocol-attachment-mini__icon protocol-attachment-mini__icon--video">
|
||||
<el-icon :size="20"><VideoPlay /></el-icon>
|
||||
<el-icon :size="files.length > 1 ? 14 : 20"><VideoPlay /></el-icon>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="protocol-attachment-mini__icon protocol-attachment-mini__icon--doc">
|
||||
<el-icon :size="20"><Document /></el-icon>
|
||||
<el-icon :size="files.length > 1 ? 14 : 20"><Document /></el-icon>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
@@ -219,4 +219,42 @@
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
/* 多附件时缩小缩略图,便于在卡片内并排展示 */
|
||||
.protocol-attachment-mini.is-multi {
|
||||
.protocol-attachment-mini__list {
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.protocol-attachment-mini__item {
|
||||
width: 48px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.protocol-attachment-mini__preview {
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.protocol-attachment-mini__icon {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.protocol-attachment-mini__footer {
|
||||
padding: 2px 3px;
|
||||
gap: 1px;
|
||||
}
|
||||
|
||||
.protocol-attachment-mini__name {
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.protocol-attachment-mini__download {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
font-size: 9px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user