Releases: NG-ZORRO/ng-zorro-antd
7.0.0-rc.0
NO BREAK CHANGES
ng-zorro-antd
will track the major version of @angular/core
from 7.0.0-rc.0
like other angular libraries.
- Support Angular 7.0
- Work with latest
@angular/cdk
- Support OnPush in some components
- Support SSR in some components
- Fix some bugs
We are still working on it now, you can track this issue to get more information.
该版本不包含任何破坏性更新
从这个版本开始,ng-zorro-antd
将和其他 Angular 第三方库一样,保持与 Angular 的主版本号一致。当前版本已经完成了
- 支持 Angular 7.0
- 使用了 Angular CDK 7.0 的最新特性
- 部分组件支持 OnPush
- 部分组件支持了 SSR 的功能
- 修复了部分 Bug
整体的工作仍然还在推进之中,用户可以通过追踪相关 ISSUE 来获得最新的进度更新。
1.8.1
Bug Fixes
- collapse: can't fold up active panel with accordion (#2440) (a17ea49), closes #2437
- list: fix invalid render empty style when unspecified data source (#2415) (7ae325f), closes #2385
- menu: fix dropdown menu item selected className (#2434) (e6e2369), closes #2433
- menu: fix fold menu (#2454) (e41640a), closes #2449
Features
Bug Fixes
- collapse: 修复手风琴面板无法完全折叠的问题 (#2440) (a17ea49), closes #2437
- list: 修复未指定 data source 时空样式的错误 (#2415) (7ae325f), closes #2385
- menu: 修复类名问题 (#2434) (e6e2369), closes #2433
- menu: 修复菜单折叠问题 (#2454) (e41640a), closes #2449
Features
1.8.0
Bug Fixes
- calendar: fix calendar year picker (#2355) (a4a948c), closes #2351
- esm5: fix esm5 package (#2357) (e06b9a7), closes #2339
- layout: fix layout init breakpoint nzCollapsed value (#2350) (8f58fae), closes #2343
- menu: fix menu level 4 padding error (#2356) (7906066), closes #2327
- spin: fix spin hang error with submenu (#2352) (65fc10a), closes #2346
- tree: fix icon to svg & draggable event listener (#2338) (8bc488e), closes #2332 #2205 #2336
- tree-select: can't work default values in OnPush mode (#2364) (04cf7aa), closes #2318 #2085
Features
- icon: add injectiontoken config and default twotone color (#2353) (bea1d05)
- list: list empty style (#2365) (e2d09a0), closes #2362
Performance Improvements
Bug Fixes
- calendar: 修复年份选择器的问题 (#2355) (a4a948c), closes #2351
- esm5: 修复 esm5 格式发布包的使用问题 (#2357) (e06b9a7), closes #2339
- layout: 修复初始化时的 breakpoint 触发 nzCollapsed 问题 (#2350) (8f58fae), closes #2343
- menu: 修复深层级菜单问题 (#2356) (7906066), closes #2327
- spin: 修复 submenu 在 spin 下的问题 (#2352) (65fc10a), closes #2346
- tree: 修复 icon 问题及拖拽性能问题 (#2338) (8bc488e), closes #2332 #2205 #2336
- tree-select: 修复在 OnPush 下的问题(#2364) (04cf7aa), closes #2318 #2085
Features
Performance Improvements
1.7.1
1.7.0
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
- icon: switch to SVG icons (#2171) (7bdb79b)
- modal: auto focus when open and restore focus when close (#2188) (7c0ced4), closes #2124
- schematics: add fix icon schematic (#2238) (8861beb)
SVG icon 升级指南
在 1.7.0 版本后,我们与 Ant Design 3.9.x 同步,使用了 svg 图标替换了原先的 font 图标,从而带来了以下优势:
- 可以离线化使用,不需要从支付宝 cdn 下载字体文件,图标不会因为网络问题呈现方块,也无需字体文件本地部署。
- 在低端设备上 svg 有更好的清晰度。
- 支持多色图标。
- 对于内建图标的更换可以提供更多 API,而不需要进行样式覆盖。
我们尽可能地在不增加包体积的前提下对旧的 API 进行了兼容,你无需修改代码,但可能需要进行一些配置。关于 icon 的更多信息,请阅读 Icon API 的“SVG 图标”和“静态加载与动态加载”两节。
Bug Fixes
- tabs: 修复 pre next 按钮 (#2239) (3bb8be5)
- breadcrumb: 修复 routerLink (#2283) (0c41306), closes #2254
- button: 修复 loading 问题 (#2251) (cb71e9b), closes #2191
- cascader: 修复 nzOption 变化时的问题 (#2241) (c3c2d26), closes #2105
- cascader: 支持 nzLabelProperty (#2231) (37523c8), closes #2103
- date-picker: 修复点击 icon 不展开的问题 (#2235) (8ffcfac), closes #2221
- date-picker: 修复 nzShowTime 时样式问题 (#2236) (463a14c)
- icon: 修复 ICON 问题 (#2248) (e0d9987)
- icon: 修复 ICON class 问题 (#2259) (c6337c2)
- list: 修复 List 脏值检测问题 (#2199) (92c1a85)
- select: 修复 Select 组件在空格按键下的问题 (#2240) (3d7fe39), closes #2201
- select,tree-select: 修复点击删除时的展开问题 (#2290) (4fa9367), closes #2276
- spin: 修复 CDK 下的脏值检测问题 (#2255) (25671b6), closes #1819
- table: 修复 3.10 样式下的问题 (#2260) (ebf151a)
- upload: 修复 上传文件过大导致的崩溃问题 (#2219) (8306111), closes #2216
Features
1.6.0
1.6.0
2018-09-22
Bug Fixes
- date-picker: fix year-picker and month-picker style error within compacted input group (#2136) (049212f)
- calendar: fix calendar year list (#2140) (e485d02), closes #2091
- cascader: search correctly when a root node is a leaf node (#2108) (28556e4), closes #2104
- drawer: drawer content cannot scroll (#2120) (e8dad8f), closes #2119
- steps: fix dynamic steps error (#2149) (ee3fa7e), closes #2148
- publish: add version number validation and rename script (#2117) (bc1f6fa)
- schematics: compatibility with Angular CLI 6.2.0 (#2131) (ac428db)
- test: fix test coverage dependency (#2146) (310771f)
- upload: fix typo (#2173) (69c5210)
Features
- drawer: support service to create drawer (#1981) (a232d59), closes #1937
- upload: add directory support (#2164) (3ef8bcf), closes #2167 #2154
- tree: support more functions & property (#2121)
- skeleton: add skeleton component (#1829)
Build
- build: use ng-packagr to generate library (#2126)
Performance Improvements
Bug Fixes
- date-picker: 修复在 input group 中的样式问题 (#2136) (049212f)
- calendar: 修复年份列表选择器的问题 (#2140) (e485d02), closes #2091
- cascader: 修复搜索问题 (#2108) (28556e4), closes #2104
- drawer: 修复不能滚动问题 (#2120) (e8dad8f), closes #2119
- steps: 修复动态生成问题 (#2149) (ee3fa7e), closes #2148
- publish: 增加版本校验 (#2117) (bc1f6fa)
- schematics: 修复与 Angular CLI 6.2.0 的兼容问题 (#2131) (ac428db)
- test: 修复覆盖率问题 (#2146) (310771f)
- upload: 修复提示错误 (#2173) (69c5210)
Features
- drawer: 支持使用 service 创建 drawer (#1981) (a232d59), closes #1937
- upload: 支持文件夹上传 (#2164) (3ef8bcf), closes #2167 #2154
- tree: 支持更多常用属性,简化用法 (#2121)
- skeleton: 增加 skeleton 组件 (#1829)
Build
- build: 打包器切换至 ng-packagr (#2126)
Performance Improvements
1.5.0
1.5.0
2018-09-09
Bug Fixes
- drawer: provide custom scroll strategy (#2095) (b993068), closes #2070
- modal: fix generic type of the "nzComponentParams" for user to gain more type intellisense (#1812) (6ef1185)
Features
- breadcrumb: support auto generated breadcrumb (#2050) (64d191c), closes #2001
- button: support block style (#2051) (2858ba1), closes #2047
- drawer: support top and bottom placement (#2039) (693b4eb), closes #2015
- modal: support customized modal config (current "autoBodyPadding") (#2006) (1d5e06c), closes #1720
- select: support open and close panel via keyboard (#2038) (b2ea96a), closes #1909
- steps: support customized starting index (#2021) (bc7bf17), closes #1994
- publish: add publish script (#1979) (98cb651), closes #1925
Bug Fixes
- drawer: 修复 Drawer 组件弹出导致body出现滚动条问题 (#2095) (b993068), closes #2070
- modal: 修复 nzComponentParams 类型支持 (#1812) (6ef1185)
Features
- breadcrumb: 支持通过配置
router.data
自动生成面包屑 (#2050) (64d191c), closes #2001 - button: 支持将按钮宽度调整为其父宽度的选项 (#2051) (2858ba1), closes #2047
- drawer: 支持从自定义位置弹出 (#2039) (693b4eb), closes #2015
- modal: 支持自定义 NZ_MODAL_CONFIG (当前包含属性 "autoBodyPadding") (#2006) (1d5e06c), closes #1720
- select: 支持键盘激活 select 弹出选项 (#2038) (b2ea96a), closes #1909
- steps: 支持自定义开始步骤 (#2021) (bc7bf17), closes #1994
- publish: 自动发布脚本 (#1979) (98cb651), closes #1925
1.4.1
1.4.1
2018-09-02
Bug Fixes
- auto-complete: can't select option when touch (#2054) (2e8e63d), closes #2053
- modal: close modal itself before destructing by the angular's lifecycle (#1769) (075c7a4), closes #1663
- pagination: take minimum of page range and total (#2046) (30bccd1), closes #2036
- table: fix row spaces (#2061) (cb34983), closes #2059
- tree-select: unable close when used OnPush (#2028) (fb83354), closes #2012
Bug Fixes
- auto-complete: 修复移动端不能选择选项的问题 (#2054) (2e8e63d), closes #2053
- modal: 修复 modal 可能在 Angular 生命周期结束之前被关闭的问题 (#1769) (075c7a4), closes #1663
- pagination: 修复 pagination 显示范围的问题 (#2046) (30bccd1), closes #2036
- table: 修复第一行 margin 的问题 (#2061) (cb34983), closes #2059
- tree-select: 修复在使用 OnPush 策略的情况下无法关闭的问题 (#2028) (fb83354), closes #2012
1.4.0
1.4.0
2018-08-19
Bug Fixes
- avatar: tolerate error src (#2008) (d55cdf2)
- carousel: carousel on desktop can't slide images (#1970) (02a84a9)
- cascader: fix dynamic loading error (#1931) (d4d24fb), closes #1927
- cascader: should not change on hover work (#1991) (577ae47), closes #1966
- select: fix input not blur after user hits enter key (#1943) (a64d04c), closes #1940
- tooltip,popconfirm,popover: not create element when use directive (#1968) (fa40145), closes #1967
- tree-select: update selected nodes when after set nodes (#1946) (cd928e1), closes #1934
- tree: fix loading style (#1942) (19fc2ee)
Features
- modal: smart to determine whether to add padding-right (#1877) (a5d631d), closes #1422
- timeline: custom circle color (#1959) (fb3daa1), closes #1956
Bug Fixes
- avatar: 修复 src 错误时无法更新的问题 (#2008) (d55cdf2)
- carousel: 修复桌面端无法滑动图像的问题 (#1970) (02a84a9)
- cascader: 修复无法动态加载的问题 (#1931) (d4d24fb), closes #1927
- cascader: 修复 hover 触发 onChange 的问题 (#1991) (577ae47), closes #1966
- select: 修复使用 enter 选择后无法聚焦的问题 (#1943) (a64d04c), closes #1940
- tooltip,popconfirm,popover: 修复 directive 模式下创建元素引起的问题 (#1968) (fa40145), closes #1967
- tree-select: 修复设置 nodes 后没有更新选择框内容的问题 (#1946) (cd928e1), closes #1934
- tree: 修复 loading 样式 (#1942) (19fc2ee)
Features
1.3.0
1.3.0
2018-08-03
Bug Fixes
- auto-complete: reposition when open the first time (#1863) (c80bc8d), closes #1840
- date-picker: restrict the date when it overflows at the month panel (#1903) (3c654a5), closes #1899
Features
- cascader: add cascader search (#1873) (633bc87), closes #1773
- date-picker: refactoring and add new feature of year-picker (#1906) (f1f5625), closes #416
- drawer: add drawer component (#1789) (33aff47), closes #1565
- radio: add solid button style (#1892) (945a924), closes #1891
- table: support default filter (#1893) (cea0e51), closes #1872
Bug Fixes
- auto-complete: 修复第一次打开时的位置问题 (#1863) (c80bc8d), closes #1840
- date-picker: 修复 31 号时月份选择问题 (#1903) (3c654a5), closes #1899