Commit d12527ec authored by 武广's avatar 武广

fix: 修改上传图片样式

parent 47dd5aad
......@@ -142,6 +142,7 @@ const FormRuleVPictures = forwardRef((props, ref) => {
>
<UploadImage
disabled={customer.isService}
multiple={false}
name="commonImageList"
limit={imgConfig.commonImageList.limit}
pictures={commonImageList}
......
......@@ -192,21 +192,25 @@ const UploadImage = forwardRef((props, ref) => {
</ReactSortable>
)}
</div>
<Upload
{...uploadParams}
disabled={Boolean(disabled)}
multiple={multiple}
name={name}
customRequest={() => {}}
listType="picture-card"
beforeUpload={defaultBeforeUpload}
fileList={fileList}
onPreview={handlePreview}
onRemove={handleRemove}
showUploadList={false}
>
{limit !== null && fileList.length >= limit ? null : UploadButton}
</Upload>
{limit !== null && fileList.length >= limit ? (
''
) : (
<Upload
{...uploadParams}
disabled={Boolean(disabled)}
multiple={multiple}
name={name}
customRequest={() => {}}
listType="picture-card"
beforeUpload={defaultBeforeUpload}
fileList={fileList}
onPreview={handlePreview}
onRemove={handleRemove}
showUploadList={false}
>
{UploadButton}
</Upload>
)}
<Modal visible={previewVisible} title={previewTitle} footer={null} onCancel={handleCancel}>
<img alt="example" style={{ width: '100%' }} src={previewImage} />
</Modal>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment