ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

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

Open changjiaqio opened this issue 1 year ago • 7 comments
trafficstars

  • [x] 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

changjiaqio avatar Apr 26 '24 11:04 changjiaqio

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

changjiaqio avatar Apr 29 '24 00:04 changjiaqio

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

extclp avatar Apr 29 '24 06:04 extclp

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

changjiaqio avatar Apr 30 '24 01:04 changjiaqio

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

selicens avatar Apr 30 '24 03:04 selicens

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

selicens avatar Apr 30 '24 04:04 selicens

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jun 30 '24 02:06 github-actions[bot]