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
729b484d
Commit
729b484d
authored
Jul 03, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 完善展示
parent
b031b8b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
index.less
src/pages/member/components/QualitiesUpload/index.less
+10
-1
index.tsx
src/pages/member/components/QualitiesUpload/index.tsx
+8
-1
index.tsx
...pages/member/components/QualitiesUploadFormItem/index.tsx
+2
-2
No files found.
src/pages/member/components/QualitiesUpload/index.less
View file @
729b484d
...
...
@@ -6,9 +6,17 @@
}
}
.no-img {
:global {
.ant-upload.ant-upload-select-picture-card {
border: none;
}
}
}
.img {
width: 175px;
height: 120px;
object-fit: co
ntain
;
object-fit: co
ver
;
}
}
\ No newline at end of file
src/pages/member/components/QualitiesUpload/index.tsx
View file @
729b484d
...
...
@@ -2,13 +2,14 @@
* @Author: XieZhiXiong
* @Date: 2021-06-04 17:26:51
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
6-21 14:50:58
* @LastEditTime: 2021-0
7-03 13:58:05
* @Description: 资质上传组件
*/
import
React
,
{
useState
}
from
'react'
;
import
{
Upload
}
from
'antd'
;
import
{
PlusOutlined
,
FileOutlined
,
LoadingOutlined
,
ExclamationCircleOutlined
}
from
'@ant-design/icons'
;
import
{
UploadChangeParam
}
from
'antd/lib/upload'
;
import
classNames
from
'classnames'
;
import
styles
from
'./index.less'
;
const
QualitiesUpload
=
(
props
)
=>
{
...
...
@@ -73,6 +74,11 @@ const QualitiesUpload = (props) => {
);
};
const
uploadCls
=
classNames
({
[
styles
[
'no-img'
]]:
arrValue
.
length
,
className
,
});
return
(
<
div
className=
{
styles
.
upload
}
>
<
Upload
...
...
@@ -83,6 +89,7 @@ const QualitiesUpload = (props) => {
fileList=
{
arrValue
}
onChange=
{
handleChange
}
disabled=
{
!
editable
}
className=
{
uploadCls
}
>
{
!
loading
?
(
arrValue
.
length
?
renderFile
()
:
uploadButton
...
...
src/pages/member/components/QualitiesUploadFormItem/index.tsx
View file @
729b484d
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-06-01 16:13:35
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
6-18 17:50:57
* @LastEditTime: 2021-0
7-03 14:48:39
* @Description: 资质证明上传组件
*/
import
React
from
'react'
;
...
...
@@ -108,7 +108,7 @@ const QualitiesUploadFormItem = (props) => {
<
div
style=
{
{
width
:
'100%'
}
}
>
<
ArrayList
value=
{
value
}
>
<
Row
gutter=
{
{
sm
:
44
,
md
:
88
,
lg
:
88
}
}
gutter=
{
[
66
,
66
]
}
>
{
toArr
(
value
).
map
((
item
,
index
)
=>
(
<
Col
key=
{
index
}
{
...
span
}
>
...
...
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