Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问在开发插件时,如何全局注入 Provider,如:antd 的 ConfigProvider 或 react-redux 的 Provider #3086

Open
Zyunchao opened this issue Aug 21, 2024 · 0 comments

Comments

@Zyunchao
Copy link

Zyunchao commented Aug 21, 2024

项目前提:开发自己项目使用的插件

在开发插件时,使用 antd 做插件的组件内容,我不想通过为每个插件嵌套 ConfigProvider,未能在文档 api 中查找到类似的全局 Provider 注入的 api,应该是只是针对 skeleton 的 Provider

在查看源码时,找到 https://github.com/alibaba/lowcode-engine/blob/main/packages/editor-skeleton/src/layouts/workbench.tsx#L38

期望是不是能够在这里提供一个 全局的(多个 Provider)的注入?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant