This commit is contained in:
北海一刀 2021-11-10 16:28:53 +08:00
parent 83e35aba5d
commit 0a5c6e91ee
4 changed files with 15 additions and 16 deletions

View File

@ -20,11 +20,12 @@ import Menu from "../menu/main.js"
}
}
render() {
const {labelname,prop} = this.props
const {labelname,prop,labelwidth} = this.props
console.log(labelwidth)
return (
<div className ="form-Item">
<div className="form-label" style={{width:"180px"}}>
<div className="form-label" style={{width: labelwidth ? labelwidth : "180px" }}>
{labelname}
</div>
<div className="form-compontent">

View File

@ -1,5 +1,5 @@
.form-label{
width: 180px;
height: 100%;
display: flex;
align-items: center;

View File

@ -50,7 +50,14 @@ export default class add extends React.Component{
<Card style={{ width:'100%' }} title={this.state.step1_pagetitle}>
<Step1/>
</Card>
<div className="btn-group">
<Button type="primary" htmlType="submit" onClick={()=>{this.submit()}}>
提交
</Button>
<Button type="normal" htmlType="reset" >
取消
</Button>
</div>
</div>
</div>

View File

@ -114,19 +114,10 @@ export default class acclist extends React.Component{
format="YYYY-MM-DD HH:mm:ss"
onChange={this.onChangeCombinedDate}
/>
</FormItem>
</Form>
<div className="step-btn-group">
<div className="btn-group">
<Button type="primary" htmlType="submit" onClick={()=>{this.submit()}}>
提交
</Button>
<Button type="normal" htmlType="reset" >
取消
</Button>
</div>
</div>
</div>
)
}