Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
Project
Project
Details
Activity
Releases
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
wuhao
ems3.3
Commits
2d6c68b3
Commit
2d6c68b3
authored
Sep 20, 2023
by
左玲玲
😬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式优化
parent
0f387267
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
FormItems.jsx
src/components/InitForm/FormItems.jsx
+7
-7
global.less
src/global.less
+8
-0
No files found.
src/components/InitForm/FormItems.jsx
View file @
2d6c68b3
...
@@ -137,8 +137,8 @@ let FormRender = memo(({ fields = [], name, curindex, formRef, action }) => {
...
@@ -137,8 +137,8 @@ let FormRender = memo(({ fields = [], name, curindex, formRef, action }) => {
return
(
return
(
<
Col
{
...
item
.
colProps
}
key=
{
index
}
>
<
Col
{
...
item
.
colProps
}
key=
{
index
}
>
{
curindex
==
0
?
(
{
curindex
==
0
?
(
<
div
>
<
div
style=
{
{
height
:
68
}
}
>
<
label
htmlFor=
""
style=
{
{
marginBottom
:
1
0
,
display
:
'inline-block'
}
}
>
{
item
.
title
}
</
label
>
<
label
htmlFor=
""
style=
{
{
marginBottom
:
1
4
,
display
:
'inline-block'
}
}
>
{
item
.
title
}
</
label
>
{
{
hideInFormShowKey
?
<
div
style=
{
{
margin
:
0
}
}
>
{
value
[
hideInFormShowKey
]
}
</
div
>
hideInFormShowKey
?
<
div
style=
{
{
margin
:
0
}
}
>
{
value
[
hideInFormShowKey
]
}
</
div
>
:
:
...
@@ -150,7 +150,7 @@ let FormRender = memo(({ fields = [], name, curindex, formRef, action }) => {
...
@@ -150,7 +150,7 @@ let FormRender = memo(({ fields = [], name, curindex, formRef, action }) => {
</
div
>
</
div
>
)
:
(
)
:
(
<
div
style=
{
{
padding
:
"4px 0 0 0"
,
margin
:
0
}
}
>
<
div
style=
{
{
height
:
40
,
margin
:
0
,
display
:
'flex'
,
alignItems
:
'center'
}
}
>
{
{
hideInFormShowKey
?
<>
{
value
[
hideInFormShowKey
]
}
</>
hideInFormShowKey
?
<>
{
value
[
hideInFormShowKey
]
}
</>
:
:
...
@@ -170,7 +170,7 @@ let FormRender = memo(({ fields = [], name, curindex, formRef, action }) => {
...
@@ -170,7 +170,7 @@ let FormRender = memo(({ fields = [], name, curindex, formRef, action }) => {
key
:
item
.
dataIndex
,
key
:
item
.
dataIndex
,
name
:
name
,
name
:
name
,
formRef
,
formRef
,
curindex
,
curindex
});
});
}
}
}
}
}
}
...
@@ -180,14 +180,14 @@ let FormRender = memo(({ fields = [], name, curindex, formRef, action }) => {
...
@@ -180,14 +180,14 @@ let FormRender = memo(({ fields = [], name, curindex, formRef, action }) => {
return
curindex
===
0
?
(
return
curindex
===
0
?
(
<
Col
{
...
item
.
colProps
}
style=
{
{
height
:
68
}
}
key=
{
index
}
>
<
Col
{
...
item
.
colProps
}
style=
{
{
height
:
68
}
}
key=
{
index
}
>
<
div
>
<
div
>
<
label
htmlFor=
""
style=
{
{
marginBottom
:
1
0
,
display
:
'inline-block'
}
}
>
{
item
.
title
}
</
label
>
<
label
htmlFor=
""
style=
{
{
marginBottom
:
1
4
,
display
:
'inline-block'
}
}
>
{
item
.
title
}
</
label
>
<
div
style=
{
{
margin
:
0
}
}
>
<
div
style=
{
{
margin
:
0
}
}
>
{
value
[
item
?.
key
??
item
?.
dataIndex
]
??
"-"
}
{
value
[
item
?.
key
??
item
?.
dataIndex
]
??
"-"
}
</
div
>
</
div
>
</
div
>
</
div
>
</
Col
>
</
Col
>
)
:
(
)
:
(
<
Col
{
...
item
.
colProps
}
style=
{
{
height
:
68
}
}
key=
{
index
}
>
<
Col
{
...
item
.
colProps
}
style=
{
{
height
:
40
,
display
:
'flex'
,
alignItems
:
'center'
}
}
key=
{
index
}
>
<
div
>
<
div
>
<
div
style=
{
{
margin
:
0
}
}
>
<
div
style=
{
{
margin
:
0
}
}
>
{
value
[
item
?.
key
??
item
?.
dataIndex
]
??
"-"
}
{
value
[
item
?.
key
??
item
?.
dataIndex
]
??
"-"
}
...
@@ -202,7 +202,7 @@ let FormRender = memo(({ fields = [], name, curindex, formRef, action }) => {
...
@@ -202,7 +202,7 @@ let FormRender = memo(({ fields = [], name, curindex, formRef, action }) => {
key
:
item
.
dataIndex
,
key
:
item
.
dataIndex
,
name
:
name
,
name
:
name
,
formRef
,
formRef
,
curindex
,
curindex
})
})
}
}
})
}
})
}
...
...
src/global.less
View file @
2d6c68b3
...
@@ -623,6 +623,14 @@ ol {
...
@@ -623,6 +623,14 @@ ol {
}
}
}
}
}
}
.ant-col .ant-form-item-label {
padding-bottom: 12px !important;
}
.ant-form-item {
margin-bottom: 12px !important;
}
}
}
.screenwh {
.screenwh {
...
...
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