Releases: ant-design/ant-design-pro
v6.0.0-beta.4
🚀 主要更新
新特性
- TailwindCSS v4 升级 — 从 TailwindCSS v3 升级到 v4,使用新版配置方式 (#11668)
- React Query 迁移 — 从 useRequest 迁移到 @tanstack/react-query,提升数据请求和缓存管理能力 (#11665)
- Cloudflare Worker API — 将 mock API 迁移到 Cloudflare Worker,支持独立部署 (#11655, #11659)
- Footer 版本信息 — 页脚展示当前版本号和 commit hash (#11660)
- CI 环境变量 — 部署脚本支持 CI 环境变量配置 (#11672)
修复
- 修复 Tailwind CSS 因 Less import 顺序问题未生效 (#11662)
- 修复 Monitor 页面地图显示问题 (#11676)
- 修复 CORS 不支持多级子域名的问题 (#11664)
- 修复 mock 路由重复注册警告 (#11657)
- 修复多个 UI 显示问题 (#11678, #11679)
重构
- 提取共享 mock 工具函数,减少重复代码 (#11674)
- 移除 font smoothing CSS 属性 (#11663)
- Welcome 页面使用 Tailwind CSS 重构 (#11679)
💥 Breaking Changes
- useRequest → react-query: 数据请求方式变更,项目内使用 useRequest 的地方需迁移到 react-query
- TailwindCSS v4: 配置文件格式变更,需注意与 v3 的兼容性差异
Full Changelog: v6.0.0-beta.3...v6.0.0-beta.4
v6.0.0-beta.3
🎉 Ant Design Pro v6.0.0-beta.3
这是一个增量更新版本,带来了性能优化和多项问题修复!
⚡ 性能优化
- 路由预加载:启用
routePrefetch配置,实现更快速的页面切换体验
🆕 新特性
- 全局表单样式:设置全局表单 variant 为 filled 样式,提升表单视觉一致性
🔧 重构
- 精简插件配置:移除
umi-presets-pro,直接使用插件配置,减少抽象层级,配置更加透明
🐛 问题修复
- 修复暗黑主题样式问题
- 修复 ModalForm 触发器子组件类型定义
- 修复账户设置页面的边框样式问题
- 修复右侧内容区域的边距和边框显示
- 修复菜单边框样式的 CSS 优先级问题
- 修复代码扫描发现的安全漏洞
📦 依赖更新
- TypeScript 升级到 6.0.2
- Tailwind CSS 升级到 4.2.2
- Express 升级到 5.2.1
- @umijs/max 版本更新
📝 文档
- 修复 README 语言链接格式
🙏 致谢
感谢所有为此版本做出贡献的开发者!
完整变更日志: v6.0.0-beta.2...v6.0.0-beta.3
English Version
🎉 Ant Design Pro v6.0.0-beta.3
This is an incremental update with performance optimizations and bug fixes!
⚡ Performance
- Route Prefetch: Enabled
routePrefetchconfiguration for faster page transitions
🆕 New Features
- Global Form Style: Set global form variant to filled style for consistent form appearance
🔧 Refactoring
- Simplified Plugin Config: Removed
umi-presets-pro, using plugins directly for more transparent configuration
🐛 Bug Fixes
- Fixed dark theme styling issues
- Fixed ModalForm trigger children type definition
- Fixed border styling in account settings page
- Fixed margin and border display in right content area
- Fixed CSS specificity for menu border override
- Fixed security vulnerabilities from code scanning
📦 Dependency Updates
- TypeScript upgraded to 6.0.2
- Tailwind CSS upgraded to 4.2.2
- Express upgraded to 5.2.1
- @umijs/max version updated
📝 Documentation
- Fixed README language link formatting
🙏 Acknowledgments
Thanks to all contributors who made this release possible!
Full Changelog: v6.0.0-beta.2...v6.0.0-beta.3
v6.0.0-beta.2
🎉 Ant Design Pro v6.0.0-beta.2
这是一个重要的预发布版本,带来了众多令人兴奋的新特性和改进!
⚡ 核心升级
🚀 构建工具全面升级
- Utoo 构建:从 Mako 迁移到 Utoo 构建工具,更稳定的构建体验
📦 框架升级
- Ant Design v6:升级到最新的 Ant Design 6.x 版本
- React 19:支持 React 19,享受最新的并发特性
- CSS 变量模式:启用 Ant Design CSS 变量,支持动态主题切换
- Tailwind CSS:新增 Tailwind CSS 支持,原子化 CSS 开箱即用
🎨 样式架构升级
- 移除所有 Less 文件,全面拥抱 CSS-in-JS 方案
- 默认使用 AlibabaSans 字体,视觉体验更加一致优雅
- 优化全局样式和组件样式,界面更加精致
🆕 新特性
- Loading 组件:新增带骨架屏动画的 Loading 组件
- 页面加载状态:添加
loading.tsx支持页面级加载状态 - 静态导出:配置
exportStatic选项,支持静态站点部署 - 错误页面优化:错误页面添加卡片包裹,视觉体验更好
🐛 问题修复
- 修复首次加载白屏问题
- 修复刷新时标题不显示的问题
- 修复无法登录问题
- 修复 Hash 路由在
getInitialState()中被忽略的问题 - 修复 404 页面路由匹配问题
- 修复 SearchList 标签页路由异常
- 修复登录页面
title={false}不生效问题 - 修复时间选择器中文语言包缺失问题
- 修复 HeaderDropdown 响应式样式问题
- 修复 Loading 页面超出问题
- 修复
headScripts链接与publicPath不匹配问题 - 修复下拉菜单标签显示异常
- 修复消息提示不自动关闭问题
📝 文档与国际化
- 新增西班牙语文档
- 新增土耳其语翻译
- 新增 404 页面多语言支持
- 优化使用文档
- 修复文档链接和翻译错误
🔧 工程化改进
- 引入 Biome 进行代码格式化和检查
- 升级所有依赖到最新版本
- 移除 Jest,使用更轻量的测试方案
- 移除未使用的依赖,减少包体积
- 添加 CodeQL 安全扫描
🙏 致谢
感谢所有为此版本做出贡献的开发者!特别感谢以下首次贡献者:
@heng1025, @whitedive, @lzskyline, @iainlau, @wzhone, @MX8CLUB, @thjxs, @minisola, @codebdy, @neveler, @UniKylin, @shensven, @stormslowly, @li-jia-nan, @Hexi1997, @csic21, @yotcap, @hyzx86, @dashaomai, @zlsdzh001, @MarushiruDonato, @dqrjz, @zhangrenyang, @httpcheck, @Wxh16144, @kiner-tang, @hms181231, @Zian502, @xieww, @NachoVBordera, @lxfu1, @luketzh, @kerwin612, @zhangwudi886, @printfCYQ, @PeachScript, @klxf, @fankaiLiu, @Dieken, @sy296565890, @selicens, @wsafight, @zzjiaxiang, @WuChenDi, @jessicaliu2009, @wanpan11, @GeoDaoyu, @kinglinglive, @coding-ice, @Eliot00, @f7deat, @Jerry-CodeHub, @elrrrrrrr
完整变更日志: v6.0.0-beta.1...v6.0.0-beta.2
English Version
🎉 Ant Design Pro v6.0.0-beta.2
This is an important pre-release version with many exciting new features and improvements!
⚡ Core Upgrades
🚀 Build Tool Upgrades
- Utoo Build: Migrated from Mako to Utoo build tool for a more stable build experience
📦 Framework Upgrades
- Ant Design v6: Upgraded to the latest Ant Design 6.x version
- React 19: Support for React 19 with the latest concurrent features
- CSS Variable Mode: Enabled Ant Design CSS variables for dynamic theme switching
- Tailwind CSS: Added Tailwind CSS support with atomic CSS out of the box
🎨 Style Architecture Upgrade
- Removed all Less files, fully embracing CSS-in-JS solution
- Default to AlibabaSans font for a more consistent and elegant visual experience
- Optimized global and component styles for a more refined interface
🆕 New Features
- Loading Component: Added Loading component with skeleton animation
- Page Loading State: Added
loading.tsxsupport for page-level loading states - Static Export: Configured
exportStaticoption to support static site deployment - Error Page Optimization: Error pages now wrapped with cards for better visual experience
🐛 Bug Fixes
- Fixed white screen on initial load
- Fixed title not displaying on refresh
- Fixed login failure issue
- Fixed Hash router being ignored in
getInitialState() - Fixed 404 page route matching issue
- Fixed SearchList tab routing anomaly
- Fixed
title={false}not working on login page - Fixed missing Chinese language pack for time picker
- Fixed HeaderDropdown responsive style issue
- Fixed Loading page overflow issue
- Fixed mismatch between
headScriptslinks andpublicPath - Fixed dropdown menu label display anomaly
- Fixed message notification not auto-closing
📝 Documentation & i18n
- Added Spanish documentation
- Added Turkish translation
- Added multi-language support for 404 page
- Optimized usage documentation
- Fixed documentation links and translation errors
🔧 Engineering Improvements
- Introduced Biome for code formatting and linting
- Upgraded all dependencies to latest versions
- Removed Jest, using a lighter testing solution
- Removed unused dependencies to reduce package size
- Added CodeQL security scanning
🙏 Acknowledgments
Thanks to all developers who contributed to this version! Special thanks to the following first-time contributors:
@heng1025, @whitedive, @lzskyline, @iainlau, @wzhone, @MX8CLUB, @thjxs, @minisola, @codebdy, @neveler, @UniKylin, @shensven, @stormslowly, @li-jia-nan, @Hexi1997, @csic21, @yotcap, @hyzx86, @dashaomai, @zlsdzh001, @MarushiruDonato, @dqrjz, @zhangrenyang, @httpcheck, @Wxh16144, @kiner-tang, @hms181231, @Zian502, @xieww, @NachoVBordera, @lxfu1, @luketzh, @kerwin612, @zhangwudi886, @printfCYQ, @PeachScript, @klxf, @fankaiLiu, @Dieken, @sy296565890, @selicens, @wsafight, @zzjiaxiang, @WuChenDi, @jessicaliu2009, @wanpan11, @GeoDaoyu, @kinglinglive, @coding-ice, @Eliot00, @f7deat, @Jerry-CodeHub, @elrrrrrrr
Full Changelog: v6.0.0-beta.1...v6.0.0-beta.2
v6.0.0-beta.1
- support umi@4
升级到 umi@4
安装 yarn add @umijs/max
同时删除以下的依赖
"@umijs/plugin-blocks": "^2.2.0",
"@umijs/plugin-esbuild": "^1.4.0",
"@umijs/plugin-openapi": "^1.3.0",
"@umijs/preset-ant-design-pro": "^1.3.0",
"@umijs/preset-dumi": "^1.1.0",
"@umijs/preset-react": "^2.1.0",
修改 "postinstall": "max setup",
删除 config/config.dev.ts
修改 fastRefresh: true
删除 dva 的配置
dva: {
hmr: true,
},
删除 config 中 dynamicImport, esbuild, openAPI, nodeModulesTransform, exportStatic 的配置。
使用 max 命令来替换 umi,max dev,max build 等。
umi dev -> max dev
umi build -> max build
umi openapi -> max openapi
将 from 'umi'; 修改为 from '@umijs/max';,详细这个diff
删除 lint:style ,stylelint 需要的越来越少了
删除的功能
- 区块功能
- 删除对 IE 的支持,如果对 IE 有需求,请使用旧版本,(react,antd 都将不支持的 ie11)
新建 umi@4 或 umi@3 项目
npm I @ant-design/pro-cli -g
然后使用 pro create demo
选择umi@4 暂时不能使用全部区块
查看 demo 文件夹即可。
使用全量的block
选择 umi@3 和 complete
v5.2.0
🌷 UI: alway set theme
v5.1.0
v5.0.0
4.5.0
✨ feat: add react-dev-inspector plugins
⚡️ performance
⚡️ performance: open esbuild
v4.3.0: 💥 feat: @umijs/route-utils replace getAuthorityFromRouter (#7319)
feat: @umijs/route-utils replace getAuthorityFromRouter


