File tree Expand file tree Collapse file tree
packages/designer/src/plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,7 +83,10 @@ export class LowCodePluginManager implements ILowCodePluginManager {
8383 }
8484 const ctx = this . _getLowCodePluginContext ( { pluginName, meta } ) ;
8585 const customFilterValidOptions = engineConfig . get ( 'customPluginFilterOptions' , filterValidOptions ) ;
86- const config = pluginModel ( ctx , customFilterValidOptions ( options , preferenceDeclaration ! ) ) ;
86+ const pluginTransducer = engineConfig . get ( 'customPluginTransducer' , null ) ;
87+ const newOptions = customFilterValidOptions ( options , preferenceDeclaration ! ) ;
88+ const newPluginModel = pluginTransducer ? await pluginTransducer ( pluginModel , ctx , newOptions ) : pluginModel ;
89+ const config = newPluginModel ( ctx , newOptions ) ;
8790 // compat the legacy way to declare pluginName
8891 // @ts -ignore
8992 pluginName = pluginName || config . name ;
You can’t perform that action at this time.
0 commit comments