antd v4.7.0 Release Notes
Release Date: 2020-10-10 // over 3 years ago-
- 🍱 🔥 Input.TextArea support word count. #26952 @zhangchen915
- 🍱 🔥 DatePicker support custom
format
by passing a function. #26845 - Form
- Upload
- Table
- 🆕 Table
sticky
now supportgetContainer
. #26973 - 🐞 Fix Table should not render dropdown filter icon when filterDropdown is
undefined
. #27002 @shangyilim
- 🆕 Table
- Modal
- 🛠 Refactor Modal animation code so that it will remove all dom element when closed. #26940
- 🆕 Modal add
modalRender
prop which can be used for draggable dialog. #26507 @jhoneybee
- 🍱 🆕 Space add
split
prop. #26948 - 🍱 🆕 Image
preview
prop now supportvisible
andonVisibleChange
. #26915 - 🍱 🆕 InputNumber will trigger
onStep
prop when click up/down buttons. #27075 - 🍱 🆕 Avatar
size
support responsive config. #26244 @willamesoares - 🍱 🐞 Fix Radio.Button children cannot apply Tooltip. #27050
- RTL
- ⬅️ Fix List action button position in RTL mode. #26964
- ⬅️ Fix Transfer pagination style in RTL mode. #26960
- ⬅️ Fix Upload style in RTL mode. #26961
- ⬅️ Optimize Tag style to avoid the interaction between theme and RTL mode. #26955
- ⬅️ Optimize Cascader and Tree style of the data expansion loading icon in RTL mode. #27010
- TypeScript
- 🤖 Fix typo
TimeLineItemProps
toTimelineItemProps
. #27001 @mgcrea - 🤖 Fix Slider missing
autoFocus
prop. #26995 @shangyilim - 🤖 Fix Slider
step
prop not acceptingnull
value. #26984 @shangyilim - 🤖 Fix Slider.Range
trackStyle
andhandleStyle
should be array. #27033 - 🤖 Optimize Tag
onClose
TypeScript definition. #26932 - 🤖 Improve Form TypeScript definition to support
getFieldsValue
return generic type withoutnamePath
argument. #26791
- 🤖 Fix typo
- Locale
- 🇧🇾 Add Belarusian locale. #27028 @StIvan8
- 🇯🇵 Fix Japanese locale. #27043 @iorikingdom
- 🇹🇭 Add Thai locale for Pickers. #26993 @anawinwz
- 🇹🇷 Add Turkish locale of Form optional text. #27017 @alperTunca
- 🇵🇱 Add Polish locale of Table. #26913 @daczczcz1
- 🍱 🔥 Input.TextArea 支持字数统计功能。#26952 @zhangchen915
- 🍱 🔥 DatePicker
format
支持传入一个函数以自定义显示内容。#26845 - Form
- Upload
- Table
- 🆕 Table
sticky
支持getContainer
以指定滚动容器。#26973 - 🐞 修复 Table
column.filterDropdown
为undefined
时依旧会展示筛选菜单的问题。#27002 @shangyilim
- 🆕 Table
- Modal
- 🛠 重构 Modal 组件动画,现在关闭时将完全清理相关 Dom 节点。#26940
- 🆕 Modal 新增
modalRender
属性,支持可拖拽的对话框。#26507 @jhoneybee
- 🍱 🆕 Space 增加
split
属性以支持分隔符间隔。#26948 - 🍱 🆕 Image
preview
属性扩展支持visible
和onVisibleChange
。#26915 - 🍱 🆕 InputNumber 点击上下按钮时将触发
onStep
。#27075 - 🍱 🆕 Avatar
size
可以进行响应式的大小配置。#26244 @willamesoares - 🍱 🐞 修复 Radio.Button 内无法使用 Tooltip 的问题。#27050
- RTL
- TypeScript
- 🤖 修复
TimeLineItemProps
为TimelineItemProps
。#27001 @mgcrea - 🤖 修复 Slider
autoFocus
属性定义。#26995 @shangyilim - 🤖 修复 Slider
step
属性不接收null
的问题。#26984 @shangyilim - 🤖 修复 Slider.Range
trackStyle
和handleStyle
应该接受数组的问题。#27033 - 🤖 优化 Tag
onClose
TypeScript 定义。#26932 - 🤖 调整 Form 定义,现在当
getFieldsValue
不配置namePath
时返回类型为 FormValue 的泛型定义。#26791
- 🤖 修复
- 国际化
- 🇧🇾 新增白俄罗斯语支持。#27028 @StIvan8
- 🇯🇵 调整日语国际化文案。#27043 @iorikingdom
- 🇵🇱 补充 Table 波兰语国际化文案。#26913 @daczczcz1
- 🇹🇷 补充土耳其语可选文案。#27017 @alperTunca
- 🇹🇭 补充 DatePicker 的泰语国际化文案。#26993 @anawinwz