这些容器类型,不应该处理自己的onChange 逻辑

This commit is contained in:
2betop 2020-07-13 12:04:47 +08:00
parent 708f3893c1
commit 075d06d2b4
1 changed files with 5 additions and 2 deletions

View File

@ -365,8 +365,11 @@ export default class FormControl extends React.PureComponent<
formInited
} = this.props;
// todo 以后想办法不要強耦合类型。
if (!this.model || ~['service'].indexOf(type)) {
if (
!this.model ||
// todo 以后想办法不要強耦合类型。
~['service', 'group', 'hbox', 'panel', 'grid'].indexOf(type)
) {
onChange && onChange(...(arguments as any));
return;
}