ProComponents API Changes Summary (2.0 → 3.0)
Quick Reference
Removed APIs
Version Requirements Changes
- antd:
>= 4.20.0→>= 6.0.0 - React:
>= 16.9.0→>= 18.0.0
Package Version Changes
v3 only publishes the single @ant-design/pro-components package. The
standalone packages on npm remain on v2 and must not be mixed with antd 6.
Migration Checklist
Table Component
-
columnsStateMap→columnsState.value -
hideInSearch→search: false -
fixHeader→scroll: { y: 400 } -
tip→tooltip
Card Component
-
TabPane→tabs.items -
StatisticsCardProps→StatisticCardProps
Layout Component
-
rightContentRender→actionsRender+avatarProps - Layout token property renaming
ProFormField / Field Component
-
plain→ Removed, usevariantinstead (e.g.variant: 'borderless'orvariant: 'outlined')
Compatibility
- Remove antd@4 compatibility code
- Update antd version to 6.0.0+
Common Migration Commands
Rollback Plan
For detailed migration guide, please refer to: migration-guide.en-US.md