diff --git a/src/renderers/Form/Container.tsx b/src/renderers/Form/Container.tsx index 738b0d5ea..0075495bd 100644 --- a/src/renderers/Form/Container.tsx +++ b/src/renderers/Form/Container.tsx @@ -12,6 +12,8 @@ export interface ContainerProps extends FormControlProps {} sizeMutable: false }) export class ContainerControlRenderer extends Container { + static propsList: Array = ['onChange']; + renderBody(): JSX.Element | null { const { renderFormItems, diff --git a/src/renderers/Form/Grid.tsx b/src/renderers/Form/Grid.tsx index 15d88556b..36b12667c 100644 --- a/src/renderers/Form/Grid.tsx +++ b/src/renderers/Form/Grid.tsx @@ -20,7 +20,7 @@ const defaultHorizontal = { sizeMutable: false }) export class GridRenderer extends Grid { - static propsList: Array = ['columns']; + static propsList: Array = ['columns', 'onChange']; static defaultProps = {}; renderChild(region: string, node: Schema, key: number, length: number) { diff --git a/src/renderers/Form/HBox.tsx b/src/renderers/Form/HBox.tsx index 8750831fd..61a9e97e6 100644 --- a/src/renderers/Form/HBox.tsx +++ b/src/renderers/Form/HBox.tsx @@ -16,7 +16,7 @@ interface HBoxProps extends FormControlProps { sizeMutable: false }) export class HBoxRenderer extends React.Component { - static propsList: Array = ['columns']; + static propsList: Array = ['columns', 'onChange']; static defaultProps: Partial = {}; renderColumn(column: any, key: number, length: number) { diff --git a/src/renderers/Form/Panel.tsx b/src/renderers/Form/Panel.tsx index 41b4735bc..5c7535e8e 100644 --- a/src/renderers/Form/Panel.tsx +++ b/src/renderers/Form/Panel.tsx @@ -10,6 +10,7 @@ import cx from 'classnames'; name: 'panel-control' }) export class PanelRenderer extends Panel { + static propsList: Array = ['onChange']; renderBody(): JSX.Element | null { const { render, diff --git a/src/renderers/Form/Service.tsx b/src/renderers/Form/Service.tsx index 616c123e9..1d293cf29 100644 --- a/src/renderers/Form/Service.tsx +++ b/src/renderers/Form/Service.tsx @@ -15,6 +15,7 @@ import {ServiceStore, IServiceStore} from '../../store/service'; name: 'service-control' }) export class ServiceRenderer extends BasicService { + static propsList: Array = ['onChange']; static contextType = ScopedContext; componentWillMount() { diff --git a/src/renderers/Form/Tabs.tsx b/src/renderers/Form/Tabs.tsx index 97361c7d4..1e053e21e 100644 --- a/src/renderers/Form/Tabs.tsx +++ b/src/renderers/Form/Tabs.tsx @@ -14,6 +14,7 @@ export class TabsRenderer extends Tabs { static defaultProps = { mountOnEnter: false // form 中的不按需渲染 }; + static propsList: Array = ['onChange', 'tabs']; renderTab = (tab: any, props: any, key: number) => { const {