Change Log
antd strictly follows Semantic Versioning 2.0.0.
Release Schedule#
Weekly release: patch version at the end of every week for routine bugfix (anytime for urgent bugfix).
Monthly release: minor version at the end of every month for new features.
Major version release is not included in this schedule for breaking change and new features.
3.8.4#
2018-08-27🐞 Fixed an issue where the Tag component would cause a line break after deleting the tag.
3.8.3#
2018-08-26📖 Rewrite the documentation of Customize Theme and provider instruction for major
Lessvariables. 6fd5e9 53dd82🐞 Fix the zoom animation style for Badge. #11870
🐞 Fix the abnormal width in IE and Edge for Cascader. #11857
🐞 Fix the blurry style in Windows Chrome for Checkbox. #11797
🐞 Fix that
styleprop is not effective for DatePicker.WeekPicker. #11738🐞 Fix the flash style for Drawer. #11813
🐞 Fix the border style for compact Input.Group with
prefixorsuffix. #11863Menu
- 🐞 Fix the gap style between SubMenu and that Menu disappears when hovering over the tap. [#11725](https://github.com/ant-design/ant-design/issues/11725) - 🐞 Fix the displayed error when ItemGroup wraps the first SubMenu and the Menu is collapsed. [a52370](https://github.com/ant-design/ant-design/commit/a523706625bd695f44401579d980089292089dda) [@ohhoney1](https://github.com/ohhoney1)🐞 Fix that overlong
descriptionis cut off for Steps. #11864🐞 Fix that the word maybe break in overlong
titlefor Tooltip. #11722🐞 Fix that
custom propof TreeNode cannot be accepted for Tree. #11423🐞 Fix the effective area for Upload.Dragger. #11869
3.8.2#
2018-8-18🐞 Fixed Tag still visible when initially setting
visibleprop to false. #11757🐞 Fixed Modal text got selected when opened by double click. #11777
🐞 Fixed style of Rate component while getting clicked. #11736
🐞 Fixed style of Badge component when its children is
display:block. #84119d8Drawer
TypeScript
🐞 Fixed
selectableprop is missing in TreeNode props. #11604 @apieceofbart🐞 Fixed
autosizeprop is missing in Input props. #11697
3.8.1#
2018-08-12🐞 Fixed TimePicker unexpected long width. 80f8267
🐞 Fixed Tabs that focusable element in inactive panel cause tabs disappear. #11261
🐞 Fixed Badge
offsetx y axis order error. #11648 @tangjinzhouUpload
🐞 Fixed Anchor with
affix=truedoesn't work inside inner scrollable. #11688 @vitaliymaz🐞 Fixed card width in List.Grid. !11712
🐞 Fixed Radio align problem in safari. 754a22c
💄 Apply wave click animation to components Switch, Radio.Button and Tag. 9cf6ae6
TypeScript
💄 Migrate to new lifecycle methods, include components TimePicker, Upload, CheckboxGroup, Layout.Sider, Tooltip, Popconfirm. #11666 @dancerphil #11682 @dancerphil
3.8.0#
2018-08-05Thanks to 24 contributors who send pull request to 3.8.0!
💄 Support TypeScript 3 and improve lots of definitions.
💄 Use tabular-nums font variant instead of monospaced numberic font family Tahoma. #11567 @tibdex
🌟 Timeline support
mode="left|right|alternate"now. #11490 @jrvboesch🌟 Button added
blockprop which allow to fit parent container. #11500 @ilanusTree
Table
🌟 Added
rowSelection.columnTitleto customize selection column title. #11042 @littleLane💄 Added demo of resizable columns。
💄 Support to select multiple rows when pressing
shift. #11404 @RaphaelChauveau
Avatar
🌟 Added
onErrorprop that is callback when image loading fail. #11285 @paranoidjk🌟 Added
sizeprop for customize size of Avatar. #11256 @emersonlaurentino
🌟 Card added
headStyleprop. #11407 @emersonlaurentino🐞 Fixed that Tooltip not working with DatePicker. #11451 @yociduo
🐞 Fixed that Tooltip not working with Input.Group. #11532 @yociduo
🐞 Fixed that DatePicker time panel text jumping when hovering. #11460
🐞 Fixed Tabs display issue when switch focus elements bettween panels. #11261
Select
💄 Support
data-*attributes.🐞 Fixed that selected item don't display correct position in dropdown menu items. #11268
🌟 Calendar added
onChangeprop. #11476 @tangjinzhouModal
🌟 Progress added
strokeLinecapto customize shape of edge. #11547 @blatinier🌟 Drawer added
classNameand deprecatedwrapClassName. #11609 @fergiar
3.7.2#
2018-07-25DatePicker
Drawer
🐞 Fix style issue of dark theme Menu in Layout.Header. #11400 @hongxuWei
🐞 Fix the arrow buttons of InputNumber showing wrong positon in a fixed table. #11408
🐞 Fix issue resulting in Select.Option shows wrong border radius in Select.OptGroup. 6cb6f5c
🐞 Fix issue resulting in
onChangewas trigged twice when click the filter icon of Table. #11164 @adybionka🐞 Fix issue resulting title of Model.confirm shows scrollbar on Firefox. #11432
TypeScript
🐞 Fix type definition of Radio.Group. #11409 @eddiemoore
🐞 Fix type definition of TreeSelect. #11442 @JribiBelhassen
🐞 Fix type definition of Badge. #11421 @zongzi531
3.7.1#
2018-07-21🐞 Fix popup content can't display in Drawer component.#11304
🐞 Card using
tabListsupportdisabledprop.#11212🐞 Fix Link of Anchor not sync when
hrefupdate.#11287 @tangjinzhou🐞 Fix Menu component style.#11299
🐞 Fix Drawer component don't have animation when
destroyOnCloseis set.#11307🐞 Fix DirectoryTree can't expand when
expandedKeysis in control.#11366🐞 Fix Button with Tooltip under ButtonGroup style issue when Button is
disabled.11321 @tangjinzhou
3.7.0#
3.7.0 is a heavy update that brings a lot of exciting changes and new features. Here are some highlights ✨:
🌟 Add
Tree.DirectoryTreecomponent as the built-in directory tree. #7749
Component Fixes / Enhancements:
Upgrade
rc-tree-selectto2.0.5for TreeSelect, refactored to fix the logic of the check.🌟 Add
autoClearSearchValueprop to clear the value of search input when multiple select is selected or deselected. 10996🌟 Add
searchValueprop to set the value of search input. 6ff7dd8🌟 Add
maxTagCountprop to set the max count of visible tags. fb96c9d🌟 Add
maxTagPlaceholderprop to set the content when the tag is hidden. fb96c9d🌟 Search input now supports case sensitive search. #10990
🗑 Remove
labelprop and usetitleprop instead in thetreeData.
Upgrade
rc-uploadto2.5.0for Upload.Dropdown
Upgrade
rc-tableto6.2.2for Table. f2fddff🌟 Add
expandedas the fourth param ofexpandedRowRenderprop to get the expanded state of current row. #10379🌟 Add the ability to override the filter menu without the fully controlled component. 59cc3a8 @chrvadala
🌟
filterIconprop supports to be a render function which returns ReactNode. 1af4392🐞 Fix the row dislocation problem when the column is fixed. #10392
🌟 Allow to pass
data-*,aria-*androle-*props to the inner for Alert. f0b684d🌟 Add
altprop for Avatar to set the text when the image is unable to display. #10798🌟 Allow to pass
data-*,aria-*androle-*props to the inner Input for DatePicker. e63f9d4🌟 Add
eventobject as the second param ofonSearchprop for Input.Search. #11015🌟 Add
onBreakPointprop for Layout.Sider to be the callback function when breakpoint is triggered. #10750 @nuintun🌟 Add
okButtonPropsprop to set the props of ok button and addcancelButtonPropsprop to set the props of cancal button for Modal. #10955 @djyde🌟 Add
strokeColorprop to set the color of progress bar for Progress. #10725🌟 Add
buttonStyleprop whose optional value isoutlineorsolidto set the Radio.Group style. 60e3cfa🌟 Add
setDefaultIndicatorstatic function to set global indicator for Spin. #10787🌟 Add
visibleprop to set the visibility forTag. 4ac0277Upgrade
rc-treeto1.12.0for Tree🗑 Deprecate
comboboxvalue forSelect[mode]and please replace it withAutoComplete. 53046a4🐞 Cascader adds
fieldNamesand discards the misspelledfiledNames. #10896🐞 Fix Timeline dot not working with Tooltip. 0e3b67e
🐞 Fix border radius when avatar has custom size. e1e6523
🌟 Add
okButtonDisabledandcancelButtonDisabledprops to disable ok button and cancel button. #10955
3.6.6#
2018-07-07🐞 Fix the style of the selected day for
DatePicker. #6146 #9529🐞 Fix the style of the selected day for
DatePicker.RangePicker. 004561b🐞 Fix the alignment style wrapped by
Form.ItemforCascader. #9827 #11133🐞 Fix the background style of the
handlerforInputNumber. 4aabc53🐞 Fix the header overflow in
FireFoxwhen the data is empty forTable. #11135
3.6.5#
2018-07-02🐞 Fixed wired
Transferrepaint problem in IE or Edge. #9697🐞 Fixed
Cardbackground overflow when zoom in chrome. #9085TypeScript
🐞 Add custom local support in
Pagination. babbbdd4🐞 Move max-width to ant-tooltip, so that it can be override by overlayStyle.maxWidth. e2b359e9
🐞 Adjust
Selectmirror style to avoid to long string. #11035
3.6.3#
2018-06-17🐞 Fixed that capitalized extension of Upload image url couldn't be recognaized. #10928 @sliwey
🐞 Fixed missing border of InputNumber when browser is zoomed in. #10562
🐞 Fixed that fixed element inside Spin cannot be fixed. #10196
🐞 Fixed broken border style of small table. #9754
🐞 Fixed missing
classNameprop of Table'sfilterIcon. #10937🐞 Fixed that Affix
offsetTopandoffsetBottomcannot be updated. #10874TypeScript
3.6.2#
2018-06-09🐞 Fix the wrong status of check all checkbox in Table when data change. #10629
🐞 Fix border style of Button.Group.
🐞 Fix file list being reversed when
beforeUploadreturnsfalsein Upload component. #10681🐞 Fix overflow of cell content in Calendar. #10808 @Yangzhedi
🐞 Fix the processing color of Badge not follows the
primary-color.Spin
🐞 Fix custom icon does not follow the value of
size. #10786🐞 Fix no
delayissue when setsspinningtotrueas default.#10727 @dreamerblue
TypeScript
3.6.0#
2018-06-02🌟
Form's error message now can be customized with ReactNode. #10136 @lovekonakona🌟
Listsupport customized configuration for position of pagination. #10581 @zheeeng🌟
Layout.Sidernow can be configured withlightordarktheme. #10142 @pd4d10🌟 Ant Design official site now supports offline mode. #10625
🌟
TransferaddingstyleandoperationStyleprops for further customization. @eduludi🌟
Messageadds a promisfied interface to handle callback. #10421 @zhujinxuan🐞 Fix compilation issue with typescript@v2.9.1 . #10729 @karol-majewski
🐞 Fix a bug in
Menuwhere outer menu item not highlighting while inner item is selected. #8666 @stonehank🐞 Affix
offsetBottomnot working. #10674
3.5.4#
2018-05-26🐞 Fix
showSearchonCascadernot working.968488a2🐞
Badge[status]supportTooltip.#10626🐞 Fix
text-alignon parent element affectsSpin.#10643 @wmzhong💄
Tablebreak line style change frombreak-alltobreak-word.#10655 @clinyong🌟 When
Searchnot defineenterButton, click search icon will triggeronSearch. 36ffe7e1
3.5.3#
2018-05-20🐞 Fix
Affixwith offsetTop === 0, value becomesundefinedproblem #10566🐞 Fixed issue with shaded
Input.Groupcomponent shadows#10230🐞 Fixed issue where the
Transfercomponent checkbox event fired twice #10480💄 Unifying the name of the variable 12d3046
💄 Fine-tuned the style of
Dropdown8e2f72f💄 The components of the Chinese document will now be demonstrated using Chinese language packages. 9b17a94
💄 The main theme switch was changed to
antd-theme-generato, thanks to the work of @mzohaibqc.TypeScript
3.5.2#
2018-05-13🐞 Fixed
Tablefilter doesn't work when click checkbox. #10452🐞 Fixed
CascaderdisplayRender z-index issue. #10433🐞 Fixed
ButtonTypes of property 'ref' are incompatible. #10405🐞 Fixed the height of
Formitem when checks position is dithered. #10445🌟 Allow to use any CSS units for
Layoutwidth. #10479
3.5.1#
2018-05-09🐞 Fixed broken style of Input.Group under Form. #10371
🐞 Fixed overlay style of Select. #10383
🐞 Remove focused style of Collapse.
🐞 Remove unnecessary
z-indexof Input.Group and Checkbox. #9840 #10385🐞 Fixed that monospaced font family can't be bold.
Table
TypeScript
🐞 Fixed Breadcrumb.Item type. #10372 @karol-majewski
🐞 Fixed Table
rowSelectiontype。#10374
3.5.0#
2018-05-04🌟 Add
titleprop toBadgethat shows when hovering it. 74d81c2 @ludwigbacklund🌟 Add
successPercentasProgress[format]argument. #10096🌟 Update
rc-notificationto 3.1.0 so thatNotificationsupport setmaxCount. #10161 @jzhangs🌟 Update
rc-cascaderto 1.13.0 so thatCascadersupport setfiledNames. react-component/cascader#23 @405go🌟 Add ability to update
Notificationprops by key. react-component/notification#40 @yevhen-hryhorevskyi🌟
Listsupport pagination by default. #10135Table
🌟 Column
sorterfunction is passedsortOrderas param. #10306 @kumarashwin🐞 Fix merged header cell border. #10359
🐞 Fix lost of user selection on data updates. #10332 @chrvadala
Menu upgrade
rc-menuto7.x#10305🌟 Better aria-* attributes support. react-component/menu#137
🌟 Improve Menu performance by avoiding unnecessary updates. react-component/menu#133
🌟 Support passing props through to MenuItem list item. react-component/menu#135
🐞 Minor key shortcut bug fixes. react-component/menu#132
Collapse
🌟 Support custom
Collapsestyles with less. #9943 @davidhatten🌟 Update
rc-collapseto 1.9.0 to addCollapsekeyboard support. react-component/collapse#84 @kossel
Select
🐞 Fix type for
placeholder. #10282 @thomasthiebaud🐞 Fix extra space taken up when arrow disabled. #10296
🐞 Fix property
valuetypescript type. #10336 @paranoidjk
Input
Form
🐞 Fix typescript interface
ComponentDecorator. #10324 @paranoidjk
🐞 Fix dashed
Divider. #10216🐞 Fix
Spincontainer interaction. #10227🐞 Fix
Notificationicon hover color. #10272🐞 Fix
UploadpropertylastModifiedDatename. #10315 @danielg2002🐞 Fix
Buttonprops type, useReact.HTMLProps. #10229 @whtsky🐞 Fix less var naming convention. #10275
3.4.3#
2018-04-23🐞 Fix style lose bug when use tree shaking in webpack@4. #10197 @Aladdin-ADD
🐞 Fix
Menuitem's clickable region in dark theme. #10187 @dgeibi
3.4.2#
2018-04-22💄 Deployed site by netlify to avoid blocking by GFW.
🐞 Fix TypeScript definitions of Menu, Tooltip, Card, Anchor, Avatar, Form, Tabs, Transfer, Tree, AutoComplete and etc.
💄 Added
sideEffectstopackage.jsonfor better Tree-Shaking. #10043 @Aladdin-ADDList
🐞 Fix wrong preview image of Upload list when file.url contains url params. #10102
🐞 Fix Progress when percent is out of range. 0eb8357
Menu
🐞 Fix that sometimes controlled input in Form cannot be edited. #9790
🐞 Fix padding jumping issue of loading Card. #10052 @zheeeng
🐞 Fix that Avatar's fallback text don't scale as the text avatar does. #10184
🐞 Fix Table
getCheckboxPropscannot be updated as expected. #10133🐞 Fix CheckboxGroup
prefixClsprop not passed to Checkbox. #9950
3.4.1#
2018-04-08🐞 Fix TypeScript type error caused by code error of Badge. #9931
💄 Improve clicking region of Card
actions. #9882🐞 Fix Divider style issue when used with float elements. #9956
🐞 Fix style issue of Form in advanced-search mode. #9907
🐞 Add
onHeaderRowTypeScript type definitions for Table. #9902 @Nokecy💄 Improve the customized-icon demo of Tree. #9893
🐞 Fix image url display with non-image extention in Upload. #9936
3.4.0#
2018-04-01Tree
🛠 In this version, we refactored the underlying code of Tree to resolve some long living issues.
🌟 Added
defaultExpandParentfor expanding parent at first render.🌟 Added
disabledfor disabling the whole tree.🌟 Added
TreeNode[icon]to allow setting custom node icon.🌟 Improved the check logic for disabled TreeNode.
🌟 Anchor added
getContainerfor setting the container of scroll content.🌟 Table added a new less variable
@table-expanded-row-bg. #9789🐞 Fixed a less syntax error. #9832 @jojoLockLock
🐞 Fixed
moment.localeinvoking error in LocaleProvider. #9853🐞 Fixed issue resulting in
styleof WeekPicker not works. #9848💄 Improved style of Modal for long contents. #9592
🌟 Added new locale Slovenian.
3.3.2#
2018-03-24🐞
Carousel: Upgradereact-slickversion to fix width calculation. #3659💄
Rate: Adjustdisabledstyle. #9747💄
Modal: Adjustconfirm-modalstyle to fix display issue when content use grid layout. #9374💄
Menu: Adjust style to fix mouse trigger event region. #9666 @dgeibi🐞
Upload: Fix type offileonbeforeUploadfunction. #9775🐞
Button: Fixtwo-chinese-wordsspace not re-calculate when text changed. 4502ad8
3.3.1#
2018-03-18💄 Tweak danger button focus style.
🐞 Fix a show error when the value of enterButton is a button element. #9639
🐞 Fix missing key of
column.titlein Table .#9658 @terence55🐞 Fix
scroll: { x: true }not working if.ant-table-scroll tablewidth isauto. #9704🐞 Fix when the helper message disappears, the input box will shake. #8831
🐞 Fix isMoment call in
TimePickerwill report error in parcel. 85c78e4🐞 Tweak
Tableborder radius. #96743.3.0#
2018-03-12🌟 Add
afterCloseprop forAlertto achieve smooth unmount. #9448 @Hughen🌟 Add
validRangeprop forCalendarto set the date range. 71f65a0 @Rohanhacker🌟 Add
defaultActiveTabKeyprop forCardto initial TabPane's active key. 30fe88d @u3uDatePicker🌟 Add
orientationprop forDividerto set the alignment of text in divider. #9275 @jrvboesch🌟 Add
keyboardprop forModalto set whether Modal could be closed byEsckey. #8818🌟 Improve the TypeScript definition of
eventparam inonChangeprop forRadioandCheckbox. #9574Table🌟 Add
positionprop inpaginationprop to set the position of pagination. #9357 @kanweiwei🌟 Add event param of
onSelectprop inrowSelectionprop. #9376 @kanweiwei🌟 Add
columnWidthprop inrowSelectionprop to set the column width of selection. #9474 @SimpleFrontend🐞 Fix border radius issue in
ChromeforTable. af8e54f
🌟 Add
pendingDotprop forTimelineto set icon of ghost node. #9546 @SimpleFrontend🌟 Add
inputReadOnlyprop forTimePickerto set if it's read only. 4a69446 @JesperWe🌟 Add
dropdownClassNameprop forTreeSelect. 69b154f 56e4ce0🌟 Improve the preview for
Uploadwhen uploading the file of non-image format. #9621 @zswang🐞 Fix
successPercentprop that cannot decide the success status forProgress. #9382🐞 Fix font size for
Tabs. #9509🐞 Fix that disabled parent node cannot spread for
TreeandTreeSelect. #9539
3.2.3#
2018-03-02🐞 Fix props
onPopupScrollts define inSelect. #9475 @twobin🐞 Fix
Tablefilter dropdown menu popup container. #9209🐞 Fix
Timelinehead custom style error in chrome. #9429 @vthinkxie🐞 Fix
Selectdropdown border. 82092c1🐞 Fix compatibility with less 3. #7850
🐞 Fix
DatePicker.WeekPickeryear. #9463🐞 Fix
Button.Groupalign issue in chrome. #9457
3.2.2#
2018-02-24🌟 Add font-family variable for
Pagination. #9351🌟 Add font-weight variable for
Badge. #9352🐞 Fix table custom spin indicator. #9355
🐞 Fix
Form.create. #9331🐞 Revert typescript definition of
column.dataIndex. #9393🐞 Fix last menu item in Sider could be blocked by collapse trigger. #9398 @MJ111
🐞 Fix badge works wrong in dot mode. #9359 @khayalan-mathew
3.2.1#
2018-02-11🌟 Add icons of some famous products. c04377e5
Mention
🌟
multiLinesmode will support autosize.🐞 Fix paste not working when
placeholderis specified. #9215
Table
Select
🐞 Fix wrong scroll position when navigating active item with keyboard. #9276
🐞 Fix arrow position in IE11.
🐞 Fix issue that file item showing
uploadingwhen UploadbeforeUploadreturn false. #8020🐞 Fix misplace of feedback icon of
verticallayout Form. #9153🐞 Fix loading style missing of empty childen Card. #9258
🐞 Fix background color of Avatar when image source is not existe. #9278 @andriijas
🐞 Fix RangePicker
Cannot read property 'locale' of undefinederror when select end date. #9267🐞 Fix style problem when using disabled button with Tooltip inside ButtonGroup. #9296 #9296
🐞 Fix z-index of Dropdown's submenu. #9218
3.2.0#
2018-02-04🌟 Add new
tabBarGutterprop to Tab to allow setting gutter between tabs. #8644 @lixiaoyang1992🌟 Add new
hasSiderprop to Layout to avoid render error when server rendering. #8937🌟 Add new
successPercentto Progress to allow showing two phases. Demo🌟 Add new
iconTypeprop to Alert to allow settting icon type. #8811 @minwe🌟 Add
idprop to DatePicker. #8598 @mgrdevport🌟 Add new
forceRenderprop to Collapse to allow rendering hide panel. #9192 #Pyroboomka @paulcmasonRangePicker
🌟 Improve
rangesprop to allow passing function to it. #8281🐞 Fix issue resulting in can not input start date manually. #6999
🐞 Fix issue resulting date panel being closed without animation when click on the preset range. #6364
🐞 Fix issue resulting
onOkis not being trigged, when click on the preset range. #7747
Select
🌟 Improve
onChange,onDeselect, they will receive selectedOptionas second paramteter.🐞 Fix issue resulting in
onSelectis not trigged when using automatic tokenization. #9094🐞 Fix the missing scrollbar in Chrome.
🌟 Improve Table's
rowSelection[getCheckboxProps]prop, now the all the properties returned bygetCheckboxPropswill be passed to checkbox. #9054 @mgrdevport🐞 Fix issue resulting in Calendar's
modenot being allowed to be changed from outside. #9243 @mgrdevport🐞 Fix issue resulting AutoComplete showing wrong border when showing validattion message.9f2b490
🐞 Fix issue resulting in DatePicker showing wrong time in the control mode. #8885
🐞 Fix issue resulting in TextArea showing wrong height in Edge. #9108 @cuyl
🐞 Fix issue resulting in Tabs showing wrong tab style when using
type="card"combine withtabPosition="bottom". #9165 @ryanhoho🌟 Add new Kurdish locale.
3.1.5#
2018-01-27🐞 Fix Select Options were disappeared when click the scrollbar in IE11. #7934 @tianlang89757
🐞 Fix Form
getFieldDecoratorreferenced item will conflicted when using the same id. #9103 #7351🐞 Fix RangePicker i18n issue which will shown the last language when change the language. #8970
🐞 Fix DatePicker shown wrong in the control mode. #8885
🐞 Fix Table shown emptyText when loading state. #9095 @sallen450
🐞 Fix wrong font family. commit/506f97
📖 Add some TypeScript type definitions
Add
durationfor Notification. pull/9120 @duhongjunAdd
stylefor Steps. pull/9126 @wanliyunyan
🌟 Optimize Avatar default background color. commit/275946
🌟 Add the less variable for Slider and Menu. pull/9065 pull/9115 @mrgeorgegray
3.1.4#
2018-01-21🐞 Fix ButtonGroup z-index issue. #9014
🐞 Fix Dropdown.Button can not be fully disabled. #8991 @sallen450
🐞 Fix List
griddo not support xxl. #9019🐞 Fix RangePicker can not cancel selected start date when the panel is closed. #8839
🐞 Fix Tabs error margin. commit/200d6c
🐞 Fix WeekPicker shows error weeks. #9021
🐞 Fix some TypeScript type definitions.
Add
subMenuCloseDelayandsubMenuOpenDelayfor Menu. #8976 @RohanhackerRefactor DatePicker types. commit/0bb531
🌟 Add some new less variables.
About Checkbox and Radio: #9003 @mrgeorgegray
About Breadcrumb: #9022 @mrgeorgegray
🌟 Add aliyun icon.
3.1.2#
2018-01-13🐞 Fix Button can not display
0. #8733 @Cuihongsen🐞 Fix extra scrollbar in Table and List caused by Spin. #8799
🐞 Fix can not pass function to TableemptyText. #8871
🐞 Fix now working DropdowntransitionName.
🐞 Fix issue resulting in font changes when enter number in Input.#8636
🐞 Fix issue resulting in wrong locale text when import multiple locale files. #8785
🐞 Fix
localesin dist/antd-with-locales.js has aextradefault key. #8881🐞 Fix some TypeScript type definitions. 4cc29bc 693e734 67e956d ecd4177 33119ec 88e0c9b
🌟 Optimize Chinese quotes displaying.
3.1.1#
2018-01-08📖 Published the new site and design guideline.
📖 Updated the guideline of real project with dva to roadhog 2.0. 5dcf1c0
📖 Published the new sketch resource of Ant Design 3.0. 22dfe88
🐞 Fix contextMenu event for trigger prop in the TypeScript definition of Dropdown. #8646 @cjahv
🐞 Fix HOC in Button not inserted space between chinese words.
🐞 Fix the style compatibility in IE 11 for List Component. #8784
🐞 Fix notFoundContent prop not working for Select Component. #8809
🐞 Fix the warning for BackTop Component in React 16. #8848
🐞 Fix unexpected scrollbar for List Component when setting gutter. #8799
🐞 Fix to support complete href link for Anchor.Link Component. #8808
🌟 Optimize the font family of Chinese quote. c6fcc31
3.1.0#
2017-12-29Happy 2018 !~ 2018 2018 2018 coming!~~~
🐞 Fix ant-spin-container overflow resizing for Spin component. #8602 @jhsu
🐞 Fix extra padding in Table small with fixed columns. #8724
🐞 Fix Checkbox.Group align issue in Form. #8739
🐞 Fix unexpected scrollbar in Affix. #8606
🐞 Fix List component "No Data" mixed with loading. #8647
🌟 Add onKeyUp TypeScript definition to Input component. #8705 @delesseps
🌟 Add
showArrowfor disabling arrow icon in collapse panel. #8536 @apieceofbart🌟 Rate add
allowClearfor reset when click again. #8627🌟 Add responsive for BackTop. #8719 @JetRunner
🌟 Add
destroyOnCloseto Modal component to support unmount child compenents on onClose. #8769 @Rohanhacker🌟 Pagination add
hideOnSinglePagefor support hide it when only one page. #8615 @camsong🌟 Support customize spin for List component.
👻 Support open official demo in CodeSandbox.
3.0.2#
2017-12-17📝 Provide a migration helper for antd@3.0. e71b68dd
📝 Rewrite CONTRIBUTING Guideline
🌟 Optimize notification display in small screen. #8631
🌟 Optimize Pagination design and fix some issues of alignment and margin.
🐞 Upgrade to
react-slick@0.16.0for peerDependencies warning. #8455🐞 Fix not working
sizeproperty in fixed-header Table. #8577🐞 Fix not working
localeproperty of DatePicker/RangePicker. #8635🐞 Fix Popover arrow position and size cannot be overrided by less variable. #8548 #8549
🐞 Fix not working
notFoundContentof AutoComponent. #8553🐞 Tweak RangePicker vertical align position.
🐞 Layout.Sider breakpoints is same as Grid's now. #8620
🐞 Fix submenu still showing in a collapsed menu when collapsedWidth is
0. #8587🐞 Fix Card's
Meta.titletext overflow not working. #8597🐞 Fix pagination margin problem of bordered List. #8562
🐞 Fix Menu's submenu cannot open when specified non-existed
defaultOpenKeys. #8475🐞 Fix type name collisions of
InputPropsandSearchPropsin Input, AutoComplete, Transfer. #8478
3.0.1#
2017-12-11Remove useless DOM wrapper of Card, so that Card's DOM structure will be the same as Card of 2.x.
Fix that missing
antd/lib/style/v2-compatible-reset.css. 28d13e2Fix that Affix will be overlap when it is heigher than viewport. 31a0654
Fix the open animation of Collapse. edd592c
Fix the aligment of large size Input and Button in Form. #8459
Menu
Fix compile error of style of Notification. #8437
Fix the background color of mini Pagination. e13c6d8
Table
TypeScript
3.0.0#
2017-12-04Learn more in the Ant Design 3.0 announcement post.
Major Changes#
New color system, We changed our primary color from 『
#108EE9』 to 『#1890FF』, we called the new primary color "拂晓蓝 (Daybreak Blue)" which means the color of the sky at daybreak.New design of components.
Increased the base font size from 12px to 14px.
Changed default locale to
en_US.Support React 16.
Better TypeScript support.
New List component.
New Divider component.
30 New icons.
Breaking Changes#
We provide a migration tool to help you find deprecated usages in your codebase.
Card's
noHoveringhas been renamed tohoverable, and its default value now istrue.Added new Grid breakpoints. #7230
Form
getFieldDecorator'sexclusiveoption has been removeed.Added
Form.createFormField, and you must use it to wrap field data returned inoption.mapPropsToFields:import { Form } from 'antd'; Form.create({ mapPropsToFields() { return { - name: { value: 'antd' }, + name: Form.createFormField({ value: 'antd' }), }; }, })Improved global reset style, if you encounter style problem after upgrading, you can try import our v2 compatible style.
import 'antd/lib/style/v2-compatible-reset';Or use less
@import '~antd/lib/style/v2-compatible-reset.less';Since we changed default locale to en_US, LocalProvider is not required any more for English users.
We don't set
size="large"toInputinFormby default any more.Input.Search🔍 icon don't be interactive anymore, you can use newenterButtonprop to add a button after input.UMD version of
dist/antd.jsdoesn't include moment any more, you need add moment by yourself if you are using the UMD version.<html> <head> + <script src="https://unpkg.com/moment@2.19.3/moment.js"></script> <script src="https://unpkg.com/antd@3.0.0/dist/antd.js"></script> </head> </html>
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 dropped textarea support, please use Input.TextArea instead.🗑 Mention's
toEditorStatehas been removed.🗑 Select's
multiple,combobox,tagsprops has been removed, usemodeinstead.
Features and Improvements#
🌟 Tabs added new size
size="large"。🌟 Row's
gutternow support responsive setting, you can writegutter={{ sm: 16, lg: 32 }}.🌟 Spin added new
indicatorprop to allow setting custom indicator. #7977 @kossel🌟 Input.Search added new
enterButtonprop to allow setting custom search button.#7596🌟 Mention added new
placementprop to allow setting the popup direction.🌟 Carousel added new
next(),prev(),goTo(slideNumber)methods to allow controlling slides programmatically.🌟 Button added link support, Button with
hrefprop will render to<a>. #8343🌟 Steps was refactored, first rendering won't flash. #6010
🌟 Switch added new
loadingprop to show a loading status.Menu
🌟 We refactored it with rc-trigger for delay popup and auto overflow in viewport.
🌟 Added new
subMenuOpenDelayandsubMenuCloseDelayprops to allow setting delay time for submenu toggling.🌟 Added new
forceSubMenuRenderprop to render submenu even if it's collapsed. #5586
Form
🌟 Added animations for validation message showing.
🌟 Added field conditional rendering support. #react-component/117
Message
🌟 Allow
durationoptional. #7857 @monkindey
Badge
🌟 Added new
offsetprop to allow setting the offset of status point.🌟
statuscan use whithchildrennow. #8164
Card
DatePicker
TimePicker
🌟 Added new
hourStep,minuteStep,secondStepprops to allow customizing time setps. Demo🌟 Added new
focusOnOpenprop to focus input after panel is open.
Table
🌟 Added new
componentsprop to allow overriding default table elements.// You can override following 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 new
onRowprop to allow passing custom props to table body row.🌟 Added new
onHeaderRowprops to 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 default sort order. #8111 @megawac🌟 Added
rowSelection[fixed]to allow fixing the selection column.。🙅 Deprecated
getBodyWrapper, please usecomponentsinstead.🙅 Deprecated
onRowClick,onRowDoubleClick,onRowContextMenu,onRowMouseEnter,onRowMouseLeave, please useonRowinstead.<Table onRow={(record) => ({ onClick: () => {}, onDoubleClick: () => {}, onContextMenu: () => {}, onMouseEnter: () => {}, onMouseLeave: () => {}, })} />
Select
🌟 Option's value can be a number in single or multiple mode.
🌟 Added new
maxTagCountandmaxTagPlaceholderprops.🌟 Added new
showActionprop to allow setting the trigger action for popup.🌟 Added new
onMouseEnterandonMouseLeavecallback.
LocaleProvider
🇮🇸 Added Icelandic. #7561 @paunovic-stefan
🇪🇬 Added Egyptian Arabic. #7888 @mohamed-seada-1994
Bug fixes#
Form
🐞 Fixed issue result in Input icon is hovered by feedback icon.
🐞 Fixed feedback icon not centered in large input.
🐞 Fix Menu key press error. #8089
Other things#
Don't need set
allowSyntheticDefaultImportswhen using in TypeScript.We removed
react@0.14andreact@15frompeerDependencies, thoughantd@3.0still works on old React versions, but we highly recommend you upgrading to React 16 since we may use the new features only exists in React 16 in the future. See React 16Fully es module support, if you are using webpack 3, you can set babel-plugin-import's
libraryDirectorytoesto enable tree shaking .We will support 2.x branch until June in next year.