mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-14 13:03:07 +00:00
fix: fix utils under appHelper will not be updated when props.appHelper is updated
This commit is contained in:
parent
857685a3b4
commit
dc0cf5f62c
@ -131,7 +131,6 @@ export default function baseRendererFactory(): IBaseRenderComponent {
|
|||||||
|
|
||||||
static contextType = AppContext;
|
static contextType = AppContext;
|
||||||
|
|
||||||
appHelper?: IRendererAppHelper;
|
|
||||||
i18n: any;
|
i18n: any;
|
||||||
getLocale: any;
|
getLocale: any;
|
||||||
setLocale: any;
|
setLocale: any;
|
||||||
@ -174,7 +173,6 @@ export default function baseRendererFactory(): IBaseRenderComponent {
|
|||||||
__beforeInit(_props: IBaseRendererProps) { }
|
__beforeInit(_props: IBaseRendererProps) { }
|
||||||
|
|
||||||
__init(props: IBaseRendererProps) {
|
__init(props: IBaseRendererProps) {
|
||||||
this.appHelper = props.__appHelper;
|
|
||||||
this.__compScopes = {};
|
this.__compScopes = {};
|
||||||
this.__instanceMap = {};
|
this.__instanceMap = {};
|
||||||
this.__bindCustomMethods(props);
|
this.__bindCustomMethods(props);
|
||||||
@ -1019,6 +1017,10 @@ export default function baseRendererFactory(): IBaseRenderComponent {
|
|||||||
return !isSchema(schema) || !componentNames.includes(schema?.componentName ?? '');
|
return !isSchema(schema) || !componentNames.includes(schema?.componentName ?? '');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
get appHelper(): IRendererAppHelper {
|
||||||
|
return this.props.__appHelper;
|
||||||
|
}
|
||||||
|
|
||||||
get requestHandlersMap() {
|
get requestHandlersMap() {
|
||||||
return this.appHelper?.requestHandlersMap;
|
return this.appHelper?.requestHandlersMap;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user