tdesign-react icon indicating copy to clipboard operation
tdesign-react copied to clipboard

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

Open Except10n opened this issue 1 year ago • 5 comments

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

Except10n avatar Mar 15 '24 17:03 Except10n

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

github-actions[bot] avatar Mar 15 '24 17:03 github-actions[bot]

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

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

HaixingOoO avatar Mar 16 '24 14:03 HaixingOoO

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

Except10n avatar Apr 03 '24 09:04 Except10n

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

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

HaixingOoO avatar Apr 03 '24 12:04 HaixingOoO

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

ayuechuan avatar Aug 04 '24 17:08 ayuechuan

1.11.8 版本中引入的新特性已经解决了这个问题 相关 PR:https://github.com/Tencent/tdesign-react/pull/3513/

RylanBot avatar Sep 16 '25 05:09 RylanBot