feat: production页的CMS变更

This commit is contained in:
2025-10-15 16:49:08 +08:00
parent 98f978484c
commit 1704a7b5c1
5 changed files with 202 additions and 94 deletions

View File

@ -6,18 +6,19 @@
class="document-card"
>
<div class="document-info">
<h3>{{ doc.caption || doc.name }}</h3>
<h3>{{ doc.title }}</h3>
<div class="document-content">
<span v-if="doc.size" class="document-meta"
>大小: {{ formatFileSize(doc.size) }}
</span>
<span v-if="doc.ext" class="document-meta"
>格式: {{ formatFileExtension(doc.ext) }}</span
<span v-if="doc.filename" class="document-meta"
>格式:
{{ formatFileExtension(getFileExtension(doc.filename)) }}</span
>
<el-button
class="download-button"
type="primary"
@click="handleDownload(doc.name, doc.url)"
@click="handleDownload(doc.title, doc.url)"
>
下载
</el-button>
@ -30,7 +31,7 @@
<script setup lang="ts">
defineProps({
documents: {
type: Array as () => Array<StrapiMedia>,
type: Array as () => Array<ProductDocumentView>,
default: () => [],
},
});