Skip to content

Commit

Permalink
fix: fixed the problem caused by component list being overwritten by Hoc
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping authored and JackLian committed Oct 26, 2023
1 parent 0f02080 commit 11ee97c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/renderer-core/src/renderer/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -615,9 +615,6 @@ export default function baseRendererFactory(): IBaseRenderComponent {
});
});

Comp = compWrapper(Comp, { baseRenderer: this, schema });
components[schema.componentName] = Comp;

otherProps.ref = (ref: any) => {
this.$(props.fieldId || props.ref, ref); // 收集ref
const refProps = props.ref;
Expand Down Expand Up @@ -701,9 +698,9 @@ export default function baseRendererFactory(): IBaseRenderComponent {
*/
get __componentHOCs(): IComponentConstruct[] {
if (this.__designModeIsDesign) {
return [leafWrapper];
return [leafWrapper, compWrapper];
}
return [];
return [compWrapper];
}

__getSchemaChildrenVirtualDom = (schema: IPublicTypeNodeSchema | undefined, scope: any, Comp: any, condition = true) => {
Expand Down

0 comments on commit 11ee97c

Please sign in to comment.