Skip to content

Releases: ant-design/ant-design

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
  • 🌐 本地化

5.22.1

13 Nov 14:47
70c93e5
Compare
Choose a tag to compare
  • 🛠 Adjust DatePicker.RangePicker to not allow switching to the next field by clicking the input when needConfirm and the user has not submitted the date. #51591 @zombieJ
  • 🛠 Lock Input.OTP ctrl + z operation to avoid data not correct. #51609 @zombieJ
  • 🐞 Fix Select tags or multiple mode display issue. #51605 @guoyunhe
  • 🐞 Fix Badge count motion missing in Safari. #51598 @zombieJ
  • 🐞 Fix Tabs with centered the tabs can not fully display. #51571 @DDDDD12138
  • 🐞 Fix Transfer with controlled dataSource & selectedKeys sometime miss sync checked state. #51523 @IsKaros
  • 🐞 Revert Button display inline-flex back to inline-block to resolve Icon align issue. #51588 @Wxh16144

  • 🛠 调整 DatePicker.RangePicker 当 needConfirm 切用户未提交日期时,不允许通过点击输入框切换到下一个字段。#51591 @zombieJ
  • 🛠 禁用 Input.OTP ctrl + z 操作以防止数据变化非预期的问题。#51609 @zombieJ
  • 🐞 修复 Select 标签模式下展示异常的问题。#51605 @guoyunhe
  • 🐞 修复 Badge count 在 Safari 下动画丢失的问题。#51598 @zombieJ
  • 🐞 修复 Tabs centered 下标签展示不全的问题。#51571 @DDDDD12138
  • 🐞 修复 Transfer 受控 dataSourceselectedKeys 时,偶尔会出现勾选不正确的问题。#51523 @IsKaros
  • 🐞 回滚 Button displayinline-flexinline-block 以解决 Icon 位置偏移的问题。#51588 @Wxh16144

5.22.0

