![](http://www.zhousa.com/zb_users/theme/quietlee/style/noimg/10.jpg)
阅读《2024 中国开源开发者报告》赢大奖,扫码申请享特权
![](https://www.oschina.net/img/hot3.png)
Ant Design 5.24.0 现已发布,主要更新内容如下:
- Notification 支持
actions
属性并废弃btn
属性。#52703 - Carousel 支持展示指示点进度。#52672
- Input.OTP 支持
separator
属性。#52668 - Descriptions 增加
labelColor
组件 token。#52700 - Segmented 支持
shape="round"
的胶囊形状的样式。#52685 - ConfigProvider 支持 Card 组件的
variant
配置。#52552 - Progress/Step 支持使用
rounding
属性自定义取整方法。#52017 - Divider 的
orientation
属性支持start
和end
.#52567 - 为 Input、InputNumber、Mentions、Form、Select、Cascader、TreeSelect、DatePicker、TimePicker 组件的
variant
添加underlined
属性。#52546 - ConfigProvider 支持 Modal
centered
全局配置。#52343 - 为 Checkbox 和 Radio 增加
label
类名。#52322 - 修复 Tooltip/Popover/Popconfirm/Dropdown 在 React 19 下 children 为自定义组件时弹层位置错乱的问题。react-component/util#623
- 修复 DatePicker.RangePicker 弹出窗体自动调整位置时,面板的箭头位置不正确的问题。#52719
- 修正 locale 中
filterCheckall
为filterCheckAll
。#52517 - 修复 Form
scrollToField
和scrollToFirstError
无法聚焦 antd 组件的问题。#52726 - 修复 Button 预设值按钮的阴影色在暗色背景下显示突兀的问题。#52701
- 修复 Segmented 组件在暗黑模式下的动画过渡效果不自然的问题。#52708
- 拆分 Input 和 TextArea 样式。#52570
- 修复 Input 和 Select 在 css var 模式下的样式问题。#52554
- Form field error 移除 role="alert" 以提升可访问性。#52661
- 优化无障碍体验,为空表头和面板按钮添加本地化标签。#52689
- 优化 Tabs 组件的可访问性,修复
Certain ARIA roles must contain particular children
的报错。#52677 - 为 Tooltip 添加读屏器支持。#52293
- TypeScript
- Button 根据
href
属性区分onClick
事件类型。#52654 - 废弃 Button.Group, 推荐 Space.Compact。#52572
- 废弃 Input.Group,推荐 Space.Compact。#52571
- Tooltip 导出 TooltipRef 类型。#49230
- Button 根据
更新说明:https://github.com/ant-design/ant-design/releases/tag/5.24.0
还没有评论,来说两句吧...