This commit is contained in:
parent
83e35aba5d
commit
0a5c6e91ee
|
@ -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">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.form-label{
|
||||
width: 180px;
|
||||
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -103,7 +103,7 @@ export default class acclist extends React.Component{
|
|||
{return_val}
|
||||
</Tabs>
|
||||
</FormItem>
|
||||
<FormItem labelname="开始~结束时间" prop="date_time">
|
||||
<FormItem labelname="开始~结束时间" prop="date_time" >
|
||||
<CombinedDateRangePicker
|
||||
className="zent-datepicker-plan"
|
||||
value={this.state.model.date_time}
|
||||
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue