From 0ddb54843559de5064071a2922ff2670713a6b07 Mon Sep 17 00:00:00 2001 From: Katherine Date: Sun, 29 Sep 2024 15:51:49 +0800 Subject: [PATCH] refactor: action panel support using in popup (#5341) --- .../@nocobase/plugin-block-workbench/src/client/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/plugins/@nocobase/plugin-block-workbench/src/client/index.tsx b/packages/plugins/@nocobase/plugin-block-workbench/src/client/index.tsx index 71aed6b693..691e9cd2c9 100644 --- a/packages/plugins/@nocobase/plugin-block-workbench/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-block-workbench/src/client/index.tsx @@ -44,6 +44,12 @@ export class PluginBlockWorkbenchClient extends Plugin { `otherBlocks.${workbenchBlockInitializerItem.name}`, workbenchBlockInitializerItem, ); + // 添加到弹窗的 Add block 里 + this.app.schemaInitializerManager.addItem( + 'popup:common:addBlock', + `otherBlocks.${workbenchBlockInitializerItem.name}`, + workbenchBlockInitializerItem, + ); // 添加到移动端的 Add block 里 this.app.schemaInitializerManager.addItem(