| | |
| | | // 表单提交时检查输入值是否正确 |
| | | this.props.form.validateFieldsAndScroll((err, values) => { |
| | | if (!err) { |
| | | this.props.columnChange(values) |
| | | this.props.form.setFieldsValue({ |
| | | label: '', |
| | | field: '' |
| | | this.props.columnChange(values, () => { |
| | | this.props.form.setFieldsValue({ |
| | | label: '', |
| | | field: '' |
| | | }) |
| | | }) |
| | | } |
| | | }) |
| | |
| | | message: dict['form.required.input'] + '名称!' |
| | | } |
| | | ] |
| | | })(<Input placeholder="" autoComplete="off" />)} |
| | | })(<Input placeholder="" autoComplete="off" onPressEnter={this.handleConfirm}/>)} |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={6}> |
| | |
| | | { |
| | | required: true, |
| | | message: dict['form.required.input'] + '字段!' |
| | | }, |
| | | { |
| | | pattern: /^[\u4E00-\u9FA50-9a-zA-Z_]*$/ig, |
| | | message: '字段名只允许包含数字、字母、汉字以及_' |
| | | } |
| | | ] |
| | | })(<Input placeholder="" autoComplete="off" />)} |
| | | })(<Input placeholder="" autoComplete="off" onPressEnter={this.handleConfirm} />)} |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={6}> |