11 Nov 16:38
4e17ca7
Compare
Choose a tag to compare
  • Form
    • 🆕 Form.Item supports hiding labels. #51524 @crazyair
    • 🐞 Form removes the div used to expand the error height, wraps errorDom and extraDom with a div, and sets a minimum height for the div. #51254 @hongzzz
    • 🐞 Fix the problem that onValuesChange is still triggered when the Form field triggers change but the value does not change. #51437 @crazyair
    • 🆕 Form supports the focus property in scrollToFirstError when form validation fails. #51231 @nathanlao
  • Table
  • Tree
    • 💄 Fix the problem of missing padding style for selected nodes in Tree. #51492 @zombieJ
    • 🆕 Tree component Token adds nodeHoverColor and nodeSelectedColor support. #51367 @zmbxy
    • 🆕 Tree adds indentSize token for custom indent width. #51010 @afc163
  • DatePicker
    • 🆕 DatePicker supports prefix attribute. #51335 @guoyunhe
    • 💄 Fixed the issue of DatePicker.RangePicker flashing when the mouse moves between cells. #51533 @afc163
  • Input.OTP
    • 🆕 In the Input.OTP component, add onInput event to get the value of each user input. At the same time, the relevant documentation has been updated. #51289 @aojunhao123
    • 🐞 Fixed the problem that Input.OTP cannot specify inputMode. #51271 @alan-rudzinski
  • 🆕 ColorPicker supports disabledFormat. #51539 @su-muzhi
  • 🆕 Add cursor configuration item to the focus method of InputNumber component to control the cursor position. #51444 @aojunhao123
  • 🆕 Cascader adds disabled attribute to disable all first-level directory items of the component. #51272 @aojunhao123
  • 🆕 Descriptions supports single-line spreading. #51365 @crazyair
  • 🆕 Select/TreeSelect/Cascader components add prefix property to support custom prefix. #51186 @guoyunhe
  • 🐞 Fix the problem that the preview image class name is lost when setting ImageProps.preview.rootClassName in Image. #51538 @dislido
  • 🐞 Fixed the issue that the last item in the TimePicker panel column cannot be scrolled to the top. #51481 @zombieJ
  • 🐞 Fix TreeSelect dropdown height not enough. #51567 @afc163
  • 🐞 Fixed the issue that Typography is not updated immediately when the ConfigProvider language is switched. #51453 @thinkasany
  • 🐞 Fixed the issue that Upload itemRender calling action.preview will cause a crash. #51419 @yoyo837
  • 🐞 Fixed Splitter pseudo-element symbol issue. #51536 @dislido
  • 💄 Optimize Collapse accessibility attribute and mouse hover style. #51400 @afc163
  • 💄 Fix styling issue of Menu title content. #51425 @coding-ice
  • 🇵🇹 Fix translation in Portuguese (pt_PT) localization file for better accuracy and consistency. #51501 @alexandre-p-marques-alb
  • 🇺🇿 Optimize uz_UZ internationalization. #51407 @Zukhrik
  • TypeScript
    • 🤖 Upload exports type DraggerProps. #51546 @DBvc
    • 🤖 Add defaultValue property to TimePicker.RangePicker example. #51413 @nathanlao
    • 🤖 Message Optimize the top type in message.config. #51468 @Fog3211
    • 🤖 Optimize the TS definition of Tree and TreeSelect. #51251 @afc163

  • Form
    • 🆕 Form.Item 支持隐藏 label。#51524 @crazyair
    • 🐞 Form 移除了用于撑开 error 高度的 div,将 errorDom 和 extraDom 用一个 div 包裹,并为该 div 设置了最小高度。#51254 @hongzzz
    • 🐞 修复 Form 在字段触发 change 但是值没有变化时,onValuesChange 仍然会触发的问题。#51437 @crazyair
    • 🆕 Form 支持在表单验证失败时,scrollToFirstError 中的 focus 属性。#51231 @nathanlao
  • Table
  • Tree
    • 💄 修复 Tree 选中节点丢失 padding 样式的问题。#51492 @zombieJ
    • 🆕 Tree 组件 Token 增加 nodeHoverColornodeSelectedColor 支持。#51367 @zmbxy
    • 🆕 Tree 新增 indentSize token 用于自定义缩进宽度。#51010 @afc163
  • DatePicker
    • 🆕 DatePicker 支持 prefix 属性。#51335 @guoyunhe
    • 💄 修复 DatePicker.RangePicker 当鼠标移动到单元格之间时出现闪烁样式的问题。#51533 @afc163
  • Input.OTP
  • 🆕 ColorPicker 支持 disabledFormat 属性以禁用格式切换器。#51539 @su-muzhi
  • 🆕 为 InputNumber 组件的 focus 方法增加 cursor 配置项以控制光标位置。#51444 @aojunhao123
  • 🆕 Cascader 新增 disabled 属性以禁用组件的所有一级目录项。#51272 @aojunhao123
  • 🆕 Descriptions 支持单行铺满。#51365 @crazyair
  • 🆕 Select/TreeSelect/Cascader 组件增加 prefix 属性以支持自定义前缀。#51186 @guoyunhe
  • 🐞 修复 Image 设置 ImageProps.preview.rootClassName 导致预览图类名丢失。#51538 @dislido
  • 🐞 修复 TimePicker 面板列的最后一项无法滚动到最上面的问题。#51481 @zombieJ
  • 🐞 修复 TreeSelect 弹层高度不够的问题。#51567 @afc163
  • 🐞 修复 Typography 在 ConfigProvider 语言切换时候没有立即更新。#51453 @thinkasany
  • 🐞 修复 Upload itemRender 调用 action.preview 会导致崩溃的问题。#51419 @yoyo837
  • 🐞 修复 Splitter 伪元素符号问题。#51536 @dislido
  • 💄 优化 Collapse 可访问性属性和鼠标 hover 样式。#51400 @afc163
  • 💄 修复 Menu title 内容的样式问题。#51425 @coding-ice
  • 🇵🇹 修正葡萄牙语 (pt_PT) 本地化文件中的翻译,以提高准确性和一致性。#51501 @alexandre-p-marques-alb
  • 🇺🇿 优化 uz_UZ 国际化。[#51407](https://github.com/...
Read more

5.21.6

28 Oct 07:31
f696a13
Compare
Choose a tag to compare
  • 🐞 Fix Tree.DirectoryTree interactive area not being a whole row. #51210
  • 🐞 Fix the Button icon was not vertically centered. #51381
  • 🐞 Fix the pointer style not set to not-allowed in the disabled state when variant of the Input was set to borderless. #51387 @ustcfury
  • Splitter
    • 💄 Improve the pre-rendered style of Splitter under SSR. #51378
    • 💄 Increased the click area of ​​the Splitter collapse button to improve usability. #51383 @aojunhao123
  • 💄 Improve Checkbox indeterminate to enhance accessibility experience. #51350 @SpaNb4
  • 💄 Improve the title of the Empty preset svg image to improve accessibility experience. #51368

  • 🐞 修复 Tree.DirectoryTree 交互区域不是整行的问题。#51210
  • 🐞 修复 Button 图标未垂直居中的问题。#51381
  • 🐞 修复 Input 组件 variant 设置 borderless 时,disabled 状态下指针样式未设置 not-allowed 的问题。#51387 @ustcfury
  • Splitter
    • 💄 优化 Splitter 在 SSR 下预渲染的样式。#51378
    • 💄 增大 Splitter 折叠按钮点击区域,提高可用性。#51383 @aojunhao123
  • 💄 优化 Checkbox indeterminate 提升无障碍体验。#51350 @SpaNb4
  • 💄 优化 Empty 预设 svg 图片的 title 提升无障碍体验。#51368

5.21.5

21 Oct 08:21
f456147
Compare
Choose a tag to compare

5.21.4

14 Oct 11:26
cf68622
Compare
Choose a tag to compare
  • 🐞 Fixed Input.Search not applying the hoverBorderColor/activeBorderColor token for hover/active states. #51226 @iqingting
  • 🐞 Fix Tree icon align issue. #51181 @Meowu
  • 🐞 Fix Splitter occasionally shows unnecessary scrollbars in nested combinations. #51169 @zombieJ
  • 💄 Modify Design Token textHoverBg hover background to colorFillTertiary. #51187 @coding-ice
  • TypeScript

  • 🐞 修复 Input.Search 无法使用 Input Token hoverBorderColor/activeBorderColor 修改边框颜色的问题。#51226 @iqingting
  • 🐞 修复 Tree 的图标不对齐的问题。#51181 @Meowu
  • 🐞 修复 Splitter 在嵌套组合时,偶尔会出现多余滚动条的问题。#51169 @zombieJ
  • 💄 修改 Design Token 的 textHoverBg 悬浮状态下的背景色为 colorFillTertiary#51187 @coding-ice
  • TypeScript

5.21.3

09 Oct 11:01
3819726
Compare
Choose a tag to compare
  • 💄 Added a scroll bar to Dropdown when having many items. #51112 @Cameron-Asdf
  • Slider #51150 @yoyo837
    • 🐞 Fix Slider issue where the id prop is not supported.
    • 🐞 Fix Slider to address the issue causing useLayoutEffect does nothing on the server warning when extractStyle is invoked.
  • 🐞 Fix ColorPicker with gradient mode, sometimes handle color will be force sync back to first handle color issue. #51161 @zombieJ
  • 🐞 Fix Table onChange function receiving incorrect sorter value. #51114 @nathanlao
  • Splitter
    • 🐞 Fix the issue about throw a warning when Splitter nested in a hidden tab panel. #51109 @kiner-tang
    • 🐞 Fix the issue about Splitter had unexpected gaps in Flex. #51096 @kiner-tang
  • 🐞 MISC: Restore react and react-dom peerDependencies. #51079 @chentsulin
  • TypeScript

  • 💄 优化 Dropdown 列表较长时的滚动条样式。#51112 @Cameron-Asdf
  • Slider #51150 @yoyo837
    • 🐞 修复 Slider 不支持 id 属性的问题。
    • 🐞 修复 Slider 导致 extractStyle 时抛出 useLayoutEffect does nothing on the server 警告信息的问题。
  • 🐞 修复 ColorPicker 渐变色时,部分节点颜色拖拽会被强制重置为第一个节点颜色的问题。#51161 @zombieJ
  • 🐞 修复 Table 组件在切换页面时 onChange 函数接收到错误的 sorter 值的问题。#51114 @nathanlao
  • Splitter
    • 🐞 修复 Splitter 嵌套在一个隐藏的 Tabs 面板中时抛出警告的问题。#51109 @kiner-tang
    • 🐞 修复 Splitter 组件在 Flex 组件下时出现异常间距的问题。#51096 @kiner-tang
  • 🐞 杂项:重新将 reactreact-dom 添加进 peerDependencies。#51079 @chentsulin
  • TypeScript

5.21.2

30 Sep 16:12
0ed8d61
Compare
Choose a tag to compare
  • 🐞 Revert #49221 to fix Typography copyable icon align issue. #51066 @afc163
  • 🐞 Fix Tabs flicker when browser zoom is enabled. #51072 @afc163
  • 🐞 Fix Select incorrect activeBorderColor token when variant is filled. #51054 @coding-ice
  • 🐞 Fixed Input.Search alignment issue between the input field and search button at different zoom levels. #50926 @nathanlao
  • 💄 MISC: Tweak outline width of focus style from 4px to 3px. #51069 @afc163
  • Splitter
    • 🐞 Fixed the issue with Splitter dragging abnormally on touch screen devices. #51060 @sakuraee
    • 💄 Fixed Splitter.Panel style is invalid error. #51032 @wanpan11
  • ⚡️ Remove TransButton in Table/Transfer/Typography. #51068 @afc163

  • 🐞 回滚 #49221 以修复 Typography copyable 图标位置偏上的问题。#51066 @afc163
  • 🐞 修复 Tabs 在浏览器缩放时无限闪烁的问题。#51072 @afc163
  • 🐞 修复了 Input.Search 组件中在不同缩放级别下输入框和按钮的对齐问题。#50926 @nathanlao
  • 🐞 修复 Select variant="filled"activeBorderColor token 失效的问题。#51054 @coding-ice
  • 💄 MISC: 调整 focus 时的 outline 边框宽度,从 4px 调整到 3px#51069 @afc163
  • Splitter
  • 📦 移除 Table/Transfer/Typography 内的 TransButton 实现以降低打包体积。#51068 @afc163