有问题的代码

main
ybc 2 months ago
parent 74aebe57c6
commit cd8c3b98ec

@ -166,11 +166,7 @@ export const ImageUploader = props => {
};
const handleRemove = file => {
// false Popconfirm
return false;
};
const itemRender = (originNode, file, fileList, actions) => {
return (
<Popconfirm
title="Confirm deletion"
@ -180,14 +176,20 @@ export const ImageUploader = props => {
okText="Yes"
cancelText="No"
>
{originNode}
</Popconfirm>
);
// false Popconfirm
return false;
};
const itemRender = (originNode, file, fileList, actions) => {
};
return (
<>
<Upload customRequest={handleUploadFile} multiple={true} onRemove={handleRemove} listType="picture-card" fileList={fileList} onPreview={handlePreview} onChange={handleChange} itemRender={itemRender}>
<Upload customRequest={handleUploadFile} multiple={true} onRemove={handleRemove} listType="picture-card" fileList={fileList} onPreview={handlePreview} onChange={handleChange} >
<div>
<UploadOutlined />
<div style={{ marginTop: 8 }}>上传图片</div>

Loading…
Cancel
Save