mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 18:42:56 +00:00
fix: plugin context, enhancePluginContextHook not working
This commit is contained in:
parent
335314aec6
commit
f6feef218a
@ -60,5 +60,6 @@
|
|||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"@builder/babel-preset-ice": "1.0.1"
|
"@builder/babel-preset-ice": "1.0.1"
|
||||||
}
|
},
|
||||||
}
|
"repository": "git@github.com:alibaba/lowcode-engine.git"
|
||||||
|
}
|
||||||
@ -41,6 +41,7 @@ export default class PluginContext implements ILowCodePluginContext, ILowCodePlu
|
|||||||
options: IPluginContextOptions,
|
options: IPluginContextOptions,
|
||||||
contextApiAssembler: ILowCodePluginContextApiAssembler,
|
contextApiAssembler: ILowCodePluginContextApiAssembler,
|
||||||
) {
|
) {
|
||||||
|
contextApiAssembler.assembleApis(this);
|
||||||
this.plugins = plugins;
|
this.plugins = plugins;
|
||||||
const { pluginName = 'anonymous' } = options;
|
const { pluginName = 'anonymous' } = options;
|
||||||
this.logger = getLogger({ level: 'warn', bizName: `designer:plugin:${pluginName}` });
|
this.logger = getLogger({ level: 'warn', bizName: `designer:plugin:${pluginName}` });
|
||||||
@ -49,8 +50,6 @@ export default class PluginContext implements ILowCodePluginContext, ILowCodePlu
|
|||||||
if (enhancePluginContextHook) {
|
if (enhancePluginContextHook) {
|
||||||
enhancePluginContextHook(this);
|
enhancePluginContextHook(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
contextApiAssembler.assembleApis(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setPreference(
|
setPreference(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user