tangjie 2026-07-09 17:00:45 +08:00
commit 81d563036f
1 changed files with 9 additions and 8 deletions

View File

@ -41,10 +41,10 @@ export default function MaterialStep({
},
{
title: "操作",
width: 120,
width: 150,
render: (_, record) => (
<Space size="small">
{record.attachmentUrl ? (
{record.attachmentUrl && (
<Button
type="link"
size="small"
@ -58,12 +58,13 @@ export default function MaterialStep({
>
预览
</Button>
) : (
!disabled && (
)}
{!disabled && (
<UploadButton
onSuccess={(data) => onUpload?.(record, data)}
/>
)
>
{record.attachmentUrl ? "重新上传" : "上传"}
</UploadButton>
)}
</Space>
),