Merge branch 'release/1.0.26' of gitlab.alibaba-inc.com:ali-lowcode/ali-lowcode-engine into release/1.0.26

This commit is contained in:
力皓 2020-12-17 15:51:36 +08:00
commit 4cf6637c4a
2 changed files with 14 additions and 2 deletions

View File

@ -257,6 +257,9 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
// sync designMode // sync designMode
this._designMode = host.designMode; this._designMode = host.designMode;
// sync requestHandlersMap
this._requestHandlersMap = host.requestHandlersMap;
// sync device // sync device
this._device = host.device; this._device = host.device;
@ -318,6 +321,7 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
}, },
}, },
constants: {}, constants: {},
requestHandlersMap: this._requestHandlersMap,
}; };
host.injectionConsumer.consume((data) => { host.injectionConsumer.consume((data) => {
// sync utils, i18n, contants,... config // sync utils, i18n, contants,... config
@ -357,6 +361,10 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
@computed get device() { @computed get device() {
return this._device; return this._device;
} }
@obx.ref private _requestHandlersMap = null;
@computed get requestHandlersMap(): any {
return this._requestHandlersMap;
}
@obx.ref private _componentsMap = {}; @obx.ref private _componentsMap = {};
@computed get componentsMap(): any { @computed get componentsMap(): any {
return this._componentsMap; return this._componentsMap;

View File

@ -211,6 +211,9 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
// sync designMode // sync designMode
this._designMode = host.designMode; this._designMode = host.designMode;
// sync requestHandlersMap
this._requestHandlersMap = host.requestHandlersMap;
// sync device // sync device
this._device = host.device; this._device = host.device;
}); });
@ -261,10 +264,11 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
getUrlParams() { getUrlParams() {
const search = history.location.search; const search = history.location.search;
return parseQuery(search); return parseQuery(search);
} },
} },
}, },
constants: {}, constants: {},
requestHandlersMap: this._requestHandlersMap,
}; };
host.injectionConsumer.consume((data) => { host.injectionConsumer.consume((data) => {
// sync utils, i18n, contants,... config // sync utils, i18n, contants,... config