antd 3.9.0
In September we brought an update for 3.9.0. There are many new features in 3.9.0, Ant Design is getting stronger and solider.
- 🔥🔥🔥 In the
3.9.0version, we redraw all the icons, adding two new categories, more than 90 new icons. And the bit adds a variety of styles to each icon. To this end, we have rewritten the Icon component, replaced thefontfaceicon withSVG, adding a number of features that allow us to quickly use new icons and styles.
- 💄 Replace the
cssfont icon with theSVGicon, see more disscussion about it. - 💄 You can now render a two-color icon.
- 💄 We provide three theme of icons: outlined, filled, twoTone, default theme is outlined.
- 🌟 Two new categories, Edit Icons and Data Icons, have been added.
- 🌟 Add the
themeattribute to set the theme style of the icon. #11971 - 🌟 Added
componentattribute, you can externally pass a component to customize the control rendering result. #11322 - 🌟 The
twoToneColorproperty is added to control the theme color of the two-color icon. #11971 - 🌟 Added static methods
Icon.getTowToneColor()andIcon.setTwoToneColor(...)to globally get and set the theme color of all two-color icons. #11971 - 🌟 The new static method
Icon.createFromIconfontCN({...})is added to make it easier to use icons hosted oniconfont.cn. For more usage, please refer to Ant Design Pro - Introduction to Business Icons. #11322
- 💄 Replace the
- 🔥 Added a new component Skeleton.
- 🔥 Menu will automatically close up to fit width in
horizontalmode. - 🔥 The
placementof the drawer supportstopandbottomto accommodate more scenes.
In addition, our Ant Design Pro 2.0.0 version has also been released simultaneously, please see our release note for details.
Bugfix/Feature
- 🌟 Added Model.open for optional icon dialog. #11982 @hsiehjack
- 🌟 Modal.info adds the configuration of
getContainer. #11377 - 🌟 Improve RangePicker footer UI by merging them.
- 🌟 The Anchor component adds
onClickproperty. #11898 - 🌟 The Tab component adds the
renderTabBarproperty. #11856 - 🌟 The Input component adds the
selectmethod. #11906 - 🌟 Steps adds the
initialattribute. #11180 - 🐞 Fixed Steps dot style broken.
- 🐞 Fixed an issue where setting fontSize in the
headStyleof the Card does not work. #11995 - 🐞 Fixed an issue where the Button component wave animation was mix up. #11985
- 🐞 Fixed an issue where the Modal.confirm setting
centeredattribute didn't work. #11969 - 🐞 Fixed an issue where setting the
suffixandprefixof the second Input in thecompactmode of Input.Group would cause the right border to disappear. #11965 - 🐞 Fixed an issue where Upload components might cause misplaced images when uploading many images. #11183
- 🐞 Fixed MonthPicker
renderExtraFooternot working. #8184
在开学之际我们带来了久违的 3.9.0 的更新。多个重量级的新特性和大量修复,使 Ant Design 的能力显著提升。
- 🔥🔥🔥 在
3.9.0版本中,我们重绘了所有的图标,新增了两大类,超过 90 个新图标,并且为每个图标增加了多种风格。为此我们重写了 Icon 组件,使用SVG替换了fontface图标,增加了多个特性,可以快速的使用新的图标和风格。
- 💄 使用
SVG图标替换了css字体图标,可以看这里的讨论了解 svg 的优势。 - 💄 提供了三套图标风格线性、实色和双色图标,默认为线性风格。
- 🌟 新增了 编辑类 和 数据类 两个新类别。
- 🌟 新增
theme属性,可以设置图标的主题风格。#11971 - 🌟 新增
component属性,可以外部传入一个组件来自定义控制渲染结果。#11322 - 🌟 新增
twoToneColor属性,可以控制双色图标的主题色。#11971 - 🌟 新增静态方法
Icon.getTowToneColor()和Icon.setTwoToneColor(...),可以全局性的获取和设置所有双色图标的主题色。#11971 - 🌟 新增静态方法
Icon.createFromIconfontCN({...}),可以更加方便地使用iconfont.cn上托管的图标。更多用法请参阅 Ant Design Pro - 业务图标 的介绍。#11322
- 💄 使用
- 🔥 增加了一个新组件 Skeleton。
- 🔥 Menu 在
horizontal模式下会自动收起来适应宽度。 - 🔥 Drawer 的
placement支持top和bottom,可以适应更多场景。
另外我们的 Ant Design Pro 2.0.0 也已同步发布,详细内容请看 pro 2.0 发布日志。
组件修复/功能增强
- 🌟 新增 Model.open 方法,用于可自定义图标的快捷对话框。#11982 @hsiehjack
- 🌟 Modal.info 增加
getContainer的配置。#11377 - 🌟 合并优化了 RangePicker 的日历页脚 UI。
- 🌟 Anchor 组件增加
onClick属性。#11898 - 🌟 Tab 组件增加
renderTabBar属性。#11856 - 🌟 Input 组件增加
select方法。#11906 - 🌟 Steps 增加
initial属性。#11180 - 🐞 修复 Steps 点状步骤条样式错位的问题。7d59075
- 🐞 修复在 Card 的
headStyle中设置 fontSize 不生效的问题。#11995 - 🐞 修复了 Button 组件波浪动画混淆的问题。#11985
- 🐞 修复了 Modal.confirm 设置
centered属性无效的问题。#11969 - 🐞 修复了在 Input.Group 的
compact模式下设置第二个 Input 的前后缀会造成右边框消失的问题。 #11965 - 🐞 修复 Upload 组件上传图片较多时可能会造成图片错位的问题。#11183
- 🐞 修复 MonthPicker
renderExtraFooter失效的问题。#8184