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
c870f334
Commit
c870f334
authored
Sep 03, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:图片公共上传组件样式问题
parent
35073ff6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
index.less
src/components/UploadImage/index.less
+9
-3
index.tsx
src/components/UploadImage/index.tsx
+1
-1
No files found.
src/components/UploadImage/index.less
View file @
c870f334
...
...
@@ -57,17 +57,23 @@
.delete_btn {
color: #fff;
position: absolute;
top:50%;
left:50%;
top:
50%;
left:
50%;
transform: translate(-50%, -50%);
}
}
.upload_wrap{
.upload_wrap
{
position: relative;
width: 104px;
height: 104px;
&.large {
width: 175px;
height: 120px;
}
&:hover {
.delete_wrap {
display: block;
...
...
src/components/UploadImage/index.tsx
View file @
c870f334
...
...
@@ -71,7 +71,7 @@ const UploadImage: React.FC<UploadImagePorpsType> = forwardRef((props, ref) => {
return
(
<
div
className=
{
styles
.
upload_image_wrap
}
>
<
div
className=
{
styles
.
upload_wrap
}
>
<
div
className=
{
cx
(
styles
.
upload_wrap
,
large
?
styles
.
large
:
''
)
}
>
<
Upload
{
...
uploadProps
}
>
{
<
div
className=
{
cx
(
styles
.
upload_btn
,
!
imgUrl
?
styles
.
isAdd
:
""
,
large
?
styles
.
large
:
''
)
}
>
{
...
...
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