mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
form item component 写法,默认是非严格模式
This commit is contained in:
parent
e7e903b53c
commit
11b6ecba87
@ -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
Block a user