Closed fz6m closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
此次更新主要在 antd.ts
文件中添加了 modelPluginCompat
变量,并在 runtime.ts.tpl
文件中的 getAntdConfig
函数中增加了一个条件块,以初始化 cacheAntdConfig.theme
,确保其存在。
文件路径 | 变更摘要 |
---|---|
packages/plugins/src/antd.ts | 在导出的函数中添加了 modelPluginCompat 变量 |
packages/plugins/templates/antd/runtime.ts.tpl | 在 getAntdConfig 函数中增加了条件块,以初始化 cacheAntdConfig.theme |
🐰✨ 代码如诗,变化如画, 增添变量,兼容无瑕。 初始化主题,配置无差, 代码世界,创新无涯。 🌟🌈
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
close #12394
修复使用
useAntdConfigSetter
方法更改主题时,和 model 插件逻辑发生的冲突。Summary by CodeRabbit
modelPluginCompat
的支持,增强了插件的兼容性。getAntdConfig
函数,确保cacheAntdConfig.theme
在不存在时能被初始化。