Skip to content

Commit b6cf8fe

Browse files
authored
release(7.2.0): release 7.2.0 (#3180)
* release(7.2.0): release 7.2.0 * fix(module:menu): fix style
1 parent fbfb4da commit b6cf8fe

13 files changed

Lines changed: 79 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# [7.2.0](https://github.com/NG-ZORRO/ng-zorro-antd/compare/7.1.0...7.2.0) (2019-03-27)
2+
3+
4+
### Bug Fixes
5+
6+
* **affix:** set correct style of Affix after trigger resize ([#3089](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3089)) ([ff482e0](https://github.com/NG-ZORRO/ng-zorro-antd/commit/ff482e0)), closes [#3040](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3040)
7+
* fix type of some API ([#3166](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3166)) ([c685836](https://github.com/NG-ZORRO/ng-zorro-antd/commit/c685836))
8+
* **breadcrumb:** fix auto generate not working in lazy modules ([#3174](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3174)) ([4260a40](https://github.com/NG-ZORRO/ng-zorro-antd/commit/4260a40)), closes [#2538](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2538)
9+
* **dropdown:** fix the style of CDK conflicts ([#3133](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3133)) ([a9cd84d](https://github.com/NG-ZORRO/ng-zorro-antd/commit/a9cd84d)), closes [#3075](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3075)
10+
* **progress:** should not set success when success percent is … ([#3135](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3135)) ([f85c766](https://github.com/NG-ZORRO/ng-zorro-antd/commit/f85c766))
11+
* **transfer:** fix invalid trigger checked event in blank area ([#3161](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3161)) ([92097b2](https://github.com/NG-ZORRO/ng-zorro-antd/commit/92097b2)), closes [#3160](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3160) [#3159](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3159)
12+
* **upload:** fix missing remove event when type is drag ([#3114](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3114)) ([2b1fdd9](https://github.com/NG-ZORRO/ng-zorro-antd/commit/2b1fdd9)), closes [#3034](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3034) [#3139](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3139) [#3171](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3171)
13+
14+
15+
### Features
16+
17+
* **collapse:** support `nzExtra` ([#3177](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3177)) ([fbfb4da](https://github.com/NG-ZORRO/ng-zorro-antd/commit/fbfb4da))
18+
* **menu:** support `nzMenuClassName` for the submenu ([#3176](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3176)) ([15b6724](https://github.com/NG-ZORRO/ng-zorro-antd/commit/15b6724))
19+
* **page-header:** add page-header component ([#2732](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2732)) ([cf51c1f](https://github.com/NG-ZORRO/ng-zorro-antd/commit/cf51c1f)), closes [#2710](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2710)
20+
* **schematics:** do not set boot page when the target file is modified ([#3178](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3178)) ([0a3f62c](https://github.com/NG-ZORRO/ng-zorro-antd/commit/0a3f62c))
21+
22+
23+
124
# [7.1.0](https://github.com/NG-ZORRO/ng-zorro-antd/compare/7.0.3...7.1.0) (2019-03-21)
225

326

components/menu/nz-submenu.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export class NzSubMenuComponent implements OnInit, OnDestroy, AfterContentInit,
8181

8282
private destroy$ = new Subject<void>();
8383
private isChildMenuSelected = false;
84+
private isMouseHover = false;
8485

8586
setOpenState(open: boolean): void {
8687
this.nzSubmenuService.setOpenState(open);
@@ -93,6 +94,8 @@ export class NzSubMenuComponent implements OnInit, OnDestroy, AfterContentInit,
9394
}
9495

9596
setMouseEnterState(value: boolean): void {
97+
this.isMouseHover = value;
98+
this.setClassMap();
9699
this.nzSubmenuService.setMouseEnterState(value);
97100
}
98101

@@ -114,7 +117,8 @@ export class NzSubMenuComponent implements OnInit, OnDestroy, AfterContentInit,
114117
[`${prefixName}-disabled`]: this.nzDisabled,
115118
[`${prefixName}-open`]: this.nzOpen,
116119
[`${prefixName}-selected`]: this.isChildMenuSelected,
117-
[`${prefixName}-${this.nzSubmenuService.mode}`]: true
120+
[`${prefixName}-${this.nzSubmenuService.mode}`]: true,
121+
[`${prefixName}-active`]: this.isMouseHover && !this.nzDisabled
118122
});
119123
}
120124

components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-zorro-antd",
3-
"version": "7.1.0",
3+
"version": "7.2.0",
44
"license": "MIT",
55
"description": "An enterprise-class UI components based on Ant Design and Angular",
66
"schematics": "./schematics/collection.json",

components/select/demo/automatic-tokenization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Component, OnInit } from '@angular/core';
1010
})
1111
export class NzDemoSelectAutomaticTokenizationComponent implements OnInit {
1212
listOfOption: Array<{ label: string; value: string }> = [];
13-
listOfTagOptions = [];
13+
listOfTagOptions = null;
1414

1515
ngOnInit(): void {
1616
const children: Array<{ label: string; value: string }> = [];

components/select/demo/custom-content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ import { Component } from '@angular/core';
1111
`
1212
})
1313
export class NzDemoSelectCustomContentComponent {
14-
selectedOS = '';
14+
selectedOS = null;
1515
}

components/select/demo/scroll-load.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { map } from 'rxjs/operators';
3030
export class NzDemoSelectScrollLoadComponent implements OnInit {
3131
randomUserUrl = 'https://api.randomuser.me/?results=10';
3232
optionList: string[] = [];
33-
selectedUser = '';
33+
selectedUser = null;
3434
isLoading = false;
3535
// tslint:disable:no-any
3636
getRandomNameList: Observable<string[]> = this.http

components/select/demo/search-box.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { Component } from '@angular/core';
1919
`
2020
})
2121
export class NzDemoSelectSearchBoxComponent {
22-
selectedValue = '';
22+
selectedValue = null;
2323
listOfOption: Array<{ value: string; text: string }> = [];
2424
nzFilterOption = () => true;
2525

components/select/demo/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ import { Component } from '@angular/core';
1717
`
1818
})
1919
export class NzDemoSelectSearchComponent {
20-
selectedValue = '';
20+
selectedValue = null;
2121
}

components/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { Version } from '@angular/core';
22

3-
export const VERSION = new Version('7.1.0');
3+
export const VERSION = new Version('7.2.0');

docs/changelog.en-US.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,27 @@ timeline: true
1414

1515
---
1616

17+
## 7.2.0
18+
`2019-03-27`
19+
20+
### Bug Fixes
21+
22+
* **affix:** set correct style of Affix after trigger resize ([#3089](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3089)) ([ff482e0](https://github.com/NG-ZORRO/ng-zorro-antd/commit/ff482e0)), closes [#3040](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3040)
23+
* fix type of some API ([#3166](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3166)) ([c685836](https://github.com/NG-ZORRO/ng-zorro-antd/commit/c685836))
24+
* **breadcrumb:** fix auto generate not working in lazy modules ([#3174](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3174)) ([4260a40](https://github.com/NG-ZORRO/ng-zorro-antd/commit/4260a40)), closes [#2538](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2538)
25+
* **dropdown:** fix the style of CDK conflicts ([#3133](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3133)) ([a9cd84d](https://github.com/NG-ZORRO/ng-zorro-antd/commit/a9cd84d)), closes [#3075](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3075)
26+
* **progress:** should not set success when success percent is … ([#3135](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3135)) ([f85c766](https://github.com/NG-ZORRO/ng-zorro-antd/commit/f85c766))
27+
* **transfer:** fix invalid trigger checked event in blank area ([#3161](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3161)) ([92097b2](https://github.com/NG-ZORRO/ng-zorro-antd/commit/92097b2)), closes [#3160](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3160) [#3159](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3159)
28+
* **upload:** fix missing remove event when type is drag ([#3114](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3114)) ([2b1fdd9](https://github.com/NG-ZORRO/ng-zorro-antd/commit/2b1fdd9)), closes [#3034](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3034) [#3139](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3139) [#3171](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3171)
29+
30+
31+
### Features
32+
33+
* **collapse:** support `nzExtra` ([#3177](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3177)) ([fbfb4da](https://github.com/NG-ZORRO/ng-zorro-antd/commit/fbfb4da))
34+
* **menu:** support `nzMenuClassName` for the submenu ([#3176](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3176)) ([15b6724](https://github.com/NG-ZORRO/ng-zorro-antd/commit/15b6724))
35+
* **page-header:** add page-header component ([#2732](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2732)) ([cf51c1f](https://github.com/NG-ZORRO/ng-zorro-antd/commit/cf51c1f)), closes [#2710](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2710)
36+
* **schematics:** do not set boot page when the target file is modified ([#3178](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3178)) ([0a3f62c](https://github.com/NG-ZORRO/ng-zorro-antd/commit/0a3f62c))
37+
1738
## 7.1.0
1839
`2019-03-21`
1940

0 commit comments

Comments
 (0)