refactor: action panel support using in popup (#5341)

This commit is contained in:
Katherine 2024-09-29 15:51:49 +08:00 committed by GitHub
parent 8068707d63
commit 0ddb548435
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(