还原代码

This commit is contained in:
2betop 2020-06-01 13:53:39 +08:00
parent 10af464a6e
commit 96c3b73434
2 changed files with 665 additions and 683 deletions

File diff suppressed because it is too large Load Diff

View File

@ -34,7 +34,6 @@ import {LazyComponent} from '../../components';
import {isAlive} from 'mobx-state-tree';
import {asFormItem} from './Item';
import {SimpleMap} from '../../utils/SimpleMap';
import {asOptionsControl} from './Options';
export type FormGroup = FormSchema & {
title?: string;
className?: string;
@ -1027,11 +1026,7 @@ export default class Form extends React.Component<FormProps, object> {
control.options || {
strictMode: false
}
)(
control.options || control.source
? asOptionsControl(control.component)
: control.component
);
)(control.component);
this.componentCache.set(control.component, cache);
control.component = cache;
}