npm ng-zorro-antd 1.7.0

latest releases: 20.3.1, 20.3.0, 20.2.1...
6 years ago

Note for SVG icon

After 1.7.0 version,we synced to Ant Design 3.9.x and replaced font icons with svg icons which bring benefits below:

  • Complete offline usage of icon, no dependency of alipay cdn font icon file and no more empty square during downloading than no need to deploy icon font files locally either.
  • Much more display accuracy in lower-level screens.
  • Support multiple colors for icon.
  • No need to change built-in icons with overriding styles by providing more props in component.

We make the old API compatible to this new component. You don't need to change your code but some configuration is required perhaps. You can find more about Icon API in section "SVG icon" and "Static loading and dynamic loading".

Bug Fixes

  • tabs: hide next and prev buttons when nzTabPosition is left or right (#2239) (3bb8be5)
  • breadcrumb: navigate within angular (#2283) (0c41306), closes #2254
  • button: fix button loading bug (#2251) (cb71e9b), closes #2191
  • cascader: fix error when nzOptions change and in search mode (#2241) (c3c2d26), closes #2105
  • cascader: fix support to nzLabelProperty (#2231) (37523c8), closes #2103
  • date-picker: fix the calendar not shown up when click on the icon (#2235) (8ffcfac), closes #2221
  • date-picker: use fixed width when "nzShowTime" settled for picker (#2236) (463a14c)
  • icon: fix broken icons (#2248) (e0d9987)
  • icon: fix icon classname writeback (#2259) (c6337c2)
  • list: fix does not trigger change detection correctly when from empty array to data array (#2199) (92c1a85)
  • select: fix space closing select panel (#2240) (3d7fe39), closes #2201
  • select,tree-select: prevent pop the dropdown when click remove (#2290) (4fa9367), closes #2276
  • spin: fix cdk change detection (#2255) (25671b6), closes #1819
  • table: fix filter table header in ant design 3.10 (#2260) (ebf151a)
  • upload: fix only allow type is picture or picture-card generate thumbnail (#2219) (8306111), closes #2216

Features


SVG icon 升级指南

在 1.7.0 版本后,我们与 Ant Design 3.9.x 同步,使用了 svg 图标替换了原先的 font 图标,从而带来了以下优势:

  • 可以离线化使用,不需要从支付宝 cdn 下载字体文件,图标不会因为网络问题呈现方块,也无需字体文件本地部署。
  • 在低端设备上 svg 有更好的清晰度。
  • 支持多色图标。
  • 对于内建图标的更换可以提供更多 API,而不需要进行样式覆盖。

我们尽可能地在不增加包体积的前提下对旧的 API 进行了兼容,你无需修改代码,但可能需要进行一些配置。关于 icon 的更多信息,请阅读 Icon API 的“SVG 图标”“静态加载与动态加载”两节。

Bug Fixes

Features

Don't miss a new ng-zorro-antd release

NewReleases is sending notifications on new releases.