You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @MorganDream, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!
基于antd4对于ts和hooks的良好支持,我们决定升级antd。
为了符合项目兼容新旧代码的模式。我们用了antd3与antd4并存的模式。
"antd": "3.0.0", "antd4": "npm:antd@4.6.2",
我们有个地方用到了icon,icon的type是动态获取的。这在antd4的icon设计模式下基本无解。于是采用了@ant-designs/compatible的兼容包,而兼容包的默认去引用antd也就是版本3了。
我见过一些UI库,基本icon的引入都是通过某个prop甚至class就能解决。像antd4的这种硬引入模式对动态化、可配置化开发极为不友好。
虽然你们可能不会给出解决方法,但还是要吐槽一下。
The text was updated successfully, but these errors were encountered: