同步操作将从 ant-design/ant-design 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
order | title | toc | timeline |
---|---|---|---|
6 |
Change Log |
false |
true |
antd
strictly follows Semantic Versioning 2.0.0.
2018-08-05
Thanks to 24 contributors who send pull request to 3.8.0!
mode="left|right|alternate"
now. #11490 @jrvboesch
block
prop which allow to fit parent container. #11500 @ilanus
rowSelection.columnTitle
to customize selection column title. #11042 @littleLane
shift
. #11404 @RaphaelChauveau
onError
prop that is callback when image loading fail. #11285 @paranoidjk
size
prop for customize size of Avatar. #11256 @emersonlaurentino
headStyle
prop. #11407 @emersonlaurentino
data-*
attributes.onChange
prop. #11476 @tangjinzhou
icon
prop. #11191 @nuintun
strokeLinecap
to customize shape of edge. #11547 @blatinier
className
and deprecated wrapClassName
. #11609 @fergiar
2018-07-28
labelPlacement
to vertical
in Steps. #11426 @yoyo837
fieldName
could not be read correctly in Cascader. #11311 @405go
2018-07-25
onChange
was trigged twice when click the filter icon of Table. #11164 @adybionka
2018-07-21
tabList
support disabled
prop.#11212
href
update.#11287 @tangjinzhou
destroyOnClose
is set.#11307
expandedKeys
is in control.#11366
disabled
.11321 @tangjinzhou
3.7.0 is a heavy update that brings a lot of exciting changes and new features. Here are some highlights ✨:
Tree.DirectoryTree
component as the built-in directory tree. #7749
Component Fixes / Enhancements:
rc-tree-select
to 2.0.5
for TreeSelect, refactored to fix the logic of the check.
autoClearSearchValue
prop to clear the value of search input when multiple select is selected or deselected. 10996
searchValue
prop to set the value of search input. 6ff7dd8
maxTagCount
prop to set the max count of visible tags. fb96c9d
maxTagPlaceholder
prop to set the content when the tag is hidden. fb96c9d
label
prop and use title
prop instead in the treeData
.rc-upload
to 2.5.0
for Upload.
rc-table
to 6.2.2
for Table. f2fddff
expanded
as the fourth param of expandedRowRender
prop to get the expanded state of current row. #10379
filterIcon
prop supports to be a render function which returns ReactNode. 1af4392
data-*
, aria-*
and role-*
props to the inner for Alert. f0b684d
alt
prop for Avatar to set the text when the image is unable to display. #10798
data-*
, aria-*
and role-*
props to the inner Input for DatePicker. e63f9d4
event
object as the second param of onSearch
prop for Input.Search. #11015
onBreakPoint
prop for Layout.Sider to be the callback function when breakpoint is triggered. #10750 @nuintun
okButtonProps
prop to set the props of ok button and add cancelButtonProps
prop to set the props of cancal button for Modal. #10955 @djyde
strokeColor
prop to set the color of progress bar for Progress. #10725
buttonStyle
prop whose optional value is outline
or solid
to set the Radio.Group style. 60e3cfa
setDefaultIndicator
static function to set global indicator for Spin. #10787
visible
prop to set the visibility for Tag
. 4ac0277
rc-tree
to 1.12.0
for Tree
combobox
value for Select[mode]
and please replace it with AutoComplete
. 53046a4
fieldNames
and discards the misspelled filedNames
. #10896
okButtonDisabled
and cancelButtonDisabled
props to disable ok button and cancel button. #10955
2018-07-07
DatePicker
. #6146 #9529
DatePicker.RangePicker
. 004561b
Form.Item
for Cascader
. #9827 #11133
handler
for InputNumber
. 4aabc53
FireFox
when the data is empty for Table
. #11135
2018-07-02
Transfer
repaint problem in IE or Edge. #9697
Card
background overflow when zoom in chrome. #9085
Pagination
. babbbdd4
Select
mirror style to avoid to long string. #11035
2018-06-23
Steps
theme @process-icon-color
. #10973
Dropdown
non-boolean attribute warning. #7798
2018-06-17
className
prop of Table's filterIcon
. #10937
offsetTop
and offsetBottom
cannot be updated. #10874
2018-06-09
beforeUpload
returns false
in Upload component. #10681
primary-color
.size
. #10786
delay
issue when sets spinning
to true
as default.#10727 @dreamerblue
2018-06-02
Form
's error message now can be customized with ReactNode. #10136 @lovekonakona
List
support customized configuration for position of pagination. #10581 @zheeeng
Layout.Sider
now can be configured with light
or dark
theme. #10142 @pd4d10
Transfer
adding style
and operationStyle
props for further customization. @eduludi
Message
adds a promisfied interface to handle callback. #10421 @zhujinxuan
Menu
where outer menu item not highlighting while inner item is selected. #8666 @stonehank
offsetBottom
not working. #10674
2018-05-26
showSearch
on Cascader
not working.968488a2
Badge[status]
support Tooltip
.#10626
text-align
on parent element affects Spin
.#10643 @wmzhong
Table
break line style change from break-all
to break-word
.#10655 @clinyong
Search
not define enterButton
, click search icon will trigger onSearch
. 36ffe7e1
2018-05-20
Affix
with offsetTop === 0, value becomes undefined
problem #10566
Input.Group
component shadows#10230
Transfer
component checkbox event fired twice #10480
Dropdown
8e2f72f
antd-theme-generato
, thanks to the work of @mzohaibqc.2018-05-13
Table
filter doesn't work when click checkbox. #10452
Cascader
displayRender z-index issue. #10433
Button
Types of property 'ref' are incompatible. #10405
Form
item when checks position is dithered. #10445
Layout
width. #10479
2018-05-09
z-index
of Input.Group and Checkbox. #9840 #10385
rowSelection
type。#10374
2018-05-04
title
prop to Badge
that shows when hovering it. 74d81c2 @ludwigbacklund
successPercent
as Progress[format]
argument. #10096
rc-notification
to 3.1.0 so that Notification
support set maxCount
. #10161 @jzhangs
rc-cascader
to 1.13.0 so that Cascader
support set filedNames
. react-component/cascader#23 @405go
Notification
props by key. react-component/notification#40 @yevhen-hryhorevskyi
List
support pagination by default. #10135
sorter
function is passed sortOrder
as param. #10306 @kumarashwin
rc-menu
to 7.x
#10305
Collapse
styles with less. #9943 @davidhatten
rc-collapse
to 1.9.0 to add Collapse
keyboard support. react-component/collapse#84 @kossel
placeholder
. #10282 @thomasthiebaud
value
typescript type. #10336 @paranoidjk
Form.onValuesChange
. #10231 @whtsky
ComponentDecorator
. #10324 @paranoidjk
Divider
. #10216
Spin
container interaction. #10227
Notification
icon hover color. #10272
Upload
property lastModifiedDate
name. #10315 @danielg2002
Button
props type, use React.HTMLProps
. #10229 @whtsky
2018-05-03
2018-04-28
onChange({ file })
is not a File instance introduced in 3.4.2
. #10293
2018-04-23
Menu
item's clickable region in dark theme. #10187 @dgeibi
2018-04-22
sideEffects
to package.json
for better Tree-Shaking. #10043 @Aladdin-ADD
getCheckboxProps
cannot be updated as expected. #10133
prefixCls
prop not passed to Checkbox. #9950
2018-04-08
actions
. #9882
onHeaderRow
TypeScript type definitions for Table. #9902 @Nokecy
2018-04-01
defaultExpandParent
for expanding parent at first render.disabled
for disabling the whole tree.TreeNode[icon]
to allow setting custom node icon.getContainer
for setting the container of scroll content.@table-expanded-row-bg
. #9789
moment.locale
invoking error in LocaleProvider. #9853
style
of WeekPicker not works. #9848
2018-03-25
file
type change in previous version which causes breaking change.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
2018-03-18
column.title
in Table .#9658 @terence55
scroll: { x: true }
not working if .ant-table-scroll table
width is auto
. #9704
TimePicker
will report error in parcel. 85c78e4
Table
border radius. #9674
2018-03-12
afterClose
prop for Alert
to achieve smooth unmount. #9448 @Hughen
validRange
prop for Calendar
to set the date range. 71f65a0 @Rohanhacker
defaultActiveTabKey
prop for Card
to initial TabPane's active key. 30fe88d @u3u
DatePicker
orientation
prop for Divider
to set the alignment of text in divider. #9275 @jrvboesch
keyboard
prop for Modal
to set whether Modal could be closed by Esc
key. #8818
event
param in onChange
prop for Radio
and Checkbox
. #9574
Table
position
prop in pagination
prop to set the position of pagination. #9357 @kanweiwei
onSelect
prop in rowSelection
prop. #9376 @kanweiwei
columnWidth
prop in rowSelection
prop to set the column width of selection. #9474 @SimpleFrontend
Chrome
for Table
. af8e54f
pendingDot
prop for Timeline
to set icon of ghost node. #9546 @SimpleFrontend
inputReadOnly
prop for TimePicker
to set if it's read only. 4a69446 @JesperWe
dropdownClassName
prop for TreeSelect
. 69b154f 56e4ce0
Upload
when uploading the file of non-image format. #9621 @zswang
successPercent
prop that cannot decide the success status for Progress
. #9382
Tabs
. #9509
Tree
and TreeSelect
. #9539
2018-03-02
onPopupScroll
ts define in Select
. #9475 @twobin
Table
filter dropdown menu popup container. #9209
Timeline
head custom style error in chrome. #9429 @vthinkxie
Select
dropdown border. 82092c1
DatePicker.WeekPicker
year. #9463
Button.Group
align issue in chrome. #9457
2018-02-24
Pagination
. #9351
Badge
. #9352
Form.create
. #9331
column.dataIndex
. #9393
2018-02-11
multiLines
mode will support autosize.placeholder
is specified. #9215
uploading
when Upload beforeUpload
return false. #8020
vertical
layout Form. #9153
Cannot read property 'locale' of undefined
error when select end date. #9267
2018-02-04
tabBarGutter
prop to Tab to allow setting gutter between tabs. #8644 @lixiaoyang1992
hasSider
prop to Layout to avoid render error when server rendering. #8937
successPercent
to Progress to allow showing two phases. Demo
iconType
prop to Alert to allow settting icon type. #8811 @minwe
id
prop to DatePicker. #8598 @mgrdevport
forceRender
prop to Collapse to allow rendering hide panel. #9192 #Pyroboomka @paulcmason
ranges
prop to allow passing function to it. #8281
onOk
is not being trigged, when click on the preset range. #7747
onChange
, onDeselect
, they will receive selected Option
as second paramteter.onSelect
is not trigged when using automatic tokenization. #9094
rowSelection[getCheckboxProps]
prop, now the all the properties returned by getCheckboxProps
will be passed to checkbox. #9054 @mgrdevport
mode
not being allowed to be changed from outside. #9243 @mgrdevport
type="card"
combine with tabPosition="bottom"
. #9165 @ryanhoho
2018-01-28
2018-01-27
getFieldDecorator
referenced item will conflicted when using the same id. #9103 #7351
file-word
. #9092 #9061
duration
for Notification. pull/9120 @duhongjun
style
for Steps. pull/9126 @wanliyunyan
2018-01-21
grid
do not support xxl. #9019
subMenuCloseDelay
and subMenuOpenDelay
for Menu. #8976 @Rohanhacker
maxLength
type definitions. #9046 @Riokai
2018-01-14
null
locale
to LocaleProvider.2018-01-13
0
. #8733 @Cuihongsen
locales
in dist/antd-with-locales.js has a extra
default key. #8881
2018-01-08
2017-12-29
Happy 2018 !~ 2018 2018 2018 coming!~~~
showArrow
for disabling arrow icon in collapse panel. #8536 @apieceofbart
allowClear
for reset when click again. #8627
destroyOnClose
to Modal component to support unmount child compenents on onClose. #8769 @Rohanhacker
hideOnSinglePage
for support hide it when only one page. #8615 @camsong
2017-12-22
2017-12-17
react-slick@0.16.0
for peerDependencies warning. #8455
size
property in fixed-header Table. #8577
locale
property of DatePicker/RangePicker. #8635
notFoundContent
of AutoComponent. #8553
0
. #8587
Meta.title
text overflow not working. #8597
defaultOpenKeys
. #8475
InputProps
and SearchProps
in Input, AutoComplete, Transfer. #8478
2017-12-11
antd/lib/style/v2-compatible-reset.css
. 28d13e2
2017-12-04
Learn more in the Ant Design 3.0 announcement post.
#108EE9
』 to 『#1890FF
』, we called the new primary color "拂晓蓝 (Daybreak Blue)" which means the color of the sky at daybreak.en_US
.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>
toggleOpen
prop has been removed, use onOpenChange
instead.inline
, horizontal
, vertical
props has been removed, use layout
instead.type
prop has dropped textarea support, please use Input.TextArea instead.toEditorState
has been removed.multiple
, combobox
, tags
props has been removed, use mode
instead.size="large"
。gutter
now support responsive setting, you can write gutter={{ sm: 16, lg: 32 }}
.indicator
prop to allow setting custom indicator. #7977 @kossel
enterButton
prop to allow setting custom search button.#7596
placement
prop to allow setting the popup direction.next()
, prev()
, goTo(slideNumber)
methods to allow controlling slides programmatically.href
prop will render to <a>
. #8343
loading
prop to show a loading status.subMenuOpenDelay
and subMenuCloseDelay
props to allow setting delay time for submenu toggling.forceSubMenuRender
prop to render submenu even if it's collapsed. #5586
duration
optional. #7857 @monkindey
offset
prop to allow setting the offset of status point.status
can use whith children
now. #8164
hourStep
, minuteStep
, secondStep
props to allow customizing time setps. Demo
focusOnOpen
prop to focus input after panel is open.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} />
onRow
prop to allow passing custom props to table body row.onHeaderRow
props to allow passing custom props to table header row.column[onCell]
to allow passing custom props to table body cell.column[onHeaderCell]
to allow passing custom props to table header cell.column[align]
to allow setting how text aligns.column[defaultSortOrder]
to allow setting default sort order. #8111 @megawac
rowSelection[fixed]
to allow fixing the selection column.。getBodyWrapper
, please use components
instead.onRowClick
, onRowDoubleClick
, onRowContextMenu
, onRowMouseEnter
, onRowMouseLeave
, please use onRow
instead.
<Table onRow={(record) => ({
onClick: () => {},
onDoubleClick: () => {},
onContextMenu: () => {},
onMouseEnter: () => {},
onMouseLeave: () => {},
})} />
maxTagCount
and maxTagPlaceholder
props.showAction
prop to allow setting the trigger action for popup.onMouseEnter
and onMouseLeave
callback.allowSyntheticDefaultImports
when using in TypeScript.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
libraryDirectory
to es
to enable tree shaking .Visit GitHub to read 2.x
change logs.
Visit GitHub to read change logs from 0.x
to 1.x
.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。