|
|
|
@ -190,14 +190,14 @@ export const ImageUploader = props => {
|
|
|
|
|
removeIcon: file => {
|
|
|
|
|
return (
|
|
|
|
|
<Popconfirm
|
|
|
|
|
title="删除"
|
|
|
|
|
description="是否要删除文件?"
|
|
|
|
|
title="Delete"
|
|
|
|
|
description="Are you sure you want to delete the file?"
|
|
|
|
|
onConfirm={() => {
|
|
|
|
|
handleDelete(file);
|
|
|
|
|
}}
|
|
|
|
|
onCancel={() => setFileList([...fileList])}
|
|
|
|
|
okText="是"
|
|
|
|
|
cancelText="否">
|
|
|
|
|
okText="Yes"
|
|
|
|
|
cancelText="No">
|
|
|
|
|
<DeleteOutlined />
|
|
|
|
|
</Popconfirm>
|
|
|
|
|
);
|
|
|
|
@ -205,7 +205,7 @@ export const ImageUploader = props => {
|
|
|
|
|
}}>
|
|
|
|
|
<div>
|
|
|
|
|
<UploadOutlined />
|
|
|
|
|
<div style={{ marginTop: 8 }}>Upload</div>
|
|
|
|
|
<div style={{ marginTop: 8 }}>Select File</div>
|
|
|
|
|
</div>
|
|
|
|
|
</Upload>
|
|
|
|
|
<List loading={isLoading} dataSource={fileList} />
|
|
|
|
|