| | |
| | | <Col span={item.span || 24} key={index}> |
| | | <Form.Item |
| | | colon={!!item.label} |
| | | label={item.label || ' '} |
| | | label={item.label} |
| | | labelCol={item.labelCol} |
| | | wrapperCol={item.wrapperCol} |
| | | className="hint" |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { action } = this.props |
| | | |
| | | let _align = 'left_right' |
| | | if (action.setting && action.setting.align) { |
| | | _align = action.setting.align |
| | | } |
| | | |
| | | return ( |
| | | <Form className="main-form-field" id="main-form-box"> |
| | | <Form className={'main-form-field ' + _align} id="main-form-box"> |
| | | <Row gutter={24}>{this.getFields()}</Row> |
| | | </Form> |
| | | ) |