Commit 8416fd59 authored by zhangwenshuai's avatar zhangwenshuai

revise 表单即时编辑校验

parent 9b643919
...@@ -92,7 +92,7 @@ class FormWrap extends Component { ...@@ -92,7 +92,7 @@ class FormWrap extends Component {
}; };
renderEditForm = (item) => { renderEditForm = (item) => {
const { getFieldDecorator, validateFieldsAndScroll } = this.props.form; const { getFieldDecorator } = this.props.form;
const { rowData, rowId, getInstanceDetail, onBlurFn } = this.props; const { rowData, rowId, getInstanceDetail, onBlurFn } = this.props;
const { const {
columnType, columnType,
...@@ -135,12 +135,7 @@ class FormWrap extends Component { ...@@ -135,12 +135,7 @@ class FormWrap extends Component {
if (_.isEqual(temp, newVal)) { if (_.isEqual(temp, newVal)) {
return; return;
} }
validateFieldsAndScroll((err:any) => { onBlurFn(changedValue);
// 即时编辑时需要对表单必填等规则校验
if (!err) {
onBlurFn(changedValue);
}
});
} }
}; };
return ( return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment