We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
步骤:
<XProvider theme={ant5xTheme} prefixCls={prefixCls} iconPrefixCls={"ant5x-icon"} locale={zhCNAnt} />
实际页面中的class名称仍然为 "anticon"
class名字变为 "ant5x-icon"
我的项目同时存在 antd 2.x 和 antd 5.x(因为项目太大,2.x升不上去)。所以我使用了 5.x 的 Provider 设置了 prefixCls 、iconPrefixCls 属性,它们一起工作地非常好,没有css冲突。但当我使用 Antd X 时,发现 icon 的没有按照预期工作,它显示了2次,原因是 Antd X 中的 icon 的 class 名没有按照 Provider 中的名字设置。
1.0.5
Chrome
The text was updated successfully, but these errors were encountered:
目前没有找到其他类似的问题报告。根据您的描述,可能需要检查以下几点:
确保正确使用 Provider: 确保 XProvider 的 iconPrefixCls 属性在应用中被正确传递和使用。
XProvider
iconPrefixCls
检查 CSS 覆盖: 确保没有其他的 CSS 覆盖了 iconPrefixCls 的设置。
版本兼容性: 确保您使用的 Antd X 版本与其他依赖库版本之间没有兼容性问题。
如果这些检查都没有解决问题,可能需要查看 Antd X 的源码,确认 iconPrefixCls 的实现是否存在问题。
如果您需要进一步的帮助,或者希望我为您创建一个问题报告,请告诉我。
Sorry, something went wrong.
No branches or pull requests
重现步骤
步骤:
当前行为
实际页面中的class名称仍然为 "anticon"

预期行为
class名字变为 "ant5x-icon"
上下文
我的项目同时存在 antd 2.x 和 antd 5.x(因为项目太大,2.x升不上去)。所以我使用了 5.x 的 Provider 设置了 prefixCls 、iconPrefixCls 属性,它们一起工作地非常好,没有css冲突。但当我使用 Antd X 时,发现 icon 的没有按照预期工作,它显示了2次,原因是 Antd X 中的 icon 的 class 名没有按照 Provider 中的名字设置。
版本
1.0.5
您在哪些浏览器上遇到了这个问题?
Chrome
The text was updated successfully, but these errors were encountered: