mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 18:42:56 +00:00
fix(rax-renderer): fix type issue during build
This commit is contained in:
parent
c2db198415
commit
eafdf78ad8
@ -41,8 +41,8 @@ function factory() {
|
||||
};
|
||||
}
|
||||
|
||||
const RaxRenderer = factory();
|
||||
const Engine = RaxRenderer;
|
||||
const RaxRenderer: any = factory();
|
||||
const Engine: any = RaxRenderer;
|
||||
|
||||
export {
|
||||
Engine,
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { blockRendererFactory, types } from '@alilc/lowcode-renderer-core';
|
||||
|
||||
export default function raxBlockRendererFactory() {
|
||||
const raxBlockRendererFactory: () => any = () => {
|
||||
const OriginBlock = blockRendererFactory();
|
||||
return class BlockRenderer extends OriginBlock {
|
||||
render() {
|
||||
@ -21,4 +21,5 @@ export default function raxBlockRendererFactory() {
|
||||
return that.__renderContextConsumer(children);
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
export default raxBlockRendererFactory;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { componentRendererFactory, types } from '@alilc/lowcode-renderer-core';
|
||||
|
||||
export default function raxComponentRendererFactory() {
|
||||
const raxComponentRendererFactory: () => any = () => {
|
||||
const OriginComponent = componentRendererFactory();
|
||||
return class ComponentRenderer extends OriginComponent {
|
||||
render() {
|
||||
@ -33,4 +33,5 @@ export default function raxComponentRendererFactory() {
|
||||
return that.__renderContent(content);
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
export default raxComponentRendererFactory;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { pageRendererFactory, types } from '@alilc/lowcode-renderer-core';
|
||||
|
||||
export default function raxPageRendererFactory() {
|
||||
const raxPageRendererFactory: () => any = () => {
|
||||
const OriginPage = pageRendererFactory();
|
||||
return class PageRenderer extends OriginPage {
|
||||
async componentDidUpdate() {
|
||||
@ -33,4 +33,6 @@ export default function raxPageRendererFactory() {
|
||||
}));
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
export default raxPageRendererFactory;
|
||||
Loading…
x
Reference in New Issue
Block a user