antd 3.7.0
3.7.0 is a heavy update that brings a lot of exciting changes and new features.
Here are some highlights ✨:
- 🌟 Add drawer component : Drawer. #10791
- 🌟 Add
Tree.DirectoryTreecomponent as the built-in directory tree. #7749
Component Fixes / Enhancements:
- Upgrade
rc-tree-selectto2.0.5for TreeSelect, refactored to fix the logic of the check.- 🌟 Add
autoClearSearchValueprop to clear the value of search input when multiple select is selected or deselected. 10996 - 🌟 Add
searchValueprop to set the value of search input. 6ff7dd8 - 🌟 Add
maxTagCountprop to set the max count of visible tags. fb96c9d - 🌟 Add
maxTagPlaceholderprop to set the content when the tag is hidden. fb96c9d - 🌟 Search input now supports case sensitive search. #10990
- 🗑 Remove
labelprop and usetitleprop instead in thetreeData.
- 🌟 Add
- Upgrade
rc-uploadto2.5.0for Upload. - Dropdown
- Upgrade
rc-tableto6.2.2for Table. f2fddff- 🌟 Add
expandedas the fourth param ofexpandedRowRenderprop to get the expanded state of current row. #10379 - 🌟 Add the ability to override the filter menu without the fully controlled component. 59cc3a8 @chrvadala
- 🌟
filterIconprop supports to be a render function which returns ReactNode. 1af4392 - 🐞 Fix the row dislocation problem when the column is fixed. #10392
- 🌟 Add
- 🌟 Allow to pass
data-*,aria-*androle-*props to the inner for Alert. f0b684d - 🌟 Add
altprop for Avatar to set the text when the image is unable to display. #10798 - 🌟 Allow to pass
data-*,aria-*androle-*props to the inner Input for DatePicker. e63f9d4 - 🌟 Add
eventobject as the second param ofonSearchprop for Input.Search. #11015 - 🌟 Add
onBreakPointprop for Layout.Sider to be the callback function when breakpoint is triggered. #10750 @nuintun - 🌟 Add
okButtonPropsprop to set the props of ok button and addcancelButtonPropsprop to set the props of cancal button for Modal. #10955 @djyde - 🌟 Add
strokeColorprop to set the color of progress bar for Progress. #10725 - 🌟 Add
buttonStyleprop whose optional value isoutlineorsolidto set the Radio.Group style. 60e3cfa - 🌟 Add
setDefaultIndicatorstatic function to set global indicator for Spin. #10787 - 🌟 Add
visibleprop to set the visibility forTag. 4ac0277 - Upgrade
rc-treeto1.12.0for Tree - 🗑 Deprecate
comboboxvalue forSelect[mode]and please replace it withAutoComplete. 53046a4 - 🐞 Cascader adds
fieldNamesand discards the misspelledfiledNames. #10896 - 🐞 Fix Timeline dot not working with Tooltip. 0e3b67e
- 🐞 Fix border radius when avatar has custom size. e1e6523
- 🌟 Add
okButtonDisabledandcancelButtonDisabledprops to disable ok button and cancel button. #10955
3.7.0是一个重磅更新,带来了很多激动人心的变化和新特性.
以下是一些亮点✨:
组件修复/功能增强:
- TreeSelect 组件升级
rc-tree-select到2.0.5,进行了重构,修复了 check 的逻辑。 - Upload 组件升级
rc-upload到2.5.0 - Dropdown 增加新特性,可以做为右键菜单来使用。
- Table 组件升级
rc-table到6.2.2。 f2fddff - 🗑 Select 组件废弃了
combobox模式,请使用AutoComplete组件代替。53046a4 - 🌟 Alert 组件允许传递
data-*、aria-*和role-*属性到组件内部。f0b684d - 🌟 Avatar 组件新增
alt属性,用于设置图像无法显示时的替代文本。#10798 - 🌟 DatePicker 组件允许传递
data-*、aria-*和role-*属性到组件内部的Input。e63f9d4 - 🌟 Input.Search 组件新增
event事件对象作为onSearch属性函数的第二个参数。#11015 - 🌟 Layout.Sider 组件新增
onBreakPoint属性,用作响应式布局的断点触发时的回调函数。#10750 @nuintun - 🌟 Modal 组件新增
okButtonProps和cancelButtonProps属性,分别用于设置取消按钮和确定按钮的属性。#10955 @djyde - 🌟 Progress 组件新增
strokeColor属性,用于设置进度条的颜色。#10725 - 🌟 Radio.Group 组件新增
buttonStyle属性 (可选值outline | solid),用于设置RadioButton的风格样式。60e3cfa - 🌟 Spin 组件新增
setDefaultIndicator静态方法,用于设置全局的加载指示符。#10787 - 🌟 Tag 组件新增
visible属性,用于设置是否显示标签。4ac0277 - Tree 组件升级
rc-tree到1.12.0 - 🌟 增加
okButtonDisabledandcancelButtonDisabled属性用于禁用确定和取消按钮。#10955 - 🌟 Cascader 新增 fieldNames 并废弃拼写错误的 filedNames。 #10896
- 🐞 修复时间轴不能与 Tooltip 一起使用的问题。 0e3b67e
- 🐞 修复当 Avatar 自定义大小时,圆角不改变的问题。e1e6523