forked from p96170835/amis
form item component 写法,默认是非严格模式
This commit is contained in:
parent
5b444f27ac
commit
e9a6425e8a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue