import { Button, Space, Table, Tag } from "antd"; import { useState } from "react"; import { resolveUploadFileId } from "~/utils/mockUpload"; import FilePreviewModal from "~/components/FilePreviewModal"; export default function MaterialStep({ materials = [], disabled, onUpload, loading, }) { const [preview, setPreview] = useState(null); return ( <> (val ? {val} : "-"), }, { title: "状态", dataIndex: "uploadStatusName", width: 90, render: (val, record) => ( {val || "待上传"} ), }, { title: "操作", width: 120, render: (_, record) => ( {record.attachmentUrl ? ( ) : ( !disabled && ( ) )} ), }, { title: "注释", dataIndex: "materialRemark", ellipsis: true }, ]} /> setPreview(null)} /> ); }