Releases: ant-design/ant-design
Releases · ant-design/ant-design
5.12.0
- 🔥 Component Token support CSS variables mode. For more detail, see CSS Variables. Special thank for contributors of this feature: @li-jia-nan @RedJue @c0dedance @kiner-tang @JarvisArt @cc-hearts
- 🛠 Refactor rc-pagination from class component to FC. #46204 @Wxh16144
- 🆕 Alert could support linear-gradient background by
colorInfoBg
token. #46188 - 🆕
Form.useWatch
support selector function param. #46180 @crazyair - 🆕 Slider support
onChangeComplete
and deprecateonAfterChange
. #46182 @MadCcc - 🆕 Tabs
items
supporticon
prop. #46096 @li-jia-nan - 🆕 Tour supports
getPopupContainer
property. #45751 @li-jia-nan - 🆕 Switch support for
value
anddefaultValue
props. #45747 @Wxh16144 - 🐞 Fix that clicking Form
tooltip
icon should not trigger Switch. #46155 - 🐞 Fix Notification that icon should have line-height. #46148 @MadCcc
- 🐞 Fix Progress that gradient in line should follow percent. #46209 @MadCcc
- 💄 Button could be customized to gradient style. #46192
- 💄 Fix style of InputNumber with
addon
inside Space.Compact. #46130 @MadCcc - TypeScript
- 🤖 Update
FloatButtonProps
type withReact.DOMAttributes
in FloatButton. #46175 @li-jia-nan
- 🤖 Update
- 🔥 Component Token 支持 CSS 变量模式,详情见 使用 CSS 变量。感谢以下同学对此的贡献:@li-jia-nan @RedJue @c0dedance @kiner-tang @JarvisArt @cc-hearts
- 🛠 rc-pagination 重构为 FC。#46204 @Wxh16144
- 🆕
Form.useWatch
支持 selector 函数参数调用。#46180 @crazyair - 🆕 Slider 组件支持
onChangeComplete
事件,并废弃onAfterChange
。#46182 @MadCcc - 🆕 Tabs 配置项
items
支持icon
属性。#46096 @li-jia-nan - 🆕 Switch 支持
value
anddefaultValue
属性。#45747 @Wxh16144 - 🐞 修复 Progress 进度条视觉效果,渐变效果应该随着百分比改变。#46209 @MadCcc
- 🐞 修复点击 Form
tooltip
图标会触发 Switch 切换的问题。#46155 - 🐞 修复 Notification 图标行高为 0 的问题。#46148 @MadCcc
- 💄 Button 按钮支持自定义为渐变色风格。#46192
- 💄 Alert 背景色现在可以通过
colorInfoBg
token 定义为渐变色。#46188 - 💄 修复 InputNumber 带有
addon
时在 Space.Compact 下使用的样式问题。#46130 @MadCcc - TypeScript
- 🤖 更新 FloatButton 的类型定义,透出原生事件处理函数类型。#46175 @li-jia-nan
5.11.5
5.11.4
5.11.3-alpha.1
5.11.3-alpha.1
5.11.3
- 🐞 Fix Modal static method create
zIndex
too high will cover other popup content. #46012 - Image
- 🆕 Image preview support mobile touch interactive. #45989 @JarvisArt
- 🐞 Fixed Image preview
z-index
conflict when in a nested pop-up. #45979 @kiner-tang
- 🐞 Fix Collapse header cursor style. #45994
- 🐞 Fix ColorPicker not support Form disabled config. #45978 @RedJue
- 🐞 Fix Typography.Text
ellipsis.tooltip
cannot open under Layout component. #45962 - 🐞 Remove Select native 🔍 icon from search input in Safari. #46008
- 💄 Remove Rate useless style.#45927 @JarvisArt
- 🛠 UMD
antd.js
will try to reuse global@ant-design/cssinjs
first now. #46009 - 🌐 Improve
eu_ES
localization. #45928 @ionlizarazu
- 🐞 修复 Modal 静态方法创建
zIndex
过高会覆盖其他弹出内容的问题。#46012 - Image
- 🆕 Image 预览支持移动触摸事件交互。#45989 @JarvisArt
- 🐞 修复 Image 预览在嵌套弹框中
z-index
设置不正确的问题。#45979 @kiner-tang
- 🐞 修复 Collapse 可折叠区域鼠标
hover
样式问题。#45994 - 🐞 修复 ColorPicker 不支持 Form 组件的禁用问题。#45978 @RedJue
- 🐞 修复 Typography.Text
code
在 Layout 下开启ellipsis
时 tooltip 无效的问题。#45962 - 🐞 修复 Select 搜索框在 Safari 下显示多余的 🔍 图标。#46008
- 💄 删除 Rate 组件无用样式。 #45927 @JarvisArt
- 🛠 UMD 版本
antd.js
现在会优先使用全局的@ant-design/cssinjs
依赖。#46009 - 🌐 补充
eu_ES
国际化内容。#45928 @ionlizarazu
5.11.3-alpha.0
chore: for alpha release
4.24.15
5.11.2
- 🆕 Table with
virtual
can now customizecomponents
except thecomponents.body
. #45857 - 🐞 Fix Button with href and disabled that could be focused. #45910 @MadCcc
- 🐞 Fix
zIndex
logic problem that message and notification are covered when multiple Modal are opened. #45911 #45864 @kiner-tang - 💄 Fix QRCode
style.padding
is not working. #45815 - 💄 Optimize Carousel dots border radius style. #45817
- TypeScript
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 组件