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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
index.less
src/components/UploadImage/index.less
+9
-3
index.tsx
src/components/UploadImage/index.tsx
+2
-2
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
:
''
)
}
>
{
...
...
@@ -84,7 +84,7 @@ const UploadImage: React.FC<UploadImagePorpsType> = forwardRef((props, ref) => {
}
</
div
>
{
showDesc
&&
showDesc
&&
<
div
className=
{
styles
.
size_require
}
>
<
p
>
支持JPG/PNG/JPEG,
<
br
/>
最大不超过
{
fileMaxSize
}
K,
<
br
/>
尺寸:
{
size
}
</
p
>
</
div
>
...
...
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