feat: 统一后台与用户端图片与文件上传交互,支持点击放大预览、删除与多图批量多选上传

这个提交包含在:
wikiboss
2026-09-21 01:28:01 +08:00
父节点 56392d8f9e
当前提交 955c73e7ef
共有 47 个文件被更改,包括 2605 次插入 和 77 次删除

查看文件

@@ -53,6 +53,14 @@
:placeholder="notesPlaceholder"
:disabled="state.saving"
/>
<view class="notes-attachments">
<image-uploader
v-model="state.attachments"
:multiple="true"
:maxCount="6"
:disabled="state.saving"
/>
</view>
</view>
<view v-if="state.errorMessage !== ''" class="lead-error">
@@ -90,6 +98,7 @@ import {
LeadDetailCopyKey,
LeadDetailPageOptions,
} from './useLeadDetail.uts';
import ImageUploader from '../../components/image-uploader/image-uploader.uvue';
const pageTheme: Record<string, string> = {
'--oc-primary': utsLightColors.primary,
@@ -366,6 +375,10 @@ onLoad((options: LeadDetailPageOptions) => {
line-height: 1.6;
}
.notes-attachments {
margin-top: var(--oc-space-12, 12px);
}
.lead-error {
margin-bottom: var(--oc-space-12, 12px);
}