forked from p96170835/amis
这些容器类型,不应该处理自己的onChange 逻辑
This commit is contained in:
parent
708f3893c1
commit
075d06d2b4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue