antd 4.17.0
- Dynamic Theme Theme
- 🔥 ConfigProvider support dynamic modify theme color. view detail. #31496
- 🚧 Move part
mixinsrelated less file tothemesinstead since it requires theme variable. We do not recommend use internal file but please note this if you already use it. #32763 - 🐞 Fix
antd.variable.lesscompile mix with default theme variable. #32279 - 🐞 Fix antd compile file miss
/style/default.css. #32116 - 🐞 Fix less compile
antd.xxx.lessthrow theMaximum call stack size exceeded error. #32063
- Input
- 🐞 Fix Input.Search
border-left-radiusis not 0 when configured withallowClearandaddonBefore. #32812 @KAROTT7 - 🐞 Fix Input set to
disabledstill keep focused style. #32739 - 🐞 Avoid Input
placeholdercan be selected on Chrome. #32639 @cw1997 - 🐞 Input.TextArea
maxLengthis now passing to html textarea element. #32448 @MOHAMMADArsalan - 🐞 Fix Input cannot clear content when focus it. #31931 @adaex
- 🐞 Fix Input.Search
- Cascader
- 🔥 Cascader support
multiplemode. #31936 - 🆕 Cascader add
titleprop with content by default. #31237 @yingpengsha - 🐞 Fix Cascader missing
popupClassNameandpopupPlacementprops. #32143
- 🔥 Cascader support
- Select
- TreeSelect
- Tree
- 🆕 Tree
draggableadd handler for tips. #32306 - 🆕 Tree support
fieldNamesto customize node field name. #31395 - 🆕 Tree support
onScrollin virtual scroll. #474 - 🐞 Fix Tree icon align bug when
showLineis enable. #32822 - 🐞 Fix Tree.DirectoryTree throws
TypeError:nativeEvent is undefined. #32551 @D-to-the-K - 🐞 Fix Tree drop outside not clear indicator. #478
- 💄 Fix 1px position deviation of the Tree connection line when zooming in. #32075 @btea
- 🆕 Tree
- PageHeader
- 🐞 Fix PageHeader with false 'breadcrumbrender' still shows dom. #32738
- Form
- Drawer
- 🆕 Tweak Drawer close icon position and default width, add
extraandsizeprops. #30908 - 🆕 Drawer support
autoFocusprop. #181 - 🐞 Fix the problem that the bottom Drawer component has no animation. #32761 @solitia7125
- 💄 Optimize Drawer open animation. #32342
- 🆕 Tweak Drawer close icon position and default width, add
- Steps
- 🐞 Fix Steps
progressDotstyle when it isvertical. #32742 - 🐞 Fix Steps default responsive style not working. #31965 @tangjinzhou
- 🐞 Fix Steps
- Typography
- Table
- 🔥 Table adds
column.filterModeto support filter in a tree, which could set to'menu' | 'tree'. #31809 - 🔥 Table adds
column.filterSearchfor enable search function in filter dropdown. #31809 - 🆕 Table hover
rowSpanrow will highlight all the rows now. #32557 - 🐞 Fix Table selection column arrow get covered by fixed column. #32276 @g7i
- 🐞 Fix Table
loadingjumpy style when setsticky. #32703 @miloudbelaabed - 🐞 Fix Table don't support
ref. #32136 @JounQin - 🐞 Table remove
stickystyle with fixed column in IE11 to avoid layout issue. #32177 - 💄 Optimize Table sorter icon margin problem. #32172
- 🐞 Fix Table.SELECT_XXX ignore record
disabledstatus bygetCheckboxProps. #32027 - 💄 Table filter reset button won't close dropdown now. #31809
- 🐞 Revert Table sticky
z-indexstyle back tocalcinstead of less calculation to fixautostyle failure. #31874 @bconnorwhite - 🐞 Fix Table scroll bar display issue when data dynamic changed. #647 @lanten
- 🐞 Fix
pagination.classNamenot working in Table. #32131 @JounQin
- 🔥 Table adds
- Transfer
- 🆕 Transfer support custom left and right
footer. #31108 - 🆕 Transfer supports
locale.notFoundContentwith array. #31088 @wwyx778 - 🐞 Fix Transfer throws
MenuItem should not leave undefined keywarning when opening selection dropdown menu. #32578 - 💄 Tweak Transfer filter search input icon position. #31809
- 🆕 Transfer support custom left and right
- Collapse
- Button
- Pagination
- 🆕 Pagination supports
selectComponentClassprop. #32132 @JounQin - 💄 Add box-shadow for jumper input in Pagination with
simpleprops. #32528 @chen-jingjie
- 🆕 Pagination supports
- Upload
- InputNumber
- 🔥 InputNumber support
addonBeforeandaddonAfter. #31432 @Austaras - 🆕 InputNumber now supports
controlsfor displaying+-buttons or not. #31548 - 🆕 InputNumber
formattersupport additional param to check if current input is user typing. #31030 - 🐞 Fix InputNumber handler arrow not align center. #32409
- 💄 Show InputNumber handler when focus it. #31911
- 🔥 InputNumber support
- DatePicker
- 🆕
DatePickerandRangePickernow supportnextIcon,prevIcon,superNextIconandsuperPrevIcon. #31703 @Oreoz - 🐞 Fix
defaultPickerValuenot working in RangePicker. #32107 @thommesZip
- 🆕
- Notification
- 🆕 Notification support
maxCountto limit count. #31807 @binyellow - 🐞 Fix
closeIconnot working bug when Notification is called multiple times. #32359 @KAROTT7
- 🆕 Notification support
- 🆕 Menu.Divider support
dashedstyle. #31379 @Map1en - 🆕 Skeleton.Button add
blockprop. #30902 @Jehu - 🆕 Popconfirm
onConfirmsupports Promise. #30871 @wendellhu95 - 🐞 Fix Card
tabsstyle when settabPosition: 'left'. #32695 - 🐞 Fix Radio cannot click due to custom
typeproperty. #32463 - 🐞 Fix
Okabbreviation to beOK. #32259 @chj-damon - 🐞 Fix Grid Col
flexsome time exceed its width when content too long. #32160 - 🐞 Fix Switch Loading icon in an incorrect position. #32216
- 🐞 Fix return element of
getPopupContainerin ConfigProvider is not used as a container when callingmessage.useMessage. #31939 @DaoxingHuang - 💄 Improve small size Image by ellipsising preview text. #29900 @drizzlesconsin
- 🐞 Fix Alert extra dom node when
messageisundefined. #32057 - 🐞 Fix anchor
targetOffsetnot work when contain spaces. #31952 @adaex - 💄 Add
@checkbox-border-radiusless variable. #31360 @Gherciu - 🐞 Avatar add
crossOriginproperty to resolve cross origin issue. #31273 @Map1en - RTL
- 💄 Optimized Alert close icon display in RTL mode. #32286
- 💄 Optimized Table header action display in RTL mode. #32283
- 💄 Optimized Collapse arrow icon display in RTL mode. #32282
- 💄 Optimized Badge count display and animation in RTL mode. #32281
- 💄 Optimized InputNumber handler border style in RTL mode. #32272
- 💄 Optimized Dropdown icon display in RTL mode. #32271
- 🐞 Fix Transfer list
directionvalue in RTL mode. #31903
- 🌐 Localization
- TypeScript
- 🤖 Modify the type of Spin
tipto ReactNode.. #32733 @tychenjiajun - 🤖 Fix Message duration type definition. #32524 @chen-jingjie
- 🤖 Fix args type for
getPopupContainerin ConfigProvider. #32406 @mtadams007 - 🐞 Fix Table missing generic type definition. #32358
- 🐞 Fix Switch missing
idproperty. #32237 @M-ZubairAhmed - 🤖 Fix
typetype for Button. #32004 @jaredleechn - 🤖 Improve type
localefor Pagination. #32128 @JounQin - 🤖 Improve and export
DropdownButtonTypetype for DropdownButton [#31957 @Dreamerryao - 🤖 Adjust List
rowKeytype to React.key. #32033 @lironhl - 🐞 Fix DatePicker
reftyping. #31993 @acfasj - 🤖 Update the
levelMovetype definition in Drawer. #30714 @g0shed
- 🤖 Modify the type of Spin
- 动态主题
- 🔥 ConfigProvider 支持动态配置主题色,详细文档。#31496
- 🚧 移动部分
mixinsless 文件到themes文件下,因为它们依赖于主题相关变量。我们不推荐直接引用底层 less 文件,但是如果你使用了请注意这部分变更。#32763 - 🐞 修复
antd.variable.less编译时会混入默认主题配置的问题。#32279 - 🐞 修复 antd 编译产物缺失
/style/default.css文件的问题。#32116 - 🐞 修复 less 编译
antd.xxx.less会抛出Maximum call stack size exceeded error的问题。#32063
- Input
- 🐞 修复
Input.Search组件在有allowClear和addonBefore属性时,输入框border-left-radius值错误的问题。#32812 @KAROTT7 - 🐞 修复 Input 设置
disabled时仍然保留聚焦样式的问题。#32739 - 🐞 修复 Input
placeholder在 Chrome 上能被选择的问题。#32639 @cw1997 - 🐞 Input.TextArea
maxLength属性现在会传给原生 textarea 标签。#32448 @MOHAMMADArsalan - 🐞 修复 Input 聚焦时点击清除图标无效的问题。#31931 @adaex
- 🐞 修复
- Cascader
- 🔥 Cascader 支持
multiple模式。#31936 - 🆕 在
Cascader组件中,默认给选中值的文本添加title属性。#31237 @yingpengsha - 🐞 修复 Cascader 中
popupClassName与popupPlacement属性无效问题。#32143
- 🔥 Cascader 支持
- Select
- TreeSelect
- Tree
- PageHeader
- 🐞 修复 PageHeader
breadcrumbRender返回false,仍然展示 dom 的问题。#32738
- 🐞 修复 PageHeader
- Form
- Drawer
- 🆕 调整 Drawer 关闭按钮位置和默认宽度,新增
extra操作区域和size大小属性。#30908 - 🆕 Drawer 支持
autoFocus属性。#181 - 🐞 修复底部 Drawer 组件没有动画的问题。#32761 @solitia7125
- 💄 优化 Drawer 弹出动画。#32342
- 🆕 调整 Drawer 关闭按钮位置和默认宽度,新增
- Steps
- 🐞 修复 Steps 垂直
progressDot的对齐样式问题。#32742 - 🐞 修复 Steps 默认响应式不生效的问题。#31965 @tangjinzhou
- 🐞 修复 Steps 垂直
- Typography
- Table
- 🔥 Table 新增
column.filterMode以支持配置树形筛选菜单,可选值为'menu' | 'tree'。#31809 - 🔥 Table 新增
column.filterSearch以支持开启筛选列搜索功能。#31809 - 🆕 Table 鼠标悬浮
rowSpan行时会高亮所有相关行。#32557 - 🐞 修复 Table 选择框下拉箭头被固定列遮挡的问题。#32276 @g7i
- 🐞 修复 Table 设置
sticky的时候loading样式跳动的问题。#32703 @miloudbelaabed - 🐞 修复 Table 不支持
ref的问题。#32136 @JounQin - 🐞 Table 移除 IE11 下
sticky的相关样式以解决布局问题。#32177 - 🐞 优化 Table 排序图标边距问题。#32172
- 🐞 修复 Table 中
pagination.className不生效的问题。#32131 @JounQin - 🐞 修复 Table.SELECT_XXX 会无视
getCheckboxProps提供的disabled状态问题。#32027 - 💄 Table 筛选菜单重置按钮现在不再关闭菜单和生效。#31809
- 🐞 回滚 Table sticky
z-index样式的 less 计算到calc,以防止auto样式计算错误问题。#31874 @bconnorwhite - 🐞 修复 Table 在数据变更后滚动条展示问题。#647 @lanten
- 🔥 Table 新增
- Transfer
- Collapse
- Button
- Pagination
- 🆕 Pagination 支持定制
selectComponentClass。 #32132 @JounQin - 💄 Pagination
simple属性下中翻页 input 增加 box-shadow。#32528 @chen-jingjie
- 🆕 Pagination 支持定制
- Upload
- InputNumber
- DatePicker
- 🆕
DatePicker和RangePicker现在支持nextIcon、prevIcon、superNextIcon和superPrevIcon。#31703 @Oreoz - 🐞 修复 RangePicker 的
defaultPickerValue不生效的问题。#32107 @thommesZip
- 🆕
- Notification
- 🆕 Notification 支持
maxCount属性以限制最大显示数。#31807 @binyellow - 🐞 修复多次调用 Notification 时
closeIcon配置无法覆盖的问题。#32359 @KAROTT7
- 🆕 Notification 支持
- 🆕 增加 Menu.Divider 的
dashed属性。#31379 @Map1en - 🆕 Skeleton.Button 添加
block属性。#30902 @Jehu - 🆕 Popconfirm 组件的
onConfirm允许返回一个 Promise。#30871 @wendellhu95 - 🐞 修复 Card 设置
tabs后当tabPosition: 'left'时的样式问题。#32695 - 🐞 修复 Radio
type属性被覆盖导致无法点击的问题。#32463 - 🐞 修复英文国际化文案
Ok为OK。#32259 @chj-damon - 🐞 修复 Switch
loading按钮位置不正确的问题。#32216 - 🐞 修复 Grid Col
flex在内容过长的时候缩放失效的问题。#32160 - 🐞 修复调用
message.useMessage时未使用 ConfigProvider 中的getPopupContainer返回元素作为容器的问题。#31939 @DaoxingHuang - 💄 优化 Image 在小尺寸下省略预览文本。#29900 @drizzlesconsin
- 🐞 修复 Alert
message为空时 dom 节点还在的问题。#32057 - 🐞 修复 Anchor 组件包含空格时
targetOffset属性不生效的问题。#31952 @adaex - 💄 新增 Less 变量
@checkbox-border-radius。#31360 @Gherciu - 🐞 Avatar 增加
crossOrigin参数以解决跨域问题。#31273 @Map1en - RTL
- 🌐 国际化
- TypeScript
- 🤖 修改 Spin
tip的类型为 ReactNode。#32733 @tychenjiajun - 🤖 修复 Message duration 类型定义。#32524 @chen-jingjie
- 🤖 修复 ConfigProvider 中
getPopupContainer的参数类型。#32406 @mtadams007 - 🐞 修复 Table 丢失泛型定义。#32358
- 🤖 修复 Switch
id属性定义。#32237 @M-ZubairAhmed - 🤖 修复 Button 的
type的 TS 类型定义。#32004 @jaredleechn - 🤖 完备 Pagination 的
localeTS 类型定义。[#32128 @JounQin - 🤖 完善并导出 DropdownButton 的
DropdownButtonTypeTS 类型定义。 [#31957 @Dreamerryao - 🤖 调整 List 组件
rowKey类型为 React.key。#32033 @lironhl - 🐞 修复 DatePicker
ref类型。#31993 @acfasj - 🤖 更新 Drawer 中
levelMove类型定义。#30714 @g0shed
- 🤖 修改 Spin