src/templates/sharecomponent/actioncomponent/verifyexcelout/columnform/index.jsx
@@ -12,11 +12,12 @@ // 表单提交时检查输入值是否正确 this.props.form.validateFieldsAndScroll((err, values) => { if (!err) { this.props.columnChange(values) this.props.form.setFieldsValue({ Column: '', Text: '', Width: 20 this.props.columnChange(values, () => { this.props.form.setFieldsValue({ Column: '', Text: '', Width: 20 }) }) } }) @@ -46,6 +47,10 @@ { required: true, message: '请输入字段!' }, { pattern: /^[\u4E00-\u9FA50-9a-zA-Z_]*$/ig, message: '只允许包含数字、字母、汉字以及_' } ] })(<Input placeholder="" autoComplete="off" onPressEnter={this.handleConfirm}/>)}