MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / getComp

Method getComp

packages/renderer-core/src/renderer/renderer.tsx:125–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 }
124
125 getComp() {
126 const { schema, components } = this.props;
127 const { componentName } = schema;
128 const allComponents = { ...RENDERER_COMPS, ...components };
129 let Comp = allComponents[componentName] || RENDERER_COMPS[`${componentName}Renderer`];
130 if (Comp && Comp.prototype) {
131 if (!(Comp.prototype instanceof BaseRenderer)) {
132 Comp = RENDERER_COMPS[`${componentName}Renderer`];
133 }
134 }
135 return Comp;
136 }
137
138 render() {
139 const { schema, designMode, appHelper, components } = this.props;

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected