Releases: ant-design/ant-design
Releases · ant-design/ant-design
5.18.3
5.18.2
- 🐞 Fix the bug where the icon and the text aren't strictly centered in message. #49429 @nova1751
- 🐞 Fix Table sorter argument of
onChange
with unexpected value for #49134. #49289 @Zyf665 - 🐞 Add
aria-label
for expand icon in Collapse. #49395 @wanpan11 - 🐞 Fix token
inputFontSizeSM
andinputFontSizeLG
not working in InputNumber. #49369 - 💄 Fix Empty sometimes doesn't take
colorTextDescription
as description text color. #49408 - 💄 Resolve Badge
processing
status style conflict with Tailwind CSS. #49379 - 🌐 Locales
- 🇲🇳 Add missing translations for Mongol language (mn_MN). #49373 @JiyinShao
- 🐞 修复了 message 图标与文本内容没有严格居中对齐的问题。#49429 @nova1751
- 🐞 修复 #49134 #49289 中提到的 Table 组件的
onChange
事件中排序器参数的问题。@Zyf665 - 🐞 为 Collapse 组件中展开/折叠图标 添加具有语义的
aria-label
属性值。#49395 @wanpan11 - 🐞 修复 InputNumber 组件中 token
inputFontSizeSM
和inputFontSizeLG
不生效的问题。#49369 - 💄 修复 Empty 部分样式下,描述的
colorTextDescription
不生效的问题。#49408 - 💄 解决 Badge
processing
与 Tailwind CSS 样式冲突的问题。#49379 - 🌐 国际化
- 🇲🇳 添加蒙古语言 (mn_MN) 翻译。#49373 @JiyinShao
5.18.1
- Typography
- 🐞 Fix Space
size
setting to 0 did not take effect. #49192 @coding-ice - 🐞 Fix
padding
of Progress text is invalid in cssinjs. #49250 @vagusX - 🐞 Fix Modal close button's
zIndex
being incorrect incssVar
mode. #49238 - 🐞 Fix Image
width
height
being applied to preview images. #49259 @nova1751 - 🐞 Fix the icon of the Pagination page switcher disappears when hovering. #49262
- 🐞 Fix Mentions not responding to Enter event when
loading=true
. #49292 @wanpan11 - 🐞 Fix Notification did not inherit App config properties. #49339 @hemengke1997
- 💄 Fix the text color of Drawer was incorrect in dark mode. #49217
- 💄 Fix the style was not visible and the
percent
progress was not passed when customizing theindicator
of Spin. #49211 @wanpan11 - DatePicker
- TypeScript
- 🤖 Mentions added new export type
MentionsProps
. #49281 @thinkasany - 🤖 Remove duplicate union type from Statistic. #49218 @thinkasany
- 🤖 Mentions added new export type
- 🌐 Locales
- 🇲🇾 Add Table、Form、Tour etc. ms_MY locale. #49353 @cs-gavin-huang
- 🇦🇿 Add DatePicker az_AZ locale. #49247 @sabitalizade
- Typography
- 🐞 修复 Space
size
设置 0 不生效的问题。#49192 @coding-ice - 🐞 修复 Progress 文本的 padding 在 cssinjs 下单位失效问题。#49250 @vagusX
- 🐞 修复 Modal 关闭按钮的
zIndex
在cssVar
模式下不正确的问题。#49238 - 🐞 修复 Image
width
height
被应用到预览图片上的问题。#49259 @nova1751 - 🐞 修复 Pagination 页码切换器 hover 时图标消失的问题。#49262
- 🐞 修复 Mentions 当
loading=true
时不响应 Enter 事件的问题。#49292 @wanpan11 - 🐞 修复 Notification 没有继承 App config 属性的问题。#49339 @hemengke1997
- 💄 修复 Drawer 在暗黑模式下,文本颜色不正确的问题。#49217
- 💄 修复 Spin 自定义
indicator
时,样式不可见以及percent
进度没有传递的问题。#49211 @wanpan11 - DatePicker
- TypeScript
- 🤖 Mentions 新增导出类型
MentionsProps
。#49281 @thinkasany - 🤖 移除 Statistic 重复的联合类型。#49218 @thinkasany
- 🤖 Mentions 新增导出类型
- 🌐 国际化
- 🇲🇾 补充 Table、Form、Tour 等 ms_MY 文案。#49353 @cs-gavin-huang
- 🇦🇿 补充 DatePicker az_AZ 文案。#49247 @sabitalizade
5.18.0
- 🛎 Fix Button icon and text align issue by changing
inline-block
toinline-flex
and simplifyiconPosition
implementation. #47318 - Drawer
- 🆕 Drawer add
drawerRender
property to control render. #49125 @crazyair - 🛠 Drawer loading implementation changes to Skeleton from Spin. #48886 @li-jia-nan
- 🆕 Drawer add
- Form
- Image
- 🆕 Image add
onReset
andonClose
properties. #48936 @kiner-tang - 🆕 Image supports get
imgInfo
from arguments oftoolbarRender
andimageRender
render functions. #48729 @nova1751
- 🆕 Image add
- notification
- Progress
- 🆕 Progress add
percentPosition
property to control position for percent value. #48157 @LonelySnowman - 🆕 Progress
size
property supports object value. #48805 @crazyair
- 🆕 Progress add
- 🆕 Avatar.Group add
max
property for replacemaxCount
、maxStyle
、maxPopoverPlacement
andmaxPopoverTrigger
properties. #49131 @wanpan11 - 🆕 Modal add
loading
property to show the skeleton. #48848 @li-jia-nan - 🆕 Rate add
keyboard
property to ignore keyboard events. #49132 @Wxh16144 - 🆕 Spin support
percent
to render as progress. #48657 - 🐞 Watermark add
overflow: hidden
style to prevent setheight: 0
to hide the watermark case. #49130 - 🐞 Anchor fix scroll animation lost bug when set
replace
property. #49136 @mySkey - 🐞 Tour fix
current
argument ofonClose
is wrong. #49124 - 💄 List.Item add
styles
andclassName
properties. #49154 @wanpan11 - 🇯🇵 DatePicker add missing ja_JP translations. #49155 @huyikai
- 🛠 Simplify several logics and type definitions. #49146 #49156 #49169 #49162 @coding-ice
- 🛎 Button 默认布局由
inline-block
切换为inline-flex
以修复图标和文字对齐问题,并简化了iconPosition
的实现。#47318 - Drawer
- 🆕 Drawer 新增
drawerRender
属性以支持自定义渲染。#49125 @crazyair - 🛠 Drawer 加载中的状态实现由 Spin 替换为 Skeleton。#48886 @li-jia-nan
- 🆕 Drawer 新增
- Form
- Image
- 🆕 Image 新增
onReset
和onClose
属性。#48936 @kiner-tang - 🆕 Image 的
toolbarRender
和imageRender
渲染函数入参新增ImgInfo
信息。#48729 @nova1751
- 🆕 Image 新增
- notification
- Progress
- 🆕 Progress 新增
percentPosition
属性用于控制数值位置。#48157 @LonelySnowman - 🆕 Progress 的
size
属性支持配置为对象值。#48805 @crazyair
- 🆕 Progress 新增
- 🆕 Avatar.Group 新增
max
属性以替代maxCount
、maxStyle
、maxPopoverPlacement
和maxPopoverTrigger
。#49131 @wanpan11 - 🆕 Modal 新增
loading
属性以展示加载中的状态。#48848 @li-jia-nan - 🆕 Rate 新增
keyboard
属性以支持禁用键盘事件。#49132 @Wxh16144 - 🆕 Spin 支持
percent
属性以进度形态展示。#48657 - 🐞 Watermark 添加
overflow: hidden
样式以防止通过设置height: 0
样式达到隐藏水印的效果。#49130 - 🐞 Anchor 修复设置
replace
属性时滚动动画丢失的问题。#49136 @mySkey - 🐞 Tour 修复
onClose
的current
参数错误的问题。#49124 - 💄 List.Item 增加
styles
及classNames
属性。#49154 @wanpan11 - 🇯🇵 DatePicker 补充 ja_JP 本地化文案。#49155 @huyikai
- 🛠 精简数处判断逻辑及类型定义。#49146 #49156 #49169 #49162 @coding-ice
5.17.4
- 🐞 Fix Modal with
confirm
would not close correctly when returningtrue
inonOk
oronCancel
. #49054 @wanpan11 - 🐞 Fix Carousel was warned about having non-standard DOM attributes by React. #49031
- 🐞 Fix Form prop of
scrollToFirstError
not working for InputNumber. #48989 @Wxh16144 - TypeScript
5.17.3
5.17.2
5.17.1
- 🐞 Optimize the internal logic of the Form, fix the problem that antd takes too long time to build in Next.js. react-component/async-validator#9
- 🐞 Fix visually not centered when Tooltip content is only one character. #48890 @kiner-tang
- Button
- 🐞 Fix hover and active styles not differentiating when Button
type="text"
andtype="danger"
are used together. #48876 @LonelySnowman
- 🐞 Fix hover and active styles not differentiating when Button
- Fix issue where some components throw findDOMNode warnings
- 💄 Add className to internal component Spin given by Drawer to prevent internal Spin styles from overriding user-passed Spin styles. #48857 @li-jia-nan
- 💄 Fix missing bottom border when Card
size="small"
. #48787 @wanpan11 - 🐞 Fix AutoComplete
tagRender
not working for maxTag and clicking on an edge triggering unexpected closure of the layer. #48798 - RTL
- 💄 Fix Button's missing icon order and margins under RTL. #48821
- TypeScript
- 🐞 优化 Form 组件底层逻辑,修复了 antd 在 Next.js 中构建时间太长的问题。react-component/async-validator#9
- 🐞 修复 Tooltip 内容只有一个字符时视觉不居中的问题。#48890 @kiner-tang
- Button
- 🐞 修复 Button
type="text"
和type="danger"
同时使用时 hover 和 active 样式没有区分的问题。#48876 @LonelySnowman
- 🐞 修复 Button
- 修复部分组件抛出 findDOMNode 警告的问题
- 💄 给 Drawer 的内部组件 Spin 添加 className,防止内部 Spin 样式覆盖用户传入的 Spin 样式。#48857 @li-jia-nan
- 💄 修复 Card
size="small"
时下边框丢失的问题。#48787 @wanpan11 - 🐞 AutoComplete 修复
tagRender
对 maxTag 无效的问题和点击边缘会触发弹层意外关闭的问题。#48798 - RTL
- 💄 修复 Button 在 RTL 下的图标顺序和边距缺失问题。#48821
- TypeScript
5.17.0
- 🔥🔥🔥
@ant-design/cssinjs
StyleProvider supports configuringlayer
to unified downgrade CSS priority. After the downgrade, the style of antd will always be lower than the default CSS selector priority, so that users can override the style (please be sure to check the browser compatibility of @layer), see full documentation for usage. #48229 - 🆕 Carousel supports
arrows
to switching between slides now. #48542 - Form
- Typography
- DatePicker
- Drawer
- 🆕 Drawer supports
loading
prop now. #48563 @Enigama - 🐞 Fix Drawer
classNames.wrapper
not working. #48721 @replygirl
- 🆕 Drawer supports
- Slider
- Button
- 🆕 Button add
iconPosition
prop to specify icon position. #47791 @GeorgeHcc - 🆕 Button supports
autoInsertSpace
prop. #48348 @li-jia-nan
- 🆕 Button add
- 🆕 ConfigProvider supports
button.autoInsertSpace
prop and deprecatedautoInsertSpaceInButton
prop. #48348 @li-jia-nan - 🆕 TreeSelect supports
onPopScroll
prop now. #48636 @wanpan11 - 🆕 Tabs supports
more={{ .. }}
to customize more dropdown. #48321 @CooperHash - 🆕 Flex
wrap
could be boolean type now. #48391 @li-jia-nan - 🆕 Input.OTP supports
mask
prop. #48257 @li-jia-nan - 🆕 Alert supports
id
andref
props. #48336 @li-jia-nan - 🆕 Upload supports
ref.nativeElenent
. #48210 @Wxh16144 - 🐞 Fix List would not rerender when
grid
changed. #48683 @coderz-w - 🐞 Fix QRCode size cannot fit it's container and remove default padding of
bordered={false}
. #48194 @thinkasany - 🐞 Fix Table shadow should be show when there are columns where
fixed={false}
. #1113 @linxianxi - 🐞 Fix Progress tooltip wrong distance. #48686
- 📖 Table add column-drag sorting demo. #48434 @GeorgeHcc
- TypeScript
- Locales
- 🇯🇵 Fix missing Japanese locale translation. #48704 @edikurniawan-dev
- 🇮🇩 Fix missing Indonesian locale translation. #48703 @edikurniawan-dev
- 🔥🔥🔥
@ant-design/cssinjs
StyleProvider 支持配置layer
统一降级 默认 CSS 优先级。经过降权后,antd 的样式将始终低于默认的 CSS 选择器优先级,以便于用户进行样式覆盖(请务必注意检查 @layer 浏览器兼容性),详情可见文档。#48229 - 🆕 Carousel 现在支持
arrows
来开启箭头切换功能。#48542 - Form
- Typography
- DatePicker
- Drawer
- 🆕 Drawer 新增
loading
属性。#48563 @Enigama - 🐞 修复 Drawer 不支持
classNames.wrapper
的问题。#48721 @replygirl
- 🆕 Drawer 新增
- Slider
- Button
- 🆕 Button 新增
iconPosition
以指定预置图标位置。#47791 @GeorgeHcc - 🆕 Button 组件支持
autoInsertSpace
属性,用来移除两个汉字之间的空格。#48348 @li-jia-nan
- 🆕 Button 新增
- 🆕 ConfigProvider 组件支持
button.autoInsertSpace
属性并废弃autoInsertSpaceInButton
属性。#48348 @li-jia-nan - 🆕 TreeSelect 支持
onPopScroll
属性。#48636 @wanpan11 - 🆕 Tabs 新增
more={{ ... }}
属性以支持自定义下拉菜单的属性。#48321 @CooperHash - 🆕 Flex 组件
wrap
参数支持 boolean 类型。#48391 @li-jia-nan - 🆕 Input.OTP 组件支持
mask
属性,以自定义遮罩字符。#48257 @li-jia-nan - 🆕 Alert 组件支持
id
和ref
属性。#48336 @li-jia-nan - 🆕 Upload 组件
ref.nativeElenent
以支持访问原生元素。#48210 @Wxh16144 - 🐞 修复 List
grid
属性值更新后组件未重新渲染的问题。#48683 @coderz-w - 🐞 修复 Progress tooltip 提示距离太近的问题。#48686
- 🐞 修复 QRCode 无法自适应容器大小的问题并移除
bordered={false}
时的默认边距。#48194 @thinkasany - 🐞 修复 Table 组件设置
fixed={false}
时的某些特殊情况下未正常显示投影的问题。#1113 @linxianxi - 📖 添加 Table 表格列拖拽排序演示。#48434 @GeorgeHcc
- TypeScript
- 本地化
- 🇯🇵 补充日语本地化文案。#48704 @edikurniawan-dev
- 🇮🇩 补充印尼语本地化文案。#48703 @edikurniawan-dev
5.16.5
- 🐞 Fix Transfer component issue when trying to select item from the right column while it has "unknown-key" within targetKeys. #48664 @andreyk1512
- 🐞 Fix Steps custom icon not vertically centered error. #48650 @ZinkWu
- 🐞 Fix Badge number centered but slightly right-aligned. #48605 @akinocccc
- 🐞 Fix Popover and Popconfirm blinking when open on the right edge of screen. #48591
- 🐞 Fix ColorPicker that cleared icon should change when initial value is
undefined
. #48584 @MadCcc - 💄 Fix Collapse bottom border issue. #48561 @hamzaseif13
- 💄 Adjust Input border style in form validation when disabled. #48616 @nova1751
- TypeScript
- 🤖 Add missing generic type of Upload prop. #48614 @li-jia-nan
- 🤖 Fix missing generic type of Upload
customRequest
prop. #48612 @jas0ncn
- Locales
- 🐞 修复 Transfer 组件在 targetKeys 中含有 "unknown-key" 时,尝试从右侧列选中单项的问题。#48664 @andreyk1512
- 🐞 修复 Steps 自定义图标未垂直居中问题。#48650 @ZinkWu
- 🐞 修复 Badge 数字居中偏右的问题。#48605 @akinocccc
- 🐞 修复 Popover 和 Popconfirm 在屏幕右侧边缘闪烁的问题。#48591
- 🐞 修复 ColorPicker 在初始未受控时清除图标不会改变的问题。#48584 @MadCcc
- 💄 修复 Collapse 组件底部边框样式问题。#48561 @hamzaseif13
- 💄 调整 Input 组件在禁用的时候在表单校验时的边框颜色。#48616 @nova1751
- TypeScript
- 🤖 补充 Upload 组件缺失的泛型。#48614 @li-jia-nan
- 🤖 修复 Upload
customRequest
参数丢失泛型的问题。#48612 @jas0ncn
- 国际化