form item component 写法,默认是非严格模式

This commit is contained in:
2betop 2020-03-26 19:18:45 +08:00
parent e7e903b53c
commit 11b6ecba87

View File

@ -995,9 +995,11 @@ export default class Form extends React.Component<FormProps, object> {
}
if (control.component && control.label && control.name) {
control.component = asFormItem(control.options || {})(
control.component
);
control.component = asFormItem(
control.options || {
strictMode: false
}
)(control.component);
}
control.hiddenOn && (subSchema.hiddenOn = control.hiddenOn);