Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
merchant-manage-ui
Commits
d12527ec
Commit
d12527ec
authored
Oct 21, 2022
by
武广
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改上传图片样式
parent
47dd5aad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
15 deletions
+20
-15
FormRuleVPictures.jsx
src/pages/ServiceGoods/components/FormRuleVPictures.jsx
+1
-0
UploadImage.jsx
src/pages/ServiceGoods/components/UploadImage.jsx
+19
-15
No files found.
src/pages/ServiceGoods/components/FormRuleVPictures.jsx
View file @
d12527ec
...
...
@@ -142,6 +142,7 @@ const FormRuleVPictures = forwardRef((props, ref) => {
>
<
UploadImage
disabled=
{
customer
.
isService
}
multiple=
{
false
}
name=
"commonImageList"
limit=
{
imgConfig
.
commonImageList
.
limit
}
pictures=
{
commonImageList
}
...
...
src/pages/ServiceGoods/components/UploadImage.jsx
View file @
d12527ec
...
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment