You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 KiB

order title toc timeline
6 Change Log false true

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.4.0

2018-04-01

  • Tree
    • ๐Ÿ›  In this version, we refactored the underlying code of Tree to resolve some long living issues.
    • ๐ŸŒŸ Added defaultExpandParent for expanding parent at first render.
    • ๐ŸŒŸ Added disabled for disabling the whole tree.
    • ๐ŸŒŸ Added TreeNode[icon] to allow setting custom node icon.
    • ๐ŸŒŸ Improved the check logic for disabled TreeNode.
  • ๐ŸŒŸ Anchor added getContainer for 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.locale invoking error in LocaleProvider. #9853
  • ๐Ÿž Fixed issue resulting in style of WeekPicker not works. #9848
  • ๐Ÿž Fixed type definition of Layout.Sider. #9885 @zachguo
  • ๐Ÿ’„ Improved style of Modal for long contents. #9592
  • ๐ŸŒŸ Added new locale Slovenian.

3.3.3

2018-03-25

  • Revert Upload file type change in previous version which causes breaking change.

3.3.2

2018-03-24

  • ๐Ÿž Carousel: Upgrade react-slick version to fix width calculation. #3659
  • ๐Ÿ’„ Rate: Adjust disabled style. #9747
  • ๐Ÿ’„ Modal: Adjust confirm-modal style to fix display issue when content use grid layout. #9374
  • ๐Ÿ’„ Menu: Adjust style to fix mouse trigger event region. #9666 @dgeibi
  • ๐Ÿž Upload: Fix type of file on beforeUpload function. #9775
  • ๐Ÿž Button: Fix two-chinese-words space 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.title in Table .#9658 @terence55
  • ๐Ÿž Fix scroll: { x: true } not working if .ant-table-scroll table width is auto. #9704
  • ๐Ÿž Fix when the helper message disappears, the input box will shake. #8831
  • ๐Ÿž Fix isMoment call in TimePicker will report error in parcel. 85c78e4
  • ๐Ÿž Tweak Table border radius. #9674

3.3.0

2018-03-12

  • ๐ŸŒŸ Add afterClose prop for Alert to achieve smooth unmount. #9448 @Hughen
  • ๐ŸŒŸ Add validRange prop for Calendar to set the date range. 71f65a0 @Rohanhacker
  • ๐ŸŒŸ Add defaultActiveTabKey prop for Card to initial TabPane's active key. 30fe88d @u3u
  • DatePicker
    • ๐ŸŒŸ Add dropdownClassName prop to set the className of popup calendar. #7211
    • ๐Ÿž Fix the error of resolving moment object. #9539
    • ๐Ÿž Fix uncorrect import of turkish(tr_TR) locale file. #9373
  • ๐ŸŒŸ Add orientation prop for Divider to set the alignment of text in divider. #9275 @jrvboesch
  • ๐ŸŒŸ Add keyboard prop for Modal to set whether Modal could be closed by Esc key. #8818
  • ๐ŸŒŸ Improve the TypeScript definition of event param in onChange prop for Radio and Checkbox. #9574
  • Table
    • ๐ŸŒŸ Add position prop in pagination prop to set the position of pagination. #9357 @kanweiwei
    • ๐ŸŒŸ Add event param of onSelect prop in rowSelection prop. #9376 @kanweiwei
    • ๐ŸŒŸ Add columnWidth prop in rowSelection prop to set the column width of selection. #9474 @SimpleFrontend
    • ๐Ÿž Fix border radius issue in Chrome for Table. af8e54f
  • ๐ŸŒŸ Add pendingDot prop for Timeline to set icon of ghost node. #9546 @SimpleFrontend
  • ๐ŸŒŸ Add inputReadOnly prop for TimePicker to set if it's read only. 4a69446 @JesperWe
  • ๐ŸŒŸ Add dropdownClassName prop for TreeSelect. 69b154f 56e4ce0
  • ๐ŸŒŸ Improve the preview for Upload when uploading the file of non-image format. #9621 @zswang
  • ๐Ÿž Fix successPercent prop that cannot decide the success status for Progress. #9382
  • ๐Ÿž Fix font size for Tabs. #9509
  • ๐Ÿž Fix that disabled parent node cannot spread for Tree and TreeSelect. #9539

3.2.3

2018-03-02

  • ๐Ÿž Fix props onPopupScroll ts define in Select. #9475 @twobin
  • ๐Ÿž Fix Table filter dropdown menu popup container. #9209
  • ๐Ÿž Fix Timeline head custom style error in chrome. #9429 @vthinkxie
  • ๐Ÿž Fix Select dropdown border. 82092c1
  • ๐Ÿž Fix compatibility with less 3. #7850
  • ๐Ÿž Fix DatePicker.WeekPicker year. #9463
  • ๐Ÿž Fix Button.Group align 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
    • ๐ŸŒŸ multiLines mode will support autosize.
    • ๐Ÿž Fix paste not working when placeholder is specified. #9215
  • Table
    • ๐Ÿž Fix padding of middle size table. #9319
    • ๐Ÿž Fix border bug of small size table. #8980
    • ๐Ÿž Fix overflow issue of sort icon interactive area. #8979
    • ๐ŸŒŸ Improve typescript definition of column.dataIndex. #9298 @clinyong
  • Select
    • ๐Ÿž Fix wrong scroll position when navigating active item with keyboard. #9276
    • ๐Ÿž Fix arrow position in IE11.
  • ๐Ÿž Fix issue that file item showing uploading when Upload beforeUpload return false. #8020
  • ๐Ÿž Fix misplace of feedback icon of vertical layout 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 undefined error 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 tabBarGutter prop to Tab to allow setting gutter between tabs. #8644 @lixiaoyang1992
  • ๐ŸŒŸ Add new hasSider prop to Layout to avoid render error when server rendering. #8937
  • ๐ŸŒŸ Add new successPercent to Progress to allow showing two phases. Demo
  • ๐ŸŒŸ Add new iconType prop to Alert to allow settting icon type. #8811 @minwe
  • ๐ŸŒŸ Add id prop to DatePicker. #8598 @mgrdevport
  • ๐ŸŒŸ Add new forceRender prop to Collapse to allow rendering hide panel. #9192 #Pyroboomka @paulcmason
  • RangePicker
    • ๐ŸŒŸ Improve ranges prop 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 onOk is not being trigged, when click on the preset range. #7747
  • Select
    • ๐ŸŒŸ Improve onChangeใ€onDeselect, they will receive selected Option as second paramteter.
    • ๐Ÿž Fix issue resulting in onSelect is 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 by getCheckboxProps will be passed to checkbox. #9054 @mgrdevport
  • ๐Ÿž Fix issue resulting in Calendar's mode not 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 with tabPosition="bottom". #9165 @ryanhoho
  • ๐ŸŒŸ Add new Kurdish locale.

3.1.6

2018-01-28

  • ๐Ÿž Revert #9141 since it causes year and month can not be selected in DatePicker.

3.1.5

2018-01-27

  • ๐Ÿž Fix Select Options were disappeared when click the scrollbar in IE11. #7934 @tianlang89757
  • ๐Ÿž Fix Form getFieldDecorator referenced 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
  • ๐Ÿž Add Icon file-word. #9092 #9061
  • ๐Ÿž Fix wrong font family. commit/506f97
  • ๐Ÿ“– Add some TypeScript type definitions
  • ๐ŸŒŸ 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 Layout error responsive docs. #8995 @ReedSun
  • ๐Ÿž Fix List grid do 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 some new less variables.
  • ๐ŸŒŸ Add aliyun icon.

3.1.3

2018-01-14

  • ๐Ÿž Fix error when passing null locale to LocaleProvider.

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 Table[emptyText]. #8871
  • ๐Ÿž Fix now working Dropdown[transitionName].
  • ๐Ÿž 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 locales in dist/antd-with-locales.js has a extra default key. #8881
  • ๐Ÿž Fix some TypeScript type definitions. 4cc29bc 693e734 67e956d ecd4177 33119ec 88e0c9b
  • ๐ŸŒŸ Add some new less variables b9b5aba 5931b20 c9d7397
  • ๐ŸŒŸ 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-29

Happy 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 showArrow for disabling arrow icon in collapse panel. #8536 @apieceofbart
  • ๐ŸŒŸ Rate add allowClear for reset when click again. #8627
  • ๐ŸŒŸ Add responsive for BackTop. #8719 @JetRunner
  • ๐ŸŒŸ Add destroyOnClose to Modal component to support unmount child compenents on onClose. #8769 @Rohanhacker
  • ๐ŸŒŸ Pagination add hideOnSinglePage for support hide it when only one page. #8615 @camsong
  • ๐ŸŒŸ Support customize spin for List component.
  • ๐Ÿ‘ป Support open official demo in CodeSandbox.

3.0.3

2017-12-22

  • ๐Ÿž Add React.SFC type for Form.create return value. #8672
  • ๐Ÿž Fix form item height and align problem. #8701
  • ๐Ÿž Improve input addon size. #8680
  • ๐Ÿž Fix table size of fixed column. #8660

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.0 for peerDependencies warning. #8455
  • ๐Ÿž Fix not working size property in fixed-header Table. #8577
  • ๐Ÿž Fix not working locale property of DatePicker/RangePicker. #8635
  • ๐Ÿž Fix Popover arrow position and size cannot be overrided by less variable. #8548 #8549
  • ๐Ÿž Fix not working notFoundContent of 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.title text 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 InputProps and SearchProps in Input, AutoComplete, Transfer. #8478

3.0.1

2017-12-11

  • Remove 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. 28d13e2
  • Fix 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 the popup will disappear unexpectly in Safari. #8453
    • Fix the open animation. edd592c
  • Fix compile error of style of Notification. #8437
  • Fix the background color of mini Pagination. e13c6d8
  • Table
    • Fix broken style in mobile. #8465
    • Fix broken style when use size and nested Table together. #8525
  • TypeScript

3.0.0

2017-12-04

Learn 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 noHovering has been renamed to hoverable๏ผŒand its default value now is true.

  • Added new Grid breakpoints. #7230

  • Form getFieldDecorator's exclusive option has been removeed.

  • Added Form.createFormField, and you must use it to wrap field data returned in option.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" to Input in Form by default any more.

  • Input.Search ๐Ÿ” icon don't be interactive anymore, you can use new enterButton prop to add a button after input.

  • UMD version of dist/antd.js doesn'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 toggleOpen prop has been removed, use onOpenChange instead.
  • ๐Ÿ—‘ Form's inline, horizontal, vertical props has been removed, use layout instead.
  • ๐Ÿ—‘ Input's type prop has dropped textarea support, please use Input.TextArea instead.
  • ๐Ÿ—‘ Mention's toEditorState has been removed.
  • ๐Ÿ—‘ Select's multiple, combobox, tags props has been removed, use mode instead.

Features and Improvements

  • ๐ŸŒŸ Tabs added new size size="large"ใ€‚
  • ๐ŸŒŸ Row's gutter now support responsive setting, you can write gutter={{ sm: 16, lg: 32 }}.
  • ๐ŸŒŸ Spin added new indicator prop to allow setting custom indicator. #7977 @kossel
  • ๐ŸŒŸ Input.Search added new enterButton prop to allow setting custom search button.#7596
  • ๐ŸŒŸ Mention added new placement prop 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 href prop will render to <a>. #8343
  • ๐ŸŒŸ Steps was refactored, first rendering won't flash. #6010
  • ๐ŸŒŸ Switch added new loading prop to show a loading status.
  • Menu
    • ๐ŸŒŸ We refactored it with rc-trigger for delay popup and auto overflow in viewport.
    • ๐ŸŒŸ Added new subMenuOpenDelay and subMenuCloseDelay props to allow setting delay time for submenu toggling.
    • ๐ŸŒŸ Added new forceSubMenuRender prop 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
  • Badge
    • ๐ŸŒŸ Added new offset prop to allow setting the offset of status point.
    • ๐ŸŒŸ status can use whith children now. #8164
  • Card
    • ๐ŸŒŸ Added new inner type. Demoใ€‚
    • ๐ŸŒŸ Added coverใ€actions and a new Meta component. Demoใ€‚
  • DatePicker
    • ๐ŸŒŸ Added mode and onPanelChange๏ผŒto allow controlling the panel mode. Demoใ€‚
    • ๐ŸŒŸ Added WeekPicker component. Demo
    • ๐ŸŒŸ Added new dateRender prop to allow customizing date cell.
  • TimePicker
    • ๐ŸŒŸ Added new hourStep, minuteStep, secondStep props to allow customizing time setps. Demo
    • ๐ŸŒŸ Added new focusOnOpen prop to focus input after panel is open.
  • Table
    • ๐ŸŒŸ Added new components prop 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 onRow prop to allow passing custom props to table body row.
    • ๐ŸŒŸ Added new onHeaderRow props 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 use components instead.
    • ๐Ÿ™… Deprecated onRowClick๏ผŒonRowDoubleClickใ€onRowContextMenuใ€onRowMouseEnterใ€onRowMouseLeave, please use onRow instead.
      <Table onRow={(record) => ({
        onClick: () => {},
        onDoubleClick: () => {},
        onContextMenu: () => {},
        onMouseEnter: () => {},
        onMouseLeave: () => {},
      })} />
      
  • Select
    • ๐ŸŒŸ Option's value can be a number in single or multiple mode.
    • ๐ŸŒŸ Added new maxTagCount and maxTagPlaceholder props.
    • ๐ŸŒŸ Added new showAction prop to allow setting the trigger action for popup.
    • ๐ŸŒŸ Added new onMouseEnter and onMouseLeave callback.
  • LocaleProvider

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 allowSyntheticDefaultImports when using in TypeScript.
  • We removed react@0.14 and react@15 from peerDependencies, though antd@3.0 still 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 16
  • Fully es module support, if you are using webpack 3, you can set babel-plugin-import's libraryDirectory to es to enable tree shaking .
  • We will support 2.x branch until June in next year.

2.x

Visit GitHub to read 2.x change logs.

1.11.4

Visit GitHub to read change logs from 0.x to 1.x.