diff --git a/packages/amis-core/src/SchemaRenderer.tsx b/packages/amis-core/src/SchemaRenderer.tsx index efbeef0e637..18d6dcd7d0e 100644 --- a/packages/amis-core/src/SchemaRenderer.tsx +++ b/packages/amis-core/src/SchemaRenderer.tsx @@ -325,7 +325,6 @@ export class SchemaRenderer extends React.Component { rootStore, statusStore, render, - key: propKey, ...rest } = this.props; @@ -399,6 +398,7 @@ export class SchemaRenderer extends React.Component { data: defaultData, value: defaultValue, // render时的value改放defaultValue中 activeKey: defaultActiveKey, + key: propKey, ...restSchema } = schema; return rest.invisible @@ -464,6 +464,7 @@ export class SchemaRenderer extends React.Component { data: defaultData, value: defaultValue, activeKey: defaultActiveKey, + key: propKey, ...restSchema } = schema; const Component = renderer.component!;