fix attachment selector item label

This commit is contained in:
Timi
2026-10-26 14:12:09 +08:00
parent 83897a4a9c
commit 06969f981d
9 changed files with 12 additions and 38 deletions
+1 -1
View File
@@ -53,10 +53,10 @@
</t-cell-group>
<card-container v-entrance-transition>
<attachment-selector
:readonly="true"
class="attachment-selector"
:items="photoItemList"
title="照片列表"
readonly
>
<template #item-label="{ item }">
<span v-text="getAttachmentTypeText(item.attachType)" />
+1 -5
View File
@@ -83,11 +83,7 @@
核销登记记录
</t-button>
<div v-if="record" class="photo-wrapper" v-entrance-transition>
<attachment-selector
:readonly="true"
:items="recordPhotoItemList"
title="登记照片"
>
<attachment-selector :items="recordPhotoItemList" title="登记照片" readonly>
<template #viewer-actions="{ item, index, close }">
<attachment-viewer-actions
v-if="canUpdateRecord"
@@ -43,11 +43,7 @@
<t-cell-group title="跟进内容" theme="card" v-entrance-transition>
<div class="content bg-white" v-text="detail.content || '未填写跟进内容'" />
<div class="media-wrap bg-white">
<attachment-selector :readonly="true"
:items="attachmentItemList"
empty-text="暂无附件"
title="附件"
/>
<attachment-selector :items="attachmentItemList" title="附件" readonly />
</div>
</t-cell-group>
<t-cell-group title="通知方式" theme="card" v-entrance-transition>
@@ -22,10 +22,7 @@
<t-cell v-if="fulfillment.reason" title="原因" :note="fulfillment.reason" />
<t-cell v-if="fulfillment.remark" title="备注" :note="fulfillment.remark" />
<div class="photo-wrap bg-white">
<attachment-selector :readonly="true"
:items="fulfillmentPhotoItems"
title="履约照片"
/>
<attachment-selector :items="fulfillmentPhotoItems" title="履约照片" readonly />
</div>
</t-cell-group>
<t-cell-group class="items" title="履约明细" theme="card" v-entrance-transition>
+1 -4
View File
@@ -22,10 +22,7 @@
<t-cell title="兑换时间" :note="timeText(item.redeemedAt)" />
<t-cell v-if="item.remark" title="备注" :note="item.remark" />
<div class="photo-wrap bg-white">
<attachment-selector :readonly="true"
:items="redemptionPhotoItems"
title="兑换凭证照片"
/>
<attachment-selector :items="redemptionPhotoItems" title="兑换凭证" readonly />
</div>
</t-cell-group>
<t-cell-group v-if="returnList.length" title="退货记录" theme="card" v-entrance-transition>
+3 -5
View File
@@ -20,10 +20,7 @@
<t-cell title="状态" :note="getProductStatusText(product.status)" />
<t-cell title="备注" :note="Text.display(product.remark)"></t-cell>
<t-cell>
<attachment-selector :readonly="true"
:items="attachmentItemList"
title="附件列表"
/>
<attachment-selector :items="attachmentItemList" readonly />
</t-cell>
</t-cell-group>
<t-cell-group theme="card" v-entrance-transition>
@@ -108,10 +105,11 @@
<t-cell v-if="selectedSku.remark" title="备注" :note="Text.display(selectedSku.remark)" />
</t-cell-group>
<div class="media-wrap">
<attachment-selector :readonly="true"
<attachment-selector
v-if="skuPhotoItemList.length"
:items="skuPhotoItemList"
title="SKU 图片"
readonly
/>
</div>
<div class="unit">
@@ -90,10 +90,7 @@
<span></span>
</template>
<template #description>
<attachment-selector :readonly="true"
:items="photoItemList"
title="操作照片"
/>
<attachment-selector :items="photoItemList" title="操作照片" readonly />
</template>
</t-cell>
</t-cell-group>
+1 -4
View File
@@ -49,10 +49,7 @@
@click="toSalesOrder"
/>
<div class="photo-wrap bg-white">
<attachment-selector :readonly="true"
:items="photoItems"
title="业务照片"
/>
<attachment-selector :items="photoItems" title="业务照片" readonly />
</div>
</t-cell-group>
<t-cell-group theme="card" v-entrance-transition>
+2 -6
View File
@@ -29,12 +29,8 @@
underline
/>
</header>
<div v-if="additionalPhotoItemList.length" class="additional-photos-wrapper">
<attachment-selector :readonly="true"
:items="additionalPhotoItemList"
title="附加照片"
v-entrance-transition
/>
<div v-if="additionalPhotoItemList.length" class="additional-photos-wrapper" v-entrance-transition>
<attachment-selector :items="additionalPhotoItemList" readonly />
</div>
<section class="content" v-entrance-transition>
<article-view