调整弹编辑样式

This commit is contained in:
梁才军 2019-04-29 12:00:54 +08:00
parent d9148e88cc
commit 992d9415d5
7 changed files with 31 additions and 24 deletions

View File

@ -362,18 +362,18 @@ class EditModal extends Component {
<Modal <Modal
show={show} show={show}
onHide={onHide} onHide={onHide}
style={{ width: 700 }} style={{ width: 800 }}
className="demo0503-m-b" className="demo0503-m-b"
> >
<Modal.Header closeButton> <Modal.Header closeButton>
<Modal.Title>编辑行</Modal.Title> <Modal.Title>编辑行</Modal.Title>
</Modal.Header> </Modal.Header>
<Modal.Body > <Modal.Body>
<Row style={{ width: 660, margin: "0 auto" }}> <Row style={{ width: 770, margin: "0 auto" }}>
{ {
columns.map((item, index) => { columns.map((item, index) => {
return ( return (
<Col sm={6} md={6} lg={6} style={{ padding: 0 }} key={index}> <Col sm={6} md={6} lg={6} style={{ padding: "0 0 0 10px" }} key={index}>
<FormGroup> <FormGroup>
<Label>{item.title}</Label> <Label>{item.title}</Label>
{this.renderElm[item.key] && {this.renderElm[item.key] &&
@ -396,7 +396,7 @@ class EditModal extends Component {
} }
</Row> </Row>
</Modal.Body> </Modal.Body>
<Modal.Footer style={{textAlign: "center"}}> <Modal.Footer style={{textAlign: "right"}}>
<Button <Button
colors="dark" colors="dark"
className="btn-abort" className="btn-abort"

View File

@ -9,6 +9,10 @@
} }
} }
.u-modal .u-modal-body {
padding: 16px 0;
}
.u-form-group { .u-form-group {
overflow: hidden; overflow: hidden;
} }
@ -17,17 +21,17 @@
font-size: 12px; font-size: 12px;
} }
.u-modal-title {
text-align: center;
}
.editable-cell { .editable-cell {
display: block; display: block;
float: left; float: left;
width: 220px; width: 265px;
padding-right: 25px; padding-right: 25px;
} }
.ref-input-wrap {
width: 240px !important;
}
.u-label { .u-label {
display: block; display: block;
float: left; float: left;
@ -47,7 +51,7 @@
top: 9px; top: 9px;
left: -9px; left: -9px;
color: red; color: red;
font-size: 18px; font-size: 14px;
} }
} }

File diff suppressed because one or more lines are too long

13
dist/demo.css vendored
View File

@ -770,21 +770,24 @@
.demo0503-m-b button.btn-abort:hover { .demo0503-m-b button.btn-abort:hover {
background-color: #eff0f3 !important; } background-color: #eff0f3 !important; }
.demo0503-m-b .u-modal .u-modal-body {
padding: 16px 0; }
.demo0503-m-b .u-form-group { .demo0503-m-b .u-form-group {
overflow: hidden; } overflow: hidden; }
.demo0503-m-b .u-form-control { .demo0503-m-b .u-form-control {
font-size: 12px; } font-size: 12px; }
.demo0503-m-b .u-modal-title {
text-align: center; }
.demo0503-m-b .editable-cell { .demo0503-m-b .editable-cell {
display: block; display: block;
float: left; float: left;
width: 220px; width: 265px;
padding-right: 25px; } padding-right: 25px; }
.demo0503-m-b .ref-input-wrap {
width: 240px !important; }
.demo0503-m-b .u-label { .demo0503-m-b .u-label {
display: block; display: block;
float: left; float: left;
@ -802,7 +805,7 @@
top: 9px; top: 9px;
left: -9px; left: -9px;
color: red; color: red;
font-size: 18px; } font-size: 14px; }
.demo0503-m-b .required-icon { .demo0503-m-b .required-icon {
position: absolute; position: absolute;

2
dist/demo.css.map vendored

File diff suppressed because one or more lines are too long

10
dist/demo.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long