Closed jsoyoy closed 1 year ago
💻 示例代码
Them.tsx
index.tsx
效果图
我现在的方案是通过ThemeProvider注入自定义的变量,然后在把需要覆写样式挂载到ThemWrapper这个包裹组件上。对应的Button这种组件能实现样式覆盖,但是对于message这种没有挂载到根节点的组件是不会生效的。请问有没有更好的方法去覆盖它的样式。
应该可以直接使用 ConfigProvider 的能力了。感觉可以不用放在 antd-style 里来做
🧐 问题描述
业务开发,基于antd的二次开发,message、modal需要重写样式,如何通过antd-style去进行样式覆盖呢?
💻 示例代码
🚑 其他信息