Ant Design 3 RC
See original GitHub issueIt’s more than a year from last major release of antd, now the first RC of antd 3 is avaliable for public testing. Here is the preview address http://beta.ant.design.
Installation
The RC has been published to NPM with the tag “next”.
$ yarn add antd@next
or
$ npm install --save antd@next
Major Changes
- We changed our primary color from
#108EE9to#1890FF, we called the new primary color “拂晓蓝” which means the color of the sky at daybreak. - Increased the base font size from 12px to 14px.
- Changed default locale to en_US.
- Improved global css style.
- A lot of style improvements.
- Support React 16.
- New List Component.
- New Divider Component.
- New icons.
Breaking Changes
-
Card’s
noHoveringhas changed tohoverable,and it’s default value now istrue. -
Added new Grid breakpoints. #7230
-
Form
- Removed
exclusiveoption ofgetFieldDecorator. - Added
createFormField, and you must use it to wrap field data inoption.mapPropsToFieldsofForm.create: After antd@3.0.0import { Form } from 'antd'; Form.create({ mapPropsToFields() { return { - name: { value: 'antd' }, + name: Form.createFormField({ value: 'antd' }), }; }, })
- Removed
-
Since we improved the global reset style, if you prefer the v2 way, we provide a compatible style.
import 'antd/style/v2-compatible-reset';or
@import '~antd/style/v2-compatible-reset.css'; -
Since we changed default locale to en_US, so
LocalProvideis not required for English users now, but for Chinese user, locale must set byLocalProvide.
New Features
- Tabs added new
largesize。 - Grid’s
Row[gutter]now support responsive setting. - Badge added
offsetto allow setting offset of the badge. - Spin adde
indicatorto allow setting custom indicator. #7977 @kossel - Progress adde new
@processing-colorless variable. - Menu added
subMenuOpenDelayandsubMenuCloseDelayto allow setting delay time foor submeny toggling。 - Input added
Input.Search[enterButton]to allow setting custom search button. - Mention added
placementto allow setting the popup direction. - Carousel added
next(),prev(),goTo(slideNumber)to allow controlling slides programmatically. - Card
- DatePicker
- Added
modeandonPanelChangeto allow controlling the panel mode. Demo。 - Added new
WeekPicker. - Added
dateRenderto allow customizing date cell.
- Added
- TimePicker
- Added
hourStep、minuteStep、secondStepto allow customizing time setps. Demo - Added
focusOnOpento allow opening panal when input gets focus. - Added
@timepicker-item-heightless variable.
- Added
- Table
-
Added
componentsto allow overriding default table elements.const components = { table: MyTable, header: { wrapper: HeaderWrapper, row: HeaderRow, cell: HeaderCell, }, body: { wrapper: BodyWrapper, row: BodyRow, cell: BodyCell, }, }; <Table components={components} columns={columns data={data}} /> -
Added
onRowto allow passing custom props to table body row. -
Added
onHeaderRowto allow passing custom props to table header row. -
Added
column[onCell]to allow passing custom props to table body cell. -
Added
column[onHeaderCell]to allow passing custom props to table header cell. -
Added
column[align]to allow setting how text aligns.- Added
column[defaultSortOrder]to allow setting #8111 - Added `rowSelection[fixed] to allow fixing the selection column.
- Added
-
Following props are deprecated:
onRowClickonRowDoubleClickonRowContextMenuonRowMouseEnteronRowMouseLeave
Please use
onRowinstead:<Table onRow={(record) => ({ onClick: () => {}, onDoubleClick: () => {}, onContextMenu: () => {}, onMouseEnter: () => {}, onMouseLeave: () => {}, })} /> -
Deprecate
getBodyWrapper, please usecomponentsinstead。
-
- Select
- Option’s value can be number in
singleormultiplemode. - Added
maxTagCountandmaxTagPlaceholder. - Added
showActionto allow setting the trigger action for popup. - Added
onMouseEnterandonMouseLeave。
- Option’s value can be number in
- LocaleProvider
- Added Icelandic. #7561 @paunovic-stefan
- Added Egyptian Arabic. #7888 @mohamed-seada-1994
- Added Ukrainian. #8169 @anxolerd
Bug Fixes and Improvements
- Badge’s
statuscan use withchildrennow. #8164 - Form
- Added animation when showing validate message.
- Fixed issue result in Input icon is hovered by feedback icon.
- Now allow to bind same field name for dynamic components rendering.
- Menu
- Imporoved animation.
- Fixed keydown error. #8089
- Rate changed to a new color.
- Message
durationcan be optional. #7857 @monkindey- Fixed destroy issue, when multiple message exists. #8201
Removed deprecations
- DatePicker.Calendar has been removed, you can use Calendar directly.
- DatePicker’s
toggleOpenprop has been removed, useonOpenChangeinstead. - Form’s
inline,horizontal,verticalprops has been removed, uselayoutinstead. - Input’s
typeprop has droppedtextarea, please useInput.TextArea. - Mention’s
toEditorStatehas been removed. - Select’s
multiple,combobox,tagsprops has been removed, usemodeinstead.
Other Changes
- Don’t need set
allowSyntheticDefaultImportswhen using in TypeScript. - We removed
react@0.14andreact@15frompeerDependencies, since we may use the new features only exists in React 16 in the future. - Fully es module support, if you are using webpack 3, you can set
babel-import-plugin’slibraryDirectorytoesto enable tree shaking .
Issue Analytics
- State:
- Created 6 years ago
- Reactions:75
- Comments:13 (6 by maintainers)

Top Related StackOverflow Question
https://medium.com/ant-design/announcing-ant-design-3-0-70e3e65eca0c
Ant Design 3.0 released now! 🎉 🎉 🎉
What do we need
Form.createFormField? What’s purpose of?