Skip to content

Releases: ant-design/ant-design

5.23.3

28 Jan 06:33
2de4cb2
Compare
Choose a tag to compare

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 is null. #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
    • 🐞 Fix notification useNotification closeIcon configuration not working. #52516 @typenoob
    • 🐞 Fix notification component display flicker issue under App component. #52499 @afc163
  • RTL

龙年最后一版,祝各位新春愉快!🐲

  • ⌨️ MISC: 为所有组件的示例添加了可访问性测试,确保符合无障碍标准。并优化了部分组件的可访问性支持,改进了对屏幕阅读器和键盘操作的兼容性。#51372 @aojunhao123
  • 🐞 MISC: 修复导入 antd/dist/reset.css 文件的问题。#52559 @CaptainVolcom
  • 🐞 修复 Button loadingnull 时抛错的问题。#52508 @li-jia-nan
  • 🐞 修复 Table 最后一行边框颜色过渡问题。#52549 @DDDDD12138
  • 💄 修复 Cascader 组件禁用状态下复选框的鼠标指针样式问题。#52539 @aojunhao123
  • 💄 修复 ConfigProvider 在 StyleProvider 配置 layer 时不会正确修改图标对应样式优先级的问题。#52533 @zombieJ
  • 🐞 修复 Layout 切换侧边栏按钮在非 cssVar 模式下样式丢失的问题。. #52537 @afc163
  • 🐞 修复 Tree 组件禁用状态下复选框的鼠标指针样式问题。#52525 @aojunhao123
  • notification
    • 🐞 修复 notification useNotificationcloseIcon 配置无效的问题。#52516 @typenoob
    • 🐞 修复 notification 组件在 App 组件下的显示闪烁问题。#52499 @afc163
  • RTL
    • 🐞 修复 Splitter 在 rtl 模式下折叠行为异常的问题。#52501 @aojunhao123
    • 💄 修复 Spin 在 rtl 模式下的样式问题。#52538 @afc163

5.23.2

20 Jan 09:44
89bac66
Compare
Choose a tag to compare
  • 🐞 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

13 Jan 09:50
50254b1
Compare
Choose a tag to compare
  • 🆕 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
    • 🐞 Fix Button alignment and icon centering by adjusting the icon size for icon-only Buttons. #52353 @afc163
    • 💄 Fix Button missing box-shadow style. #52304 @zombieJ
  • RTL

  • 🆕 新增 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
    • 🐞 调整 Button 纯图标的大小从而修复按钮对齐和图标居中问题。#52353 @afc163
    • 💄 修复 Button 丢失阴影样式的问题。#52304 @zombieJ
  • RTL

5.23.0

06 Jan 08:55
Compare
Choose a tag to compare
  • 🔥 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 Colors
  • 🆕 Button support loadingIcon to customize loading icon. #51758 @zhangchao-wooc
  • Menu
    • 🐞 Fix Menu extra font size and vertical align issue. #52217 @guoyunhe
    • 🆕 Menu add token subMenuItemSelectedColor to resolve submenu title color being overrided by itemSelectedColor. #52182 @afc163
  • 🆕 Semantic Props
    • 🆕 ConfigProvider support Empty semantic props classNames and styles. #52208 @thinkasany
    • 🆕 ConfigProvider support Popconfirm semantic props classNames and styles. #52126 @thinkasany
    • 🆕 ConfigProvider support Popover semantic props classNames and styles. #52110 @thinkasany
    • 🆕 ConfigProvider support Tooltip semantic props classNames and styles. #51872 @thinkasany
    • 🆕 ConfigProvider support Descriptions semantic props classNames and styles. #52120 @thinkasany
    • 🆕 ConfigProvider support Slider semantic props classNames and styles. #52185 @thinkasany
  • 🆕 Transfer support showSearch config defaultValue & 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 support key 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
    • 🐞 Fix Table fixed:right is not working in expandable. #52176 @afc163
    • 🐞 Fix Table sticky scrollbar not working in rtl direction. #52176 @afc163
  • 💄 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
  • 📦 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 to button to improve a11y. #52180 @li-jia-nan
  • 🐞 MISC: Fix build error when using React 19. #52168 @zombieJ
  • TypeScript

  • 🔥 TreeSelect 新增 maxCount 属性以限制最大选择数量。#51759 @aojunhao123
  • 🔥 Modal width 支持响应式尺寸。#51653 @zombieJ
  • 🔥 Splitter 增加 lazy 模式。#51557 @OysterD3
  • 🔥 Button color 属性支持完整色板。#51550 @OysterD3
  • Button Colors
  • 🆕 Button 组件新增 loadingIcon 以自定义加载图标。#51758 @zhangchao-wooc
  • Menu
    • 🆕 Menu 新增 token subMenuItemSelectedColor,避免 itemSelectedColor 覆盖子菜单标题样式。#52182 @afc163
    • 🐞 修复 Menu extra 字体大小和垂直居中对齐问题。#52217 @guoyunhe
  • 🆕 语义化
    • 🆕 ConfigProvider 支持 Empty 组件语义化 classNamesstyles#52208 @thinkasany
    • 🆕 ConfigProvider 支持 Slider 组件语义化 classNamesstyles#52185 @thinkasany
    • 🆕 ConfigProvider 支持 Popconfirm 组件语义化 classNamesstyles#52126 @thinkasany
    • 🆕 ConfigProvider 支持 Popover 组件语义化 classNamesstyles#52110 @thinkasany
    • 🆕 ConfigProvider 支持 Tooltip 组件语义化 classNamesstyles#51872 @thinkasany
    • 🆕 ConfigProvider 支持 Descriptions 组件语义化 classNamesstyles#52120 @thinkasany
  • Tree
    • 🛠 重构 Tree 部分代码为 Function Component 以为 React 19 做更好性能准备。#52209 @li-jia-nan
    • 💄 优化 Tree disabledselected 节点状态下的颜色展示。#52173 @EmilyyyLiu
  • 🆕 Transfer 支持 showSearch 配置 defaultValueplaceholder#52125 @EmilyyyLiu
  • 🆕 Calendar 支持 showWeek 属性用于显示周数列。#52072 @afc163
  • 🆕 Mentions 新增 onPopupScroll 属性。#51858 @OysterD3
  • 🆕 Card 增加 bodyPaddingSMheaderPaddingSMbodyPaddingheaderPadding 组件 token。#51762 @thinkasany
  • 🆕 ColorP...
Read more

5.22.7

27 Dec 06:40
1d267d9
Compare
Choose a tag to compare
  • 🐞 Fix Button text and icon not align. #52132 @afc163
  • 🐞 Fix Button throws reactRender is not a function under React 19. #52105 @afc163
  • TypeScript
    • 🤖 Fix Menu interface type error from external module. #51715 @msyavuz

  • 🐞 修复 Button 文字和图标不对齐的问题。#52132 @afc163
  • 🐞 修复在 React 19 下点击 Button 时抛出 reactRender is not a function 错误的问题。#52105 @afc163
  • TypeScript

5.22.6

23 Dec 10:49
fb65341
Compare
Choose a tag to compare
  • 🐞 Align Button with and without icons consistently. #52070
  • 🐞 Fix Splitter collapsible icon z-index too low. #52065 @wanpan11
  • 🐞 Fix Button motion not smooth when set loading. #52059 @zombieJ
  • 🐞 Fix Button issue where solid default button text disappears on hover in dark mode. #52024 @DDDDD12138

  • 🐞 修复 Button 有图标和无图标按钮对齐差一像素的问题。#52070
  • 🐞 修复 Splitter 组件折叠图标 z-index 层级过低问题。#52065 @wanpan11
  • 🐞 修复 Button 启用 loading 时,动画不够顺滑的问题。#52059 @zombieJ
  • 🐞 修复 Button 暗色模式下默认填充按钮文本在悬停时消失的问题。#52024 @DDDDD12138

5.22.5

14 Dec 17:05
5da9dde
Compare
Choose a tag to compare
  • 🛠 Refactor Wave/Menu/Form ref check logic to resolve React 19 ref 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 19 ref 部分冲突(注:该更新不会完全解决 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

09 Dec 13:06
c2efea0
Compare
Choose a tag to compare
  • 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

02 Dec 12:40
4f3faa3
Compare
Choose a tag to compare
  • 🐞 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 to label field of presets property. #51808 @li-jia-nan
  • 🐞 Fix Menu inlineCollapsed property not works bug within Layout. #51775 @coderz-w
  • 🐞 Fix Table onHeaderCell provided part style can not override. #51793 @Wxh16144
  • ⌨️ Improve Collapse accessibility. #51836 @aojunhao123
  • TypeScript
    • 🤖 Add Table argument type for clearFilters function property. #51754 @fubd
    • 🤖 Fix Form.List with nest field will miss value with remove when set Form preserve to false. #51796 @zombieJ

  • 🐞 修复 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
    • 🤖 增加 Table 属性中 clearFilters 函数的入参类型。#51754 @fubd
    • 🤖 修复 Form 设置 preservefalse 时,Form.List 中嵌套的字段卸载会丢失值的问题。#51796 @zombieJ

5.22.2

20 Nov 18:23
Compare
Choose a tag to compare
  • 🐞 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 with useEffect to resolve some async load case not get autoFocus. #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 and onSelect were not properly triggered. #51448 @Wxh16144
  • 🌐 Localization

  • 🐞 修复 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 组件的 onCheckonSelect 事件没有被正确触发的问题。#51448 @Wxh16144
  • 🌐 本地化