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
4fd8c3ba
Commit
4fd8c3ba
authored
Jun 18, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 调整样式
parent
53118461
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
42 deletions
+56
-42
index.tsx
src/pages/member/components/QualitiesUpload/index.tsx
+2
-1
index.less
...ages/member/components/QualitiesUploadFormItem/index.less
+9
-0
index.tsx
...pages/member/components/QualitiesUploadFormItem/index.tsx
+45
-41
No files found.
src/pages/member/components/QualitiesUpload/index.tsx
View file @
4fd8c3ba
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2021-06-04 17:26:51
* @Date: 2021-06-04 17:26:51
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-1
7 10:37:59
* @LastEditTime: 2021-06-1
8 17:31:07
* @Description: 资质上传组件
* @Description: 资质上传组件
*/
*/
import
React
,
{
useState
}
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
...
@@ -77,6 +77,7 @@ const QualitiesUpload = (props) => {
...
@@ -77,6 +77,7 @@ const QualitiesUpload = (props) => {
maxCount=
{
1
}
maxCount=
{
1
}
fileList=
{
arrValue
}
fileList=
{
arrValue
}
onChange=
{
handleChange
}
onChange=
{
handleChange
}
disabled=
{
!
editable
}
>
>
{
!
loading
?
(
{
!
loading
?
(
arrValue
.
length
?
renderFile
()
:
uploadButton
arrValue
.
length
?
renderFile
()
:
uploadButton
...
...
src/pages/member/components/QualitiesUploadFormItem/index.less
View file @
4fd8c3ba
...
@@ -19,4 +19,12 @@
...
@@ -19,4 +19,12 @@
.del-btn {
.del-btn {
position: relative;
position: relative;
top: -10px;
top: -10px;
}
.lineage-cell {
:global {
.ant-form-item {
margin-bottom: 0;
}
}
}
}
\ No newline at end of file
src/pages/member/components/QualitiesUploadFormItem/index.tsx
View file @
4fd8c3ba
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2021-06-01 16:13:35
* @Date: 2021-06-01 16:13:35
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-1
7 10:50:41
* @LastEditTime: 2021-06-1
8 17:50:57
* @Description: 资质证明上传组件
* @Description: 资质证明上传组件
*/
*/
import
React
from
'react'
;
import
React
from
'react'
;
...
@@ -105,46 +105,50 @@ const QualitiesUploadFormItem = (props) => {
...
@@ -105,46 +105,50 @@ const QualitiesUploadFormItem = (props) => {
};
};
return
(
return
(
<
ArrayList
value=
{
value
}
>
<
div
style=
{
{
width
:
'100%'
}
}
>
<
Row
<
ArrayList
value=
{
value
}
>
gutter=
{
{
sm
:
44
,
md
:
88
,
lg
:
88
}
}
<
Row
>
gutter=
{
{
sm
:
44
,
md
:
88
,
lg
:
88
}
}
{
toArr
(
value
).
map
((
item
,
index
)
=>
(
>
<
Col
key=
{
index
}
{
...
span
}
>
{
toArr
(
value
).
map
((
item
,
index
)
=>
(
<
Row
<
Col
key=
{
index
}
{
...
span
}
>
gutter=
{
50
}
<
Row
align=
"middle"
gutter=
{
50
}
>
align=
"middle"
<
Col
flex=
{
1
}
>
>
<
SchemaField
<
Col
flex=
{
1
}
className=
{
styles
[
'lineage-cell'
]
}
>
path=
{
FormPath
.
parse
(
path
).
concat
(
index
)
}
<
SchemaField
schema=
{
schema
}
path=
{
FormPath
.
parse
(
path
).
concat
(
index
)
}
/>
schema=
{
schema
}
</
Col
>
/>
<
Col
>
</
Col
>
<
Button
{
editable
&&
(
onClick=
{
()
=>
onRemove
(
index
)
}
<
Col
>
type=
"link"
<
Button
icon=
{
<
CloseCircleOutlined
style=
{
{
fontSize
:
20
}
}
/>
}
onClick=
{
()
=>
onRemove
(
index
)
}
className=
{
styles
[
'del-btn'
]
}
type=
"link"
/>
icon=
{
<
CloseCircleOutlined
style=
{
{
fontSize
:
20
}
}
/>
}
</
Col
>
className=
{
styles
[
'del-btn'
]
}
</
Row
>
/>
</
Col
>
</
Col
>
))
}
)
}
{
editable
&&
(
</
Row
>
<
Col
{
...
span
}
>
</
Col
>
<
Button
))
}
onClick=
{
onAdd
}
{
editable
&&
(
type=
"dashed"
<
Col
{
...
span
}
>
className=
{
styles
[
'add-btn'
]
}
<
Button
>
onClick=
{
onAdd
}
<
PlusOutlined
/>
type=
"dashed"
</
Button
>
className=
{
styles
[
'add-btn'
]
}
</
Col
>
>
)
}
<
PlusOutlined
/>
</
Row
>
</
Button
>
</
ArrayList
>
</
Col
>
)
}
</
Row
>
</
ArrayList
>
</
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