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

This commit is contained in:
2betop 2020-03-26 19:18:45 +08:00
parent 5b444f27ac
commit e9a6425e8a
1 changed files with 5 additions and 3 deletions

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);