Releases: ant-design/ant-design
Releases · ant-design/ant-design
5.23.3
Last version of the Dragon Year, Happy Chinese New Year! 🐲
- ⌨️ MISC: Add accessibility tests for all component demos to ensure compliance with accessibility standards. Optimize accessibility support for some components, improving compatibility with screen readers and keyboard operations. #51372 @aojunhao123
- 🐞 MISC: Fix importing
antd/dist/reset.css
file issue. #52559 @CaptainVolcom - 🐞 Fix Button throwing error when
loading
isnull
. #52508 @li-jia-nan - 🐞 Fix Table last row border color transition issue. #52549 @DDDDD12138
- 💄 Fix Cascader checkbox cursor style in disabled state. #52539 @aojunhao123
- 💄 Fix ConfigProvider not correctly modifying icon style priority when StyleProvider configures
layer
. #52533 @zombieJ - 🐞 Fix Layout sidebar toggle button style missing in non-cssVar mode. #52537 @afc163
- 🐞 Fix Tree checkbox cursor style in disabled state. #52525 @aojunhao123
- notification
- RTL
- 🐞 Fix Splitter abnormal collapse behavior in RTL mode. #52501 @aojunhao123
- 💄 Fix Spin style issue in RTL mode. #52538 @afc163
龙年最后一版,祝各位新春愉快!🐲
- ⌨️ MISC: 为所有组件的示例添加了可访问性测试,确保符合无障碍标准。并优化了部分组件的可访问性支持,改进了对屏幕阅读器和键盘操作的兼容性。#51372 @aojunhao123
- 🐞 MISC: 修复导入
antd/dist/reset.css
文件的问题。#52559 @CaptainVolcom - 🐞 修复 Button
loading
为null
时抛错的问题。#52508 @li-jia-nan - 🐞 修复 Table 最后一行边框颜色过渡问题。#52549 @DDDDD12138
- 💄 修复 Cascader 组件禁用状态下复选框的鼠标指针样式问题。#52539 @aojunhao123
- 💄 修复 ConfigProvider 在 StyleProvider 配置
layer
时不会正确修改图标对应样式优先级的问题。#52533 @zombieJ - 🐞 修复 Layout 切换侧边栏按钮在非 cssVar 模式下样式丢失的问题。. #52537 @afc163
- 🐞 修复 Tree 组件禁用状态下复选框的鼠标指针样式问题。#52525 @aojunhao123
- notification
- RTL
- 🐞 修复 Splitter 在 rtl 模式下折叠行为异常的问题。#52501 @aojunhao123
- 💄 修复 Spin 在 rtl 模式下的样式问题。#52538 @afc163
5.23.2
- 🐞 Fix Space.Compact throwing
Should not use more than one & in a selector
warning. #52489 - 💄 Fix the Layout switching sidebar button style was lost. #52477
- 💄 Fix the scroll bar height is not 0 when the first row of the virtual scroll Table is collapsed. #52447 @LeeSSHH
- 💄 Fix the last item in Descriptions did not correctly fill the remaining space. #52410 @anyuxuan
- 💄 Fix extra margin for the last item in Radio. #52433
- 💄 Fix the Input/Mentions clear button padding was incorrect. #52407 @ustcfury
- 💄 Fix rounded corners of
addonAfter
in Input compact mode. #52490 @DDDDD12138 - 💄 Fix Menu.Item links were still clickable and lacked disabled styles when in disabled state. #52402 @aojunhao123
- TypeScript
- 🤖 MISC: Optimize PurePanel to use React.ComponentType type. #52480
- 🤖 Fix missing token type for Skeleton and Rate. #52406 @coding-ice
- 🐞 修复 Space.Compact 抛出
Should not use more than one & in a selector
警告信息的问题。#52489 - 💄 修复 Layout 切换侧边栏按钮样式丢失的问题。#52477
- 💄 修复 Table 收起虚拟滚动表格第一行时滚动条高度不为 0 的问题。#52447 @LeeSSHH
- 💄 修复 Descriptions 最后一项未正确填充满剩余空间的问题。#52410 @anyuxuan
- 💄 修复 Radio.Group 最后一项多余 margin 的问题。#52433
- 💄 修复 Input/Mentions 清除按钮 padding 不正确的问题。#52407 @ustcfury
- 💄 修复 Input 紧凑模式中
addonAfter
的圆角问题。#52490 @DDDDD12138 - 💄 修复 Menu.Item 在禁用状态下链接仍可点击且缺少禁用样式的问题。#52402 @aojunhao123
- TypeScript
- 🤖 MISC: 优化 PurePanel 使用 React.ComponentType 类型。#52480
- 🤖 修复 Skeleton 和 Rate 缺失的 token 类型。#52406 @coding-ice
5.23.1
- 🆕 Add Tree leaf node className for differentiate node type. #52274 @EmilyyyLiu
- 🐞 Fix DatePicker switch buttons is not hidden when
superPrevIcon/superNextIcon/prevIcon/nextIcon
is null. #52327 @afc163 - 🐞 Fix Select throws
error not a valid selector
in Jest tests. #51844 @renovate - 🐞 Fix Layout.Sider under ConfigProvider directly, the
theme
not working. #52302 @zombieJ - 🐞 Fix Splitter lost previous state when re-expanding. #52222 @jjlstruggle
- 🐞 Fix Table unexpected row selections when set
checkStrictly
to false in tree mode. #52338 @LeeSSHH - Button
- RTL
- 💄 Fix Collapse arrow direction in RTL mode. #52374 @aojunhao123
- 💄 Fix Layout.Sider arrow direction in RTL mode. #52374 @aojunhao123
- 🆕 新增 Tree 组件叶子节点的 className 用于区分节点类型。#52274 @EmilyyyLiu
- 🐞 修复 DatePicker
superPrevIcon/superNextIcon/prevIcon/nextIcon
设置为 null 时切换按钮依旧存在的问题。#52327 @afc163 - 🐞 修复 Select 组件在 jest 测试中报错
not a valid selector
的问题。#51844 @renovate - 🐞 修复 Layout.Sider 直接嵌套在 ConfigProvider 下时,
theme
配置无效的问题。#52302 @zombieJ - 🐞 修复 Splitter 二次展开时丢失上一次状态的问题。#52222 @jjlstruggle
- 🐞 修复 Table 树形展示且设置
checkStrictly
为 false 时,某些行被错误选中的问题。#52338 @LeeSSHH - Button
- RTL
- 💄 修复 Collapse 在 RTL 模式下的箭头方向。#52374 @aojunhao123
- 💄 修复 Layout.Sider 在 RTL 模式下的箭头方向。#52374 @aojunhao123
5.23.0
- 🔥 TreeSelect support
maxCount
to limit the maximum number of selections. #51759 @aojunhao123 - 🔥 Modal
width
support responsive size. #51653 @zombieJ - 🔥 Splitter support
lazy
mode. #51557 @OysterD3 - 🔥 Button
color
support full color palette. #51550 @OysterD3 - 🆕 Button support
loadingIcon
to customize loading icon. #51758 @zhangchao-wooc - Menu
- 🆕 Semantic Props
- 🆕 ConfigProvider support Empty semantic props
classNames
andstyles
. #52208 @thinkasany - 🆕 ConfigProvider support Popconfirm semantic props
classNames
andstyles
. #52126 @thinkasany - 🆕 ConfigProvider support Popover semantic props
classNames
andstyles
. #52110 @thinkasany - 🆕 ConfigProvider support Tooltip semantic props
classNames
andstyles
. #51872 @thinkasany - 🆕 ConfigProvider support Descriptions semantic props
classNames
andstyles
. #52120 @thinkasany - 🆕 ConfigProvider support Slider semantic props
classNames
andstyles
. #52185 @thinkasany
- 🆕 ConfigProvider support Empty semantic props
- 🆕 Transfer support
showSearch
configdefaultValue
&placeholder
. #52125 @EmilyyyLiu - 🆕 Calendar now supports
showWeek
prop. #52072 @afc163 - 🆕 Mentions support
onPopupScroll
props. #51858 @OysterD3 - 🆕 Card support
bodyPaddingSM
,headerPaddingSM
,bodyPadding
,headerPadding
component token. #51762 @thinkasany - 🆕 ColorPicker
presets
supportkey
prop. #51794 @li-jia-nan - 🆕 Cascader support
optionSelectedColor
token. #51769 @thinkasany - Tree
- 🛠 Refactor Tree part code to Function Component for React 19 perf preparing. #52209 @li-jia-nan
- 💄 Optimize Tree
disabled
&selected
node display style. #52173 @EmilyyyLiu
- 🐞 Fix Slider crash when
tipFormatter
is undefined. #52184 @thinkasany - 🐞 Fix Layout.Sider
trigger
style not correct. 46a8eff @Wxh16144 - Table
- 💄 Optimize Flex to always reset
margin
&padding
for customize component. #52170 @li-jia-nan - 🐞 Fix DatePicker.RangePicker
needConfirm
sometime can switch panel without confirm. #52102 @Zyf665 - 💄 Optimize Collapse focus styles and items border radius. #52086 @aojunhao123
- ⌨️ Add Radio.Group default
name
prop to improve a11y. #52076 @aojunhao123 - ⌨️ Input.Search add
type=search
by default. #52083 @Kaikiat1126 - ⌨️ Improve Tabs focus style for keyboard operation. #52002 @aojunhao123
- Segmented
- ⌨️ Optimize Segmented focus style to improve a11y. #51934 @aojunhao123
- ⌨️ Segmented support
name
prop to improve a11y. #51725 @thinkasany
- 📦 MISC: Reduce bundle size by replacing
@ctrl/tinycolor
with@ant-design/fast-color
. #52190 #52157 @aojunhao123 - ⌨️ Adjust Input, InputNumber, Mentions, Textarea clear icon from
span
tobutton
to improve a11y. #52180 @li-jia-nan - 🐞 MISC: Fix build error when using React 19. #52168 @zombieJ
- TypeScript
- 🤖 Adjust Table
ref
type to React.Ref. #52205 @li-jia-nan - 🤖 Calendar export CalendarMode type. #52160 @Kaikiat1126
- 🤖 Adjust Table
- 🔥 TreeSelect 新增
maxCount
属性以限制最大选择数量。#51759 @aojunhao123 - 🔥 Modal
width
支持响应式尺寸。#51653 @zombieJ - 🔥 Splitter 增加
lazy
模式。#51557 @OysterD3 - 🔥 Button
color
属性支持完整色板。#51550 @OysterD3 - 🆕 Button 组件新增
loadingIcon
以自定义加载图标。#51758 @zhangchao-wooc - Menu
- 🆕 语义化
- 🆕 ConfigProvider 支持 Empty 组件语义化
classNames
和styles
。#52208 @thinkasany - 🆕 ConfigProvider 支持 Slider 组件语义化
classNames
和styles
。#52185 @thinkasany - 🆕 ConfigProvider 支持 Popconfirm 组件语义化
classNames
和styles
。#52126 @thinkasany - 🆕 ConfigProvider 支持 Popover 组件语义化
classNames
和styles
。#52110 @thinkasany - 🆕 ConfigProvider 支持 Tooltip 组件语义化
classNames
和styles
。#51872 @thinkasany - 🆕 ConfigProvider 支持 Descriptions 组件语义化
classNames
和styles
。#52120 @thinkasany
- 🆕 ConfigProvider 支持 Empty 组件语义化
- Tree
- 🛠 重构 Tree 部分代码为 Function Component 以为 React 19 做更好性能准备。#52209 @li-jia-nan
- 💄 优化 Tree
disabled
与selected
节点状态下的颜色展示。#52173 @EmilyyyLiu
- 🆕 Transfer 支持
showSearch
配置defaultValue
和placeholder
。#52125 @EmilyyyLiu - 🆕 Calendar 支持
showWeek
属性用于显示周数列。#52072 @afc163 - 🆕 Mentions 新增
onPopupScroll
属性。#51858 @OysterD3 - 🆕 Card 增加
bodyPaddingSM
、headerPaddingSM
、bodyPadding
、headerPadding
组件 token。#51762 @thinkasany - 🆕 ColorP...
5.22.7
5.22.6
5.22.5
- 🛠 Refactor Wave/Menu/Form
ref
check logic to resolve React 19ref
conflict (Note, this is not finally support React 19 but we will resolve step by step in future version). #51952 @zombieJ - 🐞 Fix Dropdown cannot accept ReactNode as
children
. #50174 @coding-ice - 🐞 Fix Carousel cannot display correctly in Modal without icon. #51988 @quan060798
- 🐞 Fix Select label overflow issue. #52011 @OysterD3
- 🐞 Fix Form
setFieldValue
not reset field validation. #51993 @zombieJ - 🐞 Fix Pagination with setting
showSizeChanger.showSearch
not working. #51962 @zombieJ - 🇰🇷 Improve Korean locales for DatePicker. #51983 @DevLeti
- 🤖 Export
CheckboxChangeEvent
from antd. #52008 @SpecLad
- 🛠 重构 Wave/Menu/Form
ref
检查逻辑以解决 React 19ref
部分冲突(注:该更新不会完全解决 React 19 兼容问题,后续将会持续更新)。#51952 @zombieJ - 🐞 修复 Dropdown
children
不支持传入 ReactNode 的问题。#50174 @coding-ice - 🐞 修复 Carousel 某些情况下在 Modal 中无法正确展示的问题。#51988 @quan060798
- 🐞 修复 Select 选中文本溢出的问题 。#52011 @OysterD3
- 🐞 修复 Form
setFieldValue
没有重置字段校验信息的问题。#51993 @zombieJ - 🐞 修复 Pagination 配置
showSizeChanger.showSearch
无效的问题。#51962 @zombieJ - 🇰🇷 优化 DatePicker 韩语本地化文案。#51983 @DevLeti
- 🤖 从 antd 里导出
CheckboxChangeEvent
类型。#52008 @SpecLad
5.22.4
- Transfer
- 🐞 Fix the background overflow when Transfer selects the last item on the current page. #51884 @ayangweb
- 🐞 Fix Transfer toggle button being enabled when all items are disabled. #51784 @WwwHhhYran
- 🐞 Fix the arrow would be outside the container when the Tooltip content was too small. #51904
- 🐞 Fix where clicking the Radio or Checkbox under Upload would trigger the popup window twice. #51874
- 💄 Fix Menu icon alignment when using
collapsedIconSize
. #51863 @Gnomeek - 💄 Fix incorrect styling of Tabs component when
type="editable-card"
. #51935 @aojunhao123 - 💄 Fix insufficient trigger style priority in Layout.Sider component in
zero-width
mode. #51936 @aojunhao123 - 💄 MISC: Fix the icon styles were created repeatedly. #51897 @YumoImer
- 💄 MISC: Inline styles refactored to cssinjs. #51843
- Transfer
- 🐞 修复 Transfer 选中当前页最后一项时背景溢出的问题。#51884 @ayangweb
- 🐞 修正 Transfer 切换按钮当所有 item 禁用时依然可用的问题。#51784 @WwwHhhYran
- 🐞 修复 Tooltip 内容过少时,箭头会在容器外的问题。#51904
- 🐞 修复点击 Upload 下的 Radio 或 Checkbox 会触发两次弹窗的问题。#51874
- 💄 修复 Menu 在使用
collapsedIconSize
时图标对齐的问题。#51863 @Gnomeek - 💄 修复 Tabs 组件在
type="editable-card"
时样式不正确的问题。#51935 @aojunhao123 - 💄 修复 Layout.Sider 组件在
zero-width
模式下触发器样式优先级不足的问题。#51936 @aojunhao123 - 💄 MISC: 修复 icon 样式被重复创建的问题。#51897 @YumoImer
- 💄 MISC: 行内样式重构为 cssinjs。#51843
5.22.3
- 🐞 Fix Select clear button may has incorrect position within Form.item. #51649 @dislido
- 🐞 Fix InputNumber
handleVisible
token not work as expected. #51728 @dengfuping - 🐞 Fix ColorPicker error when pass
ReactNode
tolabel
field ofpresets
property. #51808 @li-jia-nan - 🐞 Fix Menu
inlineCollapsed
property not works bug within Layout. #51775 @coderz-w - 🐞 Fix Table
onHeaderCell
provided partstyle
can not override. #51793 @Wxh16144 - ⌨️ Improve Collapse accessibility. #51836 @aojunhao123
- TypeScript
- 🐞 修复 Select 清除按钮在 Form.Item 中位置可能错误的问题。#51649 @dislido
- 🐞 修复 InputNumber
handleVisible
token 不生效的问题。#51728 @dengfuping - 🐞 修复 ColorPicker 的
presets
属性中的label
字段传入ReactNode
会报错的问题。#51808 @li-jia-nan - 🐞 修复 Menu 的
inlineCollapsed
属性在 Layout 中不生效的问题。#51775 @coderz-w - 🐞 修复 Table
onHeaderCell
提供的style
无法被覆盖的问题。#51793 @Wxh16144 - ⌨️ 优化 Collapse 组件的可访问性。#51836 @aojunhao123
- TypeScript
5.22.2
- 🐞 Fix Input.OTP focus from advancing when previous input is empty. #51664 @thecodesalim
- 🐞 Adjust Modal function call not to scroll the confirm button when it get auto focused. #51647 @zombieJ
- 🐞 Fix Form
rules
with same error content will cause React render warning. #51636 @zombieJ - 🐞 Refactor Button
focus
logic trigger withuseEffect
to resolve some async load case not getautoFocus
. #51624 @zombieJ - 🐞 Fix Button custom icon not center-aligned. #51652 @afc163
- 🐞 Fix Table
getCheckboxProps
event handlers being overridden by internal selection logic. #51661 @Zyf665 - 🐞 Fix Tree that
onCheck
andonSelect
were not properly triggered. #51448 @Wxh16144 - 🌐 Localization
- 🇷🇺 Add support for Russian translation. #51619 @avvakumovid
- 🇮🇹 Add support for Italian translation in TimePicker. #51685 @LorenzoCardinali
- 🐞 修复 Input.OTP 组件在有非法输入时仍会切换到下一个输入框的问题。#51664 @thecodesalim
- 🐞 调整 Modal 确认函数,使其在弹出后聚焦确认按钮时不要滚动窗体。#51647 @zombieJ
- 🐞 修复 Form
rules
生成多条相同错误时会报 React 渲染错误的问题。#51636 @zombieJ - 🐞 调整 Button 使用
useEffect
来触发autoFocus
逻辑,以解决一些异步渲染场景下 Button 无法自动聚焦的问题。#51624 @zombieJ - 🐞 修复 Button 中使用自定义三方图标库时图标未居中的问题。#51652 @afc163
- 🐞 修复 Table 组件
getCheckboxProps
中的事件处理器被内部选择逻辑覆盖的问题。#51661 @Zyf665 - 🐞 修复 Tree 组件的
onCheck
和onSelect
事件没有被正确触发的问题。#51448 @Wxh16144 - 🌐 本地化
- 🇷🇺 添加了俄语翻译支持。#51619 @avvakumovid
- 🇮🇹 为 TimePicker 添加了意大利语翻译。#51685 @LorenzoCardinali