Releases: ant-design/ant-design
Releases · ant-design/ant-design
5.24.1
- 🐞 Fix Button with
color
to beprimary
andvariant
to betext
orlink
will not use correct color. #52812 @zombieJ - 💄 Fix Input.Group & Input.OTP style issues caused by undefined CSS variables. #52799 @afc163
- 🐞 Fix DatePicker with long content
prefix
breaks the layout. #52776 @guoyunhe - 🐞 Fix Table title missing
aria-label
when sorting. #52772 @mellis481 - 🐞 Fix Alert.ErrorBoundary type error when used as a JSX component with
@types/react@18.x
. #52766 @afc163 - 💄 Fix Segmented
shape
not working withsize
. #52757 @yellowryan
- 🐞 修复 Button 配置
color
为primary
并且variant
为text
或link
时,没有取用正确的色板的问题。#52812 @zombieJ - 💄 修复 Input.Group 与 Input.OTP 由于 css 变量未定义导致样式异常的问题。#52799 @afc163
- 🐞 修复 DatePicker 的
prefix
内容多时会换行的问题。#52776 @guoyunhe - 🐞 修复 Table 列标题在排序时丢失
aria-label
的问题。#52772 @mellis481 - 🐞 修复 Alert.ErrorBoundary 在
@types/react@18.x
中无法作为 JSX 组件使用的类型错误问题。#52766 @afc163 - 💄 修复 Segmented 设置
size
时,shape
不生效的问题。#52757 @yellowryan
5.24.0
- 🆕 Notification support
actions
prop and deprecatedbtn
prop. #52703 @thinkasany - 🆕 Carousel support show dot duration. #52672 @yellowryan
- 🆕 Input.OTP support
separator
prop. #52668 @HaceraI - 🆕 Descriptions add
labelColor
component token. #52700 @guoyunhe - 🆕 Segmented supports
shape="round"
. #52685 @afc163 - 🆕 ConfigProvider support
variant
for Card. #52552 @thinkasany - 🆕 Progress/Step supports custom rounding with
rounding
prop. #52017 @yanghoxom - 🆕 Divider
orientation
supportstart
andend
. #52567 @li-jia-nan - 🆕 Add
underlined
tovariant
of Input, InputNumber, Mentions, Form, Select, Cascader, TreeSelect, DatePicker and TimePicker. #52546 @ustcfury - 🆕 ConfigProvider support global config of Modal
centered
. #52343 @guoyunhe - 🆕 Add
label
class name for Checkbox and Radio. #52322 @guoyunhe - 🐞 Fix Tooltip/Popover/Popconfirm/Dropdown misaligned popup positions with custom children in React 19. react-component/util#623 @zombieJ
- 🐞 Fix DatePicker.RangePicker arrow position when popup auto adjust position. #52719 @zombieJ
- 🐞 Update locale
filterCheckall
tofilterCheckAll
. #52517 @thinkasany - 🐞 Fix Form that
scrollToField
andscrollToFirstError
cannot focus components of antd. #52726 @Wxh16144 - 💄 Fix Button shadow color appearing awkward on dark backgrounds. #52701 @afc163
- 💄 Fixed the unnatural animation transition effect of Segmented component in dark mode. #52708 @yellowryan
- 💄 Separate style of Input and TextArea. #52570 @guoyunhe
- 💄 Fix Input and Select style issue under css var mode. #52554 @li-jia-nan
- ⌨️ Remove role="alert" from Form field error to improve screen reader experience. #52661 @mellis481
- ⌨️ Improve accessibility by adding localized labels for empty table header and panel buttons. #52689 @aojunhao123
- ⌨️ Improve Tabs accessibility by fixing error
Certain ARIA roles must contain particular children
. #52677 @afc163 - ⌨️ Add screen reader support for Tooltip. #52293 @aojunhao123
- TypeScript
- 🆕 Notification 支持
actions
属性并废弃btn
属性。#52703 @thinkasany - 🆕 Carousel 支持展示指示点进度。#52672 @yellowryan
- 🆕 Input.OTP 支持
separator
属性。#52668 @HaceraI - 🆕 Descriptions 增加
labelColor
组件 token。#52700 @guoyunhe - 🆕 Segmented 支持
shape="round"
的胶囊形状的样式。#52685 @afc163 - 🆕 ConfigProvider 支持 Card 组件的
variant
配置。#52552 @thinkasany - 🆕 Progress/Step 支持使用
rounding
属性自定义取整方法。#52017 @yanghoxom - 🆕 Divider 的
orientation
属性支持start
和end
.#52567 @li-jia-nan - 🆕 为 Input、InputNumber、Mentions、Form、Select、Cascader、TreeSelect、DatePicker、TimePicker 组件的
variant
添加underlined
属性。#52546 @ustcfury - 🆕 ConfigProvider 支持 Modal
centered
全局配置。#52343 @guoyunhe - 🆕 为 Checkbox 和 Radio 增加
label
类名。#52322 @guoyunhe - 🐞 修复 Tooltip/Popover/Popconfirm/Dropdown 在 React 19 下 children 为自定义组件时弹层位置错乱的问题。react-component/util#623 @zombieJ
- 🐞 修复 DatePicker.RangePicker 弹出窗体自动调整位置时,面板的箭头位置不正确的问题。#52719 @zombieJ
- 🐞 修正 locale 中
filterCheckall
为filterCheckAll
。#52517 @thinkasany - 🐞 修复 Form
scrollToField
和scrollToFirstError
无法聚焦 antd 组件的问题。#52726 @Wxh16144 - 💄 修复 Button 预设值按钮的阴影色在暗色背景下显示突兀的问题。#52701 @afc163
- 💄 修复 Segmented 组件在暗黑模式下的动画过渡效果不自然的问题。#52708 @yellowryan
- 💄 拆分 Input 和 TextArea 样式。#52570 @guoyunhe
- 💄 修复 Input 和 Select 在 css var 模式下的样式问题。#52554 @li-jia-nan
- ⌨️ Form field error 移除 role="alert" 以提升可访问性。#52661 @mellis481
- ⌨️ 优化无障碍体验,为空表头和面板按钮添加本地化标签。#52689 @aojunhao123
- ⌨️ 优化 Tabs 组件的可访问性,修复
Certain ARIA roles must contain particular children
的报错。#52677 @afc163 - ⌨️ 为 Tooltip 添加读屏器支持。#52293 @aojunhao123
- TypeScript
5.23.4
First release in the Year of the Snake, wishing you a prosperous start! 🐍
- 🐞 Fixed Pagination accessibility issue by supplementing missing ARIA attributes support. #52616 @aojunhao123
- 🐞 Added Input.TextArea component support in Space.Compact. #52639 @Can-Chen
- 🐞 Fixed Menu with
theme="dark"
andmode="horizontal"
identical text/background color issue. #52617 @afc163 - 🇦🇪 Add Tour Arabic translation. #52642 @Sagie501
- 🇮🇱 Add Tour Hebrew translation. #52641 @Sagie501
蛇年第一个版本,开工大吉!🐍
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