Releases: ant-design/ant-design
Releases · ant-design/ant-design
5.11.1
- 🐞 Fix Dropdown use wrong
zIndex
when nest items. #45761 - 🐞 Fix Upload should show remove icon when
showRemoveIcon
is specified to true explicitly. #45752 - 🐞 Fix Descriptions use
children
structure missing the Descriptions.Itemkey
prop. #45757 - 🐞 Fix Message that token specified in component scope not work. #45721 @MadCcc
- 🐞 Fix Popconfirm not compatible with
visible
prop. #45702 @linhf123 - 🐞 Fix Tag default background color not correct. #45711 @kiner-tang
- 💄 Fix Notification that
style.width
not work. #45681 @MadCcc - 🐞 Fix App console unexpected attr warning when set
component=false
. #45671 @li-jia-nan - TypeScript
- 🐞 修复 Dropdown 在嵌套列表时
zIndex
错误的问题。#45761 - 🐞 修复 Upload 显式指定
showRemoveIcon: true
时删除图标未显示的问题。#45752 - 🐞 修复 Descriptions 使用
children
结构语法糖时,会丢失 Descriptions.Item 的key
的问题。#45757 - 🐞 修复 Message 组件在组件范围设置全局
token
无效的问题。#45721 @MadCcc - 🐞 修复 Popconfirm 不兼容
visible
的问题。#45702 @linhf123 - 🐞 修复默认 Tag 的背景颜色不正确的问题。#45711 @kiner-tang
- 💄 修复 Notification 组件设置
style.width
无效的问题。#45681 @MadCcc - 🐞 修复 App 设置
component=false
时,会报非预期的属性警告的问题。#45671 @li-jia-nan - TypeScript
5.11.0
- Slider
- InputNumber
- Table
- 🆕 Table
columnTitle
support render function. #41937 @Zhou-Bill - 🛠 Refactor Table
ref
to supportscrollTo
to scroll to targetkey
orindex
ortop
. #45245
- 🆕 Table
- Tabs
- ConfigProvider
- 🆕 ConfigProvider support RangePicker
className
andstyle
properties. #45479 @chenzhuo198 - 🆕 ConfigProvider support Dropdown
className
andstyle
properties. #45621 @li-jia-nan
- 🆕 ConfigProvider support RangePicker
- 🆕 ColorPicker
preset
prop supportdefaultOpen
to control whether preset colors is open by default. #45607 @Wxh16144 - 🆕 Select support
optionRender
prop. #45529 @RedJue - 🆕 Pagination support combine
simple
andshowSizeChanger
. #45538 - 🆕 Spin support
fullscreen
to display as backdrop. #44986 @Rafael-Martins #45436 @li-jia-nan - 🆕 Form
validateFields
supportdirty
for validating touched and validated fields. #45389 - 🆕 Watermark support
inherit
prop to disable watermark pass to Drawer and Modal. #45319 - 🆕 App support
component
for customization. #45292 - 🆕 Input and Input.TextArea support
count
custom character count (for example, fix emoji character length to1
);count.max
supports out-of-range styles; restore emoji to native count to solve the problem ofmaxLength
andvalue
mismatch. #45140 - 🐞 Fix Dropdown not trigger
onOpenChange
when click menu item to close the popup. #45378 - 💄 Modal static function support
styles
. #45558 @KotoriK - 💄 Optimize z-index logic of popup components, and make them don't block each other by default. #45512 #45490 @kiner-tang
- Optimize z-index logic of Menu. #45498 @kiner-tang
- Optimize z-index logic of DatePicker and TimePicker. #45497 @kiner-tang
- Optimize z-index logic of Drawer. #45496 #45417 @kiner-tang
- Optimize z-index logic of Cascader, TreeSelect and AutoComplete. #45494 @kiner-tang
- Optimize z-index logic of Dropdown. #45486 @kiner-tang
- Optimize z-index logic of Tour. #45425 @kiner-tang
- Optimize z-index logic of Tooltip. #45422 @kiner-tang
- Optimize z-index logic of Popover. #45420 @kiner-tang
- Optimize z-index logic of Popconfirm. #45421 @kiner-tang
- Optimize z-index logic of Modal and Select. #45346 @kiner-tang
- Slider
- InputNumber
- Table
- 🆕 Table 组件
columnTitle
支持传入 render 方法。#41937 @Zhou-Bill - 🛠 重构 Table
ref
支持scrollTo
以滚动到目标key
或index
或top
。#45245
- 🆕 Table 组件
- Tabs
- ConfigProvider
- 🆕 ConfigProvider 支持 RangePicker 组件的
className
和style
属性。#45479 @chenzhuo198 - 🆕 ConfigProvider 支持 Dropdown 组件的
className
和style
属性。#45621 @li-jia-nan
- 🆕 ConfigProvider 支持 RangePicker 组件的
- 🆕 ColorPicker 组件
preset
新增defaultOpen
属性,可控制预设颜色默认是否展开。#45607 @Wxh16144 - 🆕 Select 组件支持
optionRender
方法。#45529 @RedJue - 🆕 Pagination 组件支持组合
simple
和showSizeChanger
使用。#45538 - 🆕 Spin 组件新增
fullscreen
属性,支持全屏展示。#44986 @Rafael-Martins #45436 @li-jia-nan - 🆕 Form
validateFields
支持dirty
参数以校验被修改过和校验过的字段。#45389 - 🆕 Watermark 支持
inherit
配置,关闭水印传导至弹出 Drawer 与 Modal。#45319 - 🆕 App 支持
component
以自定义渲染元素。#45292 - 🆕 Input 与 Input.TextArea 支持
count
自定义字符计数(例如固定 emoji 字符长度为1
);count.max
支持超出范围样式;将 emoji 计数还原为原生计数以解决maxLength
与value
不匹配的问题。#45140 - 🐞 修复 Dropdown 在点击菜单项关闭弹出框时不会触发
onOpenChange
的问题。#45378 - 💄 Modal 静态方法支持
styles
属性。#45558 @KotoriK - 💄 优化弹层组件的
z-index
逻辑,使其在默认情况下不会互相遮挡。#45512 #45490 @kiner-tang- 优化 Menu 组件
z-index
逻辑。#45498 @kiner-tang - 优化 DatePicker、TimePicker 组件
z-index
逻辑。#45497 @kiner-tang - 优化 Drawer 组件
z-index
逻辑。#45496 #45417 @kiner-tang - 优化 Cascader、TreeSelect、AutoComplete 组件
z-index
逻辑。#45494 @kiner-tang - 优化 Dropdown 组件
z-index
逻辑。#45486 @kiner-tang - 优化 Tour 组件
z-index
逻辑。#45425 @kiner-tang - 优化 Tooltip 组件
z-index
逻辑。#45422 @kiner-tang - 优化 Popover 组件
z-index
逻辑。#45420 @kiner-tang - 优化 Popconfirm 组件
z-index
逻辑。#45421 @kiner-tang - 优化 Modal、Select 组件
z-index
逻辑。#45346 @kiner-tang
- 优化 Menu 组件
5.10.3
- 💄 Fix Typography.Text lost right border when enable
ellipsis
andcode
. #45575 - 💄 Modify the TimePicker scroll bar style. #45478 @GeorgeHcc #45586
- 🆕 FloatButton.BackTop
ref
supportnativeElement
. #45547 @li-jia-nan - 🐞 Fix Watermark that
gap
should have default value when passingundefined
in array. #45537 @MadCcc - 🐞 Fix Dropdown always closes after clicking on an item. #45513 @vyachsed
- 💄 Fix Notification style issue in windows system. #45500 @MadCcc
- 💄 Fix Notification duplicated
style
applied to wrapper. #45487 @MadCcc - TypeScript
- 💄 修复 Typography.Text 同时启用
ellipsis
和code
时丢失右边框样式的问题。#45575 - 💄 调整 TimePicker 滚动条样式。#45478 @GeorgeHcc #45586
- 🆕 FloatButton.BackTop 支持使用
ref
获取nativeElement
。#45547 @li-jia-nan - 🐞 修复 Watermark 组件
gap
在数组中含有undefined
时没有默认值的问题。#45537 @MadCcc - 🐞 修复 Dropdown 在点击子项后总是关闭的问题。#45513 @vyachsed
- 💄 修复 Notification 组件在 windows 系统下的样式问题。#45500 @MadCcc
- 💄 修复 Notification 组件
style
属性会重复添加到外层的问题。#45487 @MadCcc - TypeScript
5.10.2
- 🐞 Layout support auto
hasSider
check to avoid blink in SSR. #45361 - 🐞 Fix FloatButton.BackTop throws warning
findDOMNode is deprecated in StrictMode
. #45390 @li-jia-nan - 🐞 Fix ColorPicker does not supports
id
anddata-*
attributes. #45413 @cheng87126 - 🐞 Fix Table sorter tooltip cannot be open when
column.showSorterTooltip
is a object. #45403 - 🐞 Fix
Form
withinline
mode makes elements overlap on the small screen. #45340 @Yuiai01 - 💄 Remove duplicate disabled styles in Upload.Dragger. #45446 @vagusX
- TypeScript
- 🐞 Table
pagination.position
should accept'none'
. #45398
- 🐞 Table
- RTL
- 💄 Fix Notification's incorrect
margin
inrtl
mode. #45386
- 💄 Fix Notification's incorrect
- 🐞 Layout 支持自动检测
hasSider
以防止在 SSR 场景下的闪烁问题。#45361 - 🐞 修复 FloatButton.BackTop 组件显示
findDOMNode is deprecated in StrictMode
警告的问题。#45390 @li-jia-nan - 🐞 修复 ColorPicker 不支持
id
和data-*
属性的问题。#45413 @cheng87126 - 🐞 修复 Table 当
column.showSorterTooltip
是一个对象时排序 tooltip 不显示的问题。#45403 - 🐞 修复 Form
inline
模式在小屏幕发生元素重叠的问题。#45340 @Yuiai01 - 💄 移除 Upload.Dragger 中重复的
disabled
样式。#45446 @vagusX - TypeScript
- 🐞 修复 Table
pagination.position
TS 定义不支持'none'
的问题。#45398
- 🐞 修复 Table
- RTL
- 💄 修复 Notification 组件在
rtl
模式下边缘间距错误的问题。#45386
- 💄 修复 Notification 组件在
5.10.1
- ⚡️ Optimize CSS-in-JS Design Token cache matching. #45302
- 🆕 Checkbox.Group & Radio.Group
options
add missingid
props. #45287 - 🐞 Fix Affix that
target
not work. #45314 @mingming-ma - 🐞 MISC: Add
csp
attribute for icon style. #45334 @AlexeyTeterin - 🐞 Fix Button that does not display loading status when
loading
property is set to{ delay: 0 }
. #45282 @YDFlame13 - 🐞 Fix Segmented text jump issue in Safari. #45310
- 🐞 Fix Watermark that can be hidden via "Hide Element" feature in browser. #45290 @Yuiai01
- 🐞 Fix Input that background should not be transparent when hovered or focused. #45297 @MadCcc
- 🐞 Fix Form call
resetFields
will still keep Form.List field when itsinitialValue
is set. #45284 - 🐞 Fix Tree.DirectoryTree
selectedNodes
inonSelect
method could not get a value when configuringfieldNames
. #45036 @Zian502 - 💄 Revert outline style of Input, InputNumber, Select, Cascader, TreeSelect, DatePicker, TimePicker, ColorPicker. #45286 @MadCcc
- 💄 Fix Card style with small size Tabs. #45272 @MadCcc
- ⚡️ 优化 CSS-in-JS Design Token 缓存命中性能。#45302
- 🆕 为 Checkbox.Group 与 Radio.Group 的
options
添加id
属性支持。#45287 - 🐞 修复 Affix 组件设置
target
失效的问题。#45314 @mingming-ma - 🐞 MISC: 为图标样式设置
csp
属性。#45334 @AlexeyTeterin - 🐞 修复 Button 组件
loading
属性设置为{ delay: 0 }
时不显示加载状态。#45282 @YDFlame13 - 🐞 修复 Segmented 在 Safari 下切换时的样式跳动问题。#45310
- 🐞 修复 Watermark可以使用浏览器的
Hide Element
来隐藏水印。#45290 @Yuiai01 - 🐞 修复 Input 组件 hover 或者 focus 状态时背景色变为透明的问题。#45297 @MadCcc
- 🐞 修复 Form 在调用
resetFields
时,无法重置配置了initialValue
的 Form.List 的问题。#45284 - 🐞 修复 Tree.DirectoryTree 在配置
fieldNames
时,onSelect
方法中的selectedNodes
无法获取值。#45036 @Zian502 - 💄 回滚 Input、InputNumber、Select、Cascader、TreeSelect、DatePicker、TimePicker、ColorPicker 的描边样式。#45286 @MadCcc
- 💄 修复 Card 搭配小尺寸 Tabs 时的样式问题。#45272 @MadCcc
5.10.0
- 🔥 New component Flex, used to set flexible layout. #44362
- 🔥 Notification component supports
stack
configuration. By default, more than three notifications will be stacked. #44618 - 🔥 Update the active styles of Input, InputNumber, Select, Cascader, TreeSelect, DatePicker, and ColorPicker. #45009
- 🆕 Watermark supports setting the text alignment direction through
textAlign
. #44888 @Yuiai01 - 🆕 Slider supports any number of nodes and migrates xxxStyles to semantic
styles
andclassNames
properties. #45000 - 🆕 Cascader supports the Cascader.Panel component for inline use. #45089
- 🆕 Tooltip adds
fresh
attribute to support scenarios where content still needs to be updated when closed. #45020 - 🆕 Drawer supports customizing the
className
of built-in modules throughclassNames
. #44935 - 🆕 ConfigProvider supports the
warning
attribute to configure warning levels (e.g. filter out deprecated API warnings). #44809 - Modal
- 🐞 Fix the problem that the nested Typography of Menu.Item cannot be vertically centered when
ellipsis
is true. #41146 @Yuiai01 - 🐞 Fix Select internal input not being able to apply fontFamily. #45197 @Yuiai01
- 🐞 Fix InputNumber border issue when using
addonBefore
in Space.Compact. #45004 @Yuiai01 - 🐞 Fix the problem that Tag.CheckableTag does not support ref. #45164 @mingming-ma
- 🐞 Fixed the issue where the font in the Avatar.Group component does not support responsiveness. #34722 @laishiwen
- 🛠 Refactor Affix into a functional component. #42674
- 🛠 The Popover component deprecates the
minWidth
component token and addstitleMinWidth
as a replacement. #44750 - 🌈 Token
- 🆕 Input adds
hoverBg
activeBg
token to set the input box hover and activation background color. #44752 @Pan-yongyong - 🆕 Descriptions Added
titleColor
andcontentColor
to set the title color and content area text color. #44729 @Child-qjj - 🐞 Fixed the issue where the Input component Token
addonBg
is invalid. #45222
- 🆕 Input adds
- TypeScript
- 🤖 The ArgsProps type for exported Notification is NotificationArgsProps. #45147
- 🌐 Locales
- 🇵🇱 Added Tour locales for pl_PL. #45166 @antonisierakowski
- 🇰🇷 Optimize ko_KR locales. #45150 @owjs3901
- 🔥 新增 Flex 组件,用于设置弹性布局。#44362
- 🔥 Notification 组件支持
stack
配置,默认超过三个以上的提示会堆叠起来。#44618 - 🔥 更新 Input、InputNumber、Select、Cascader、TreeSelect、DatePicker、ColorPicker 的激活态样式。#45009
- 🆕 Watermark 支持通过
textAlign
设置文本对齐方向。#44888 @Yuiai01 - 🆕 Slider 支持任意节点数并且将 xxxStyle 迁移至语义化
styles
和classNames
属性中。#45000 - 🆕 Cascader 支持 Cascader.Panel 组件供内联使用。#45089
- 🆕 Tooltip 添加
fresh
属性以支持在关闭时仍然需要更新内容的场景。#45020 - 🆕 Drawer 支持通过
classNames
自定义内置模块的className
。#44935 - 🆕 ConfigProvider 支持
warning
属性以配置警告等级(如过滤掉废弃 API 警告)。#44809 - Modal
- 🐞 修复 Menu.Item 嵌套的 Typography 其
ellipsis
为 true 时无法垂直居中的问题。#41146 @Yuiai01 - 🐞 修复 Select 内部 input 无法应用 fontFamily 的问题。#45197 @Yuiai01
- 🐞 修复 InputNumber 在 Space.Compact 中使用
addonBefore
时的边框问题。#45004 @Yuiai01 - 🐞 修复 Tag.CheckableTag 不支持 ref 的问题。#45164 @mingming-ma
- 🐞 修复 Avatar.Group 组件内的字体不支持响应式的问题。#34722 @laishiwen
- 🛠 重构 Affix 为函数组件。#42674
- 🛠 Popover 组件废弃
minWidth
组件 token,并添加titleMinWidth
作为替代。#44750 - 🌈 Token
- 🆕 Input 新增
hoverBg
activeBg
token 用以设置输入框 hover 和 激活时背景颜色。#44752 @Pan-yongyong - 🆕 Descriptions 新增
titleColor
contentColor
用以设置标题颜色和内容区域文字颜色。#44729 @Child-qjj - 🐞 修复 Input 组件 Token
addonBg
失效的问题。#45222
- 🆕 Input 新增
- TypeScript
- 🤖 导出 Notification 的 ArgsProps 类型为 NotificationArgsProps。#45147
- 🌐 国际化
- 🇵🇱 为 pl_PL 补充 Tour 国际化。#45166 @antonisierakowski
- 🇰🇷 优化 ko_KR 国际化。#45150 @owjs3901
5.9.4
5.9.3
- 🐞 Fix Popover that should shift automaticly when overflowed. #45015 @MadCcc
- Tooltip
- 🛠 ComponentToken remove
radiusBase
must less than16
limitation. #44980 - 🐞 Fix Dropdown can not give
ref
for the root children rendered bydropdownRender
. #44971 - 🐞 Fix Table
cellPaddingBlock
not working. #45040 - 🐞 Fix Input wrong height with small
controlHeight
. #45048 - TypeScript
- 🤖 MISC: Fix
@types/react@18.2.22
React.Key type errors. #44938
- 🤖 MISC: Fix
- 🐞 修复 Popover 超出屏幕时不会自动调整偏移的问题。#45015 @MadCcc
- Tooltip
- 🛠 ComponentToken 移除
radiusBase
必须小于16
的限制。#44980 - 🐞 修复 Dropdown 通过
dropdownRender
渲染的子节点配置ref
不生效的问题。#44971 - 🐞 修复 Table
cellPaddingBlock
不生效的问题。#45040 - 🐞 修复 Input 组件在小尺寸
controlHeight
下高度不正确的问题。#45048 - TypeScript
- 🤖 MISC: 修复
@types/react@18.2.22
React.Key 定义更新引发的问题。#44938
- 🤖 MISC: 修复
5.9.2
- 🐞 Fix Table selection column not align in center when
size
issmall
. #44922 - 🐞 Fix Select style problem when
label
containsdiv
element. #44927 - 🐞 Fix Modal broken style of buttons when custom
footer
. #44929 @Wxh16144 - 🐞 Fix notification wrong pop-up animation when
placement
isbottom
. #44918 @linxianxi - 🐞 Fix missing inherited feedbackIcon in Form.Item with
noStyle
. #44937
5.9.1
- 🐞 Fix Select that
controlHeightSM
not work in small size. #44859 @MadCcc - 🐞 Fix Rate that star transaform not at center. #44855 @MadCcc
- 🐞 Fix DatePicker that in
dateTime
mode switching input didn't triggeronCalendarChange
. #44845 @Yuiai01 - 🐞 Fix Table
virtual
selection checkbox or radio not align in center. #44786 - 🐞 Fix Select carbin align top bug when enable
maxTagCount
. #44757 - 🐞 Fix Select alignment issue when label is Typography. #44756
- 💄 Fix Table with
virtual
display issue about columns less than table size and some border & hover style missing. #44818 - 💄 Fix wrong style of Select in Input
addon
. #44825 @MadCcc - 💄 Fix Tree that Checkbox should be aligned with first line. #44827 @MadCcc
- 💄 Fix Card that Card.Grid has wrong style with left bottom corner. #44801 @Jason-huang66
- 💄 Fix Select/Cascader/TreeSelect style issue when customize their height. #44753
- TypeScript
- 🤖 Optimize
ref
type of Radio.Button. #44747 @LexiosAlex - 🤖 Optimize
ref
type of Checkbox. #44746 @LexiosAlex
- 🤖 Optimize
- 🐞 修复小尺寸 Select 组件
controlHeightSM
token 配置无效的问题。#44859 @MadCcc - 🐞 修复 Rate 组件星星变换中心不在正中心的问题。#44855 @MadCcc
- 🐞 修复 DatePicker 组件
dateTime
模式切换输入框不会触发onCalendarChange
的问题。#44845 @Yuiai01 - 🐞 修复 Table
virtual
配置下,选择框没有居中对齐的问题。#44786 - 🐞 修复 Select 开启
maxTagCount
时搜索光标偏上的问题。#44757 - 🐞 修复 Select 的 label 为 Typography 组件时的选中文本对齐问题。#44756
- 💄 修复 Table
virtual
开启虚拟滚动时,当columns
小于表格宽度会显示异常的问题以及部分边框、悬浮样式丢失的问题。#44818 - 💄 修复 Select 组件在 Input
addon
中使用时的样式错误。#44825 @MadCcc - 💄 修复 Tree 组件样式,使 Checkbox 与文字第一行对齐。#44827 @MadCcc
- 💄 修复 Card 组件 Card.Grid 边缘样式问题。#44801 @Jason-huang66
- 💄 修复 Select/Cascader/TreeSelect 自定义高度时的样式问题。#44753
- TypeScript
- 🤖 优化 Radio.Button 的
ref
类型。#44747 @LexiosAlex - 🤖 优化 Checkbox 的
ref
类型。#44746 @LexiosAlex
- 🤖 优化 Radio.Button 的