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

Bug - ConfigProvider 组件 设置了 prefixcls后 Modal 内 prefixcls 未更改 。4.2.1版本 #7536

Open
1 task done
changjiaqio opened this issue Apr 26, 2024 · 6 comments

Comments

@changjiaqio
Copy link

changjiaqio commented Apr 26, 2024

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

undefined

Environment

vue - 3.4.23 和 antd-desinger-vue - 4.2.0

Reproduction link

https://www.antdv.com/components/config-provider-cn

Steps to reproduce

main.ts内
ConfigProvider.config({
prefixCls: 'blr',
});
根节点内
ConfigProvider.config({
prefixCls: 'blr',
});
根据less-loader 修改 @ant-prefixCls 都无用

此时 打开谷歌 devtools 发现 prefixCls 还是 ant

What is expected?

Modal prefixCls 应该为 blr

What is actually happening?

此时 打开谷歌 devtools 发现 prefixCls 还是 ant


希望 antv 团队有时间看一下 ,辛苦各位老师们。
image

image

@extclp
Copy link
Contributor

extclp commented Apr 28, 2024

参考 ConfigProvider 全局化配置

@changjiaqio
Copy link
Author

antd-desinger-vue 与 antd-desinger config 配置有出入的。

@changjiaqio changjiaqio changed the title ConfigProvider 组件 设置了 prefixcls后 Modal 内 prefixcls 未更改 。4.2.0版本 Bug - ConfigProvider 组件 设置了 prefixcls后 Modal 内 prefixcls 未更改 。4.2.0版本 Apr 29, 2024
@changjiaqio changjiaqio changed the title Bug - ConfigProvider 组件 设置了 prefixcls后 Modal 内 prefixcls 未更改 。4.2.0版本 Bug - ConfigProvider 组件 设置了 prefixcls后 Modal 内 prefixcls 未更改 。4.2.1版本 Apr 29, 2024
@extclp
Copy link
Contributor

extclp commented Apr 29, 2024

用法功能一样, 文档那边没写清楚

@changjiaqio
Copy link
Author

f29b5333ee7d419e87333e71b5ad3303
从 源码 去看入参是和antd有出入的

@selicens
Copy link
Member

@selicens
Copy link
Member

image
哪种能达到效果就先用哪种呗

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

3 participants