{t('form.clickToUpload')}
)
}
onPreview={async (file) => {
const imageList = await Promise.all(
fileList?.map(async (file) =>
file?.originFileObj ? await file2base64(file?.originFileObj) : file?.url,
),
)
const previewIndex = fileList?.findIndex((f) => f?.uid === file?.uid)
await showImages({
srcList: imageList,
current: previewIndex,
})
}}
beforeUpload={() => false}
{...props}
fileList={fileList}
/>
)
}}