Commit 2d6c68b3 authored by 左玲玲's avatar 左玲玲 😬

样式优化

parent 0f387267
...@@ -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: 10, display: 'inline-block' }} >{item.title}</label> <label htmlFor="" style={{ marginBottom: 14, 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: 10, display: 'inline-block' }} >{item.title}</label> <label htmlFor="" style={{ marginBottom: 14, 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
}) })
} }
})} })}
......
...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment