Commit af3e3ab4 authored by zhangwenshuai's avatar zhangwenshuai

必填校验

parent 39a62173
......@@ -117,7 +117,7 @@ class FormWrap extends Component {
{getFieldDecorator(columnName, {
validateFirst,
validateTrigger,
// rules: [{ required: !!item.requiredFlag, message: '必填项不能为空' }, ...rules],
rules: [{ required: !!item.requiredFlag, message: '必填项不能为空' }, ...rules],
initialValue: getFormat(detailConfig, item, value),
})(
<EditComp
......
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