Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
前端-吴智勇
jinfa-platform
Commits
42508802
Commit
42508802
authored
Jan 07, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: 上传图片样式问题
parent
006c3b01
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
index.less
src/components/UploadImage/index.less
+5
-0
index.tsx
src/components/UploadImage/index.tsx
+3
-1
No files found.
src/components/UploadImage/index.less
View file @
42508802
.upload_image_wrap {
display: flex;
align-items: center;
height: 104px;
&.large {
height: 120px;
}
.size_require {
color: #C0C4CC;
...
...
src/components/UploadImage/index.tsx
View file @
42508802
...
...
@@ -70,7 +70,7 @@ const UploadImage: React.FC<UploadImagePorpsType> = forwardRef((props, ref) => {
);
return
(
<
div
className=
{
styles
.
upload_image_wrap
}
>
<
div
className=
{
cx
(
styles
.
upload_image_wrap
,
large
?
styles
.
large
:
''
)
}
>
<
div
className=
{
cx
(
styles
.
upload_wrap
,
large
?
styles
.
large
:
''
)
}
>
<
Upload
{
...
uploadProps
}
>
{
<
div
className=
{
cx
(
styles
.
upload_btn
,
!
imgUrl
?
styles
.
isAdd
:
""
,
large
?
styles
.
large
:
''
)
}
>
...
...
@@ -93,4 +93,6 @@ const UploadImage: React.FC<UploadImagePorpsType> = forwardRef((props, ref) => {
)
})
UploadImage
.
displayName
=
"UploadImage"
export
default
UploadImage
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