7.0.0 (2019-02-28)
Update Guidance
-
Update Angular and other packages to newest versions.
-
Update ng-zorro-antd to 7.0.
Notice
Pay attention to these changes to ensure that your code works as expected:
- All components now work with OnPush strategy. Components with this strategy would not respond to mutations on object properties or array child items, even decorated with @Input(). So you should make all your @Input properties immutable objects. Not only this would ensure your code works correctly but also improve performance if you use immutable objects right. Please checkout our example below.
- We correct the meaning of nzDropdownMatchSelectWidth of Select component. Now it means exactly opposite of the old one.
- If you want to add a button to an input-group in search mode, you should use nzAddOnAfter instead of nzSuffix.
Bug Fixes
- tree: fix animation of expand method (#2989) (5142d18)
- tree: fix remove and clearChildren missing origin (#2995) (41b0e67)
- tree-select: fix nzNodes type (#2992) (c435853)
- affix: fix should reset placeholder size when trigger resize event (#2835) (7068a5e), closes #2818
- all: move hostbinding to constructor to fix angular transition bug (#2895) (e39f6bf)
- anchor: fix called detectChanges when component destroy (#2864) (0e5c937), closes #2860
- cascader: fix children state not changed in async demo (#2985) (b87e8bb), closes #2984
- cascader: fix empty shown when searching value (#2906) (89c94ee), closes #2903
- cascader: fix searching error when nzOptions is an empty … (#2846) (e33cc50), closes #2784
- core: fix the style of CDK conflicts (#2917) (37cf6f3), closes #2874
- drawer: ngOnDestory may called before onInit (#2037) (9bf9299)
- empty: fix locale cannot change dynamically (#2866) (2a2fbca)
- empty: show no empty when use pass null (#2768) (48d5333)
- grid: fix grid responsive (#2915) (ab05619), closes #2908
- i18n: Danish locale is exported and mentioned in i18n docs (6554cf5)
- input: fix antd input style change & input password demo (#2969) (bd03a91), closes #2945 #2956
- radio: children unable to focus in radio label (#2850) (58743b8), closes #2774
- select & module:table: fix table style error & select error (#2987) (0d6fc9e), closes #2983
- slider: fix defaultValue check error (#2986) (c3649bc)
- switch: fix switch error when loading or disabled (#2896) (a67984c), closes #2787
- tooltip: fix setTitle proxy to nzTitle (#2698) (f6dfbd9), closes #2695
- tree: word misspelling(destory -> destroy) (#2914) (a7b4e09)
- tree-select: fix tree-select overlay's index problem (#2764) (599ae1a), closes #2730
Features
- all: support disable animations in every components (#2975) (0d7736e), closes #2401 #2922
- auto-complete: close panel when the trigger element blur (#2916) (1e075f9), closes #2885
- auto-complete,mention,select,tree-select: prevent loss of focus when the options click (#2979) (fcaa6d1), closes #2448
- calendar: sync some changes from ant-design (#2769) (#2963) (35a6f0d), closes #2796
- cascader: reposition cascader when column opens (#2836) (289ba54), closes #2181 #2809
- collapse: add extra field (#2923) (dd0cec2), closes #1911
- collapse: support custom icon (#2783) (a530f80)
- comment: add comment component (#2767) (1d68e44), closes #2731
- date-picker: support nzDisabledDate for year-picker (#2949) (71dda9b), closes #2194
- empty: add empty component (#2722) (8906dff), closes #2711
- i18n: update missing fields in fr_FR(NG-ZORRO#2586) (#2737) (c821d56)
- icon: fix falsy render (#2912) (6dd3cbf), closes #2911
- icon: support rotate (#2891) (07f76af), closes #2888
- icon: update dependency to support namespace (#2641) (a2000fa)
- input: fix *fix icon new api capability (#2841) (3c954cb)
- layout: support zeroTrigger (#2938) (4e4231d), closes #1950 #1951
- message,notification: add close event (#2952) (f2e45ea), closes #2458
- modal: support set
nzOkDisabled
and nzCancelDisabled
(#2856) (fa6a8e9), closes #1838 - notification: support nzData as context in template (#2926) (51940f7), closes #2755
- popconfirm: support custom icon (#2964) (ff030ff), closes #2196
- rate: add tooltip support (#2794) (e121bd3)
- slider: support nzTooltipVisible (#2930) (d3e61d4), closes #2373
- statistic: add statistic and countdown component (#2760) (abb9ae4)
- tabs: support lazy load tabs (#2968) (626a0f4), closes #2716
- tree-select: support set
nzNotFoundContent
(#2740) (d9055f5) - tree-select: support set the max count for tags (#2970) (4081abb), closes #2488
- upload: support with non-image format file preview (#2709) (4c41715)