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

[Message] MessagePlugin调用时, ConfigProvider.classPrefix 不生效 #2803

Open
Except10n opened this issue Mar 15, 2024 · 5 comments
Open
Labels
enhancement New feature or request improvement

Comments

@Except10n
Copy link
Contributor

Except10n commented Mar 15, 2024

tdesign-react 版本

18

重现链接

https://codesandbox.io/p/devbox/messageplugin-tp5wgh

重现步骤

image

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @Except10n,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@HaixingOoO
Copy link
Collaborator

@Except10n 您好,我们讨论过后续会添加支持的,

`configProvider`是`context`(作用于`<div id="root"></div>`),
`mesageplugin`使用时因为是在`body`插入`message`的,所以目前`configProvider`不生效

@HaixingOoO HaixingOoO added enhancement New feature or request improvement and removed enhancement New feature or request labels Mar 16, 2024
@Except10n
Copy link
Contributor Author

@HaixingOoO 下个版本有计划添加么

@HaixingOoO
Copy link
Collaborator

@HaixingOoO 下个版本有计划添加么

因为目前的message的实现方式,没那么快解决这个问题,可能会重大更改

@ayuechuan
Copy link

<ConfigProvider
globalConfig={{
classPrefix: import.meta.env.VITE_PUBLIC_PREFIX,
...locales
}}>
设置了prefix ,message 和 modal函数式通知和弹框无法正常显示 属于是重大 bug 。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request improvement
Projects
None yet
Development

No branches or pull requests

3 participants