Skip to content

Commit 3e0e319

Browse files
author
simplejason
authored
release(7.1.0): release 7.1.0 (#3131)
* release(7.1.0): release 7.1.0 * fix(module: scripts): fix publish script fix(module: tree): fix demo viewchild
1 parent c917938 commit 3e0e319

11 files changed

Lines changed: 101 additions & 32 deletions

File tree

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
# [7.1.0](https://github.com/NG-ZORRO/ng-zorro-antd/compare/7.0.3...7.1.0) (2019-03-21)
2+
3+
4+
### Bug Fixes
5+
6+
* **tree:** fix nzMultiple and rollback code ([#3060](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3060)) ([c917938](https://github.com/NG-ZORRO/ng-zorro-antd/commit/c917938)), closes [#3076](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3076)
7+
* **cascader:** fix columns not dropped ([#3037](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3037)) ([72a9e67](https://github.com/NG-ZORRO/ng-zorro-antd/commit/72a9e67)), closes [#3034](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3034)
8+
* **date-picker:** export `year-picker` component ([#3125](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3125)) ([c5b0af9](https://github.com/NG-ZORRO/ng-zorro-antd/commit/c5b0af9))
9+
* **modal:** integrate with tabs and autosize ([#3065](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3065)) ([4cab26f](https://github.com/NG-ZORRO/ng-zorro-antd/commit/4cab26f)), closes [#2286](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2286) [#2713](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2713)
10+
* **modal:** simple confirm should not have cancel button ([#3115](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3115)) ([f0a2b51](https://github.com/NG-ZORRO/ng-zorro-antd/commit/f0a2b51)), closes [#3107](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3107)
11+
* **tooltip:** fix tooltip not render after set ([#3091](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3091)) ([2841a2f](https://github.com/NG-ZORRO/ng-zorro-antd/commit/2841a2f))
12+
13+
14+
### Features
15+
16+
* **message:** support `nzTop` ([#3047](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3047)) ([351135b](https://github.com/NG-ZORRO/ng-zorro-antd/commit/351135b)), closes [#3041](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3041)
17+
* **message:** support template ([#3102](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3102)) ([d3f6655](https://github.com/NG-ZORRO/ng-zorro-antd/commit/d3f6655)), closes [#3081](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3081)
18+
19+
20+
121
## [7.0.3](https://github.com/NG-ZORRO/ng-zorro-antd/compare/7.0.2...7.0.3) (2019-03-14)
222

323

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.0.3",
3+
"version": "7.1.0",
44
"license": "MIT",
55
"description": "An enterprise-class UI components based on Ant Design and Angular",
66
"schematics": "./schematics/collection.json",

components/tree/demo/basic.ts

Lines changed: 36 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,50 @@ import { NzFormatEmitEvent, NzTreeComponent, NzTreeNodeOptions } from 'ng-zorro-
55
selector: 'nz-demo-tree-basic',
66
template: `
77
<nz-tree
8+
#nzTreeComponent
89
[nzData]="nodes"
910
nzCheckable
1011
[nzCheckedKeys]="defaultCheckedKeys"
1112
[nzExpandedKeys]="defaultExpandedKeys"
1213
[nzSelectedKeys]="defaultSelectedKeys"
1314
(nzClick)="nzClick($event)"
1415
(nzCheckBoxChange)="nzCheck($event)"
15-
(nzExpandChange)="nzCheck($event)">
16+
(nzExpandChange)="nzCheck($event)"
17+
>
1618
</nz-tree>
1719
`
1820
})
19-
2021
export class NzDemoTreeBasicComponent implements OnInit, AfterViewInit {
21-
@ViewChild(NzTreeComponent) nzTreeComponent: NzTreeComponent;
22-
defaultCheckedKeys = [ '10020' ];
23-
defaultSelectedKeys = [ '10010' ];
24-
defaultExpandedKeys = [ '100', '1001' ];
22+
@ViewChild('nzTreeComponent') nzTreeComponent: NzTreeComponent;
23+
defaultCheckedKeys = ['10020'];
24+
defaultSelectedKeys = ['10010'];
25+
defaultExpandedKeys = ['100', '1001'];
2526

26-
nodes: NzTreeNodeOptions[] = [ {
27-
title : 'parent 1',
28-
key : '100',
29-
children: [ {
30-
title : 'parent 1-0',
31-
key : '1001',
32-
disabled: true,
33-
children: [
34-
{ title: 'leaf 1-0-0', key: '10010', disableCheckbox: true, isLeaf: true },
35-
{ title: 'leaf 1-0-1', key: '10011', isLeaf: true }
36-
]
37-
}, {
38-
title : 'parent 1-1',
39-
key : '1002',
27+
nodes: NzTreeNodeOptions[] = [
28+
{
29+
title: 'parent 1',
30+
key: '100',
4031
children: [
41-
{ title: 'leaf 1-1-0', key: '10020', isLeaf: true },
42-
{ title: 'leaf 1-1-1', key: '10021', isLeaf: true }
32+
{
33+
title: 'parent 1-0',
34+
key: '1001',
35+
disabled: true,
36+
children: [
37+
{ title: 'leaf 1-0-0', key: '10010', disableCheckbox: true, isLeaf: true },
38+
{ title: 'leaf 1-0-1', key: '10011', isLeaf: true }
39+
]
40+
},
41+
{
42+
title: 'parent 1-1',
43+
key: '1002',
44+
children: [
45+
{ title: 'leaf 1-1-0', key: '10020', isLeaf: true },
46+
{ title: 'leaf 1-1-1', key: '10021', isLeaf: true }
47+
]
48+
}
4349
]
44-
} ]
45-
} ];
50+
}
51+
];
4652

4753
nzClick(event: NzFormatEmitEvent): void {
4854
console.log(event);
@@ -65,6 +71,11 @@ export class NzDemoTreeBasicComponent implements OnInit, AfterViewInit {
6571
// get node by key: '10011'
6672
console.log(this.nzTreeComponent.getTreeNodeByKey('10011'));
6773
// use tree methods
68-
console.log(this.nzTreeComponent.getTreeNodes(), this.nzTreeComponent.getCheckedNodeList(), this.nzTreeComponent.getSelectedNodeList(), this.nzTreeComponent.getExpandedNodeList());
74+
console.log(
75+
this.nzTreeComponent.getTreeNodes(),
76+
this.nzTreeComponent.getCheckedNodeList(),
77+
this.nzTreeComponent.getSelectedNodeList(),
78+
this.nzTreeComponent.getExpandedNodeList()
79+
);
6980
}
7081
}

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.0.3');
3+
export const VERSION = new Version('7.1.0');

docs/animations.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Add the nzNoAnimation property to the component that wants to close the animatio
2525

2626
```HTML
2727
<nz-modal nzNoAnimation></nz-modal>
28-
<ul nz-menu nzNoAnimation></nz-menu>
28+
<ul nz-menu nzNoAnimation></ul>
2929
<nz-form-explain [nzNoAnimation]="true"></nz-form-explain>
3030
```
3131

docs/animations.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ NG-ZORRO 允许开发者关闭动画效果,您可以通过添加对应指令
2424

2525
```HTML
2626
<nz-modal nzNoAnimation></nz-modal>
27-
<ul nz-menu nzNoAnimation></nz-menu>
27+
<ul nz-menu nzNoAnimation></ul>
2828
<nz-form-explain [nzNoAnimation]="true"></nz-form-explain>
2929
```
3030

docs/changelog.en-US.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,25 @@ timeline: true
1313
* Major version release is not included in this schedule for breaking change and new features.
1414

1515
---
16+
17+
## 7.1.0
18+
`2019-03-21`
19+
20+
### Bug Fixes
21+
22+
* **tree:** fix nzMultiple and rollback code ([#3060](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3060)) ([c917938](https://github.com/NG-ZORRO/ng-zorro-antd/commit/c917938)), closes [#3076](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3076)
23+
* **cascader:** fix columns not dropped ([#3037](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3037)) ([72a9e67](https://github.com/NG-ZORRO/ng-zorro-antd/commit/72a9e67)), closes [#3034](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3034)
24+
* **date-picker:** export `year-picker` component ([#3125](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3125)) ([c5b0af9](https://github.com/NG-ZORRO/ng-zorro-antd/commit/c5b0af9))
25+
* **modal:** integrate with tabs and autosize ([#3065](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3065)) ([4cab26f](https://github.com/NG-ZORRO/ng-zorro-antd/commit/4cab26f)), closes [#2286](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2286) [#2713](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2713)
26+
* **modal:** simple confirm should not have cancel button ([#3115](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3115)) ([f0a2b51](https://github.com/NG-ZORRO/ng-zorro-antd/commit/f0a2b51)), closes [#3107](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3107)
27+
* **tooltip:** fix tooltip not render after set ([#3091](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3091)) ([2841a2f](https://github.com/NG-ZORRO/ng-zorro-antd/commit/2841a2f))
28+
29+
30+
### Features
31+
32+
* **message:** support `nzTop` ([#3047](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3047)) ([351135b](https://github.com/NG-ZORRO/ng-zorro-antd/commit/351135b)), closes [#3041](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3041)
33+
* **message:** support template ([#3102](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3102)) ([d3f6655](https://github.com/NG-ZORRO/ng-zorro-antd/commit/d3f6655)), closes [#3081](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3081)
34+
1635
## 7.0.3
1736
`2019-03-14`
1837

docs/changelog.zh-CN.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,25 @@ timeline: true
1313
* 主版本号:含有破坏性更新和新特性,不在发布周期内。
1414

1515
---
16+
17+
## 7.1.0
18+
`2019-03-21`
19+
20+
### Bug Fixes
21+
22+
* **tree:** 修复 `nzMultiple` 及 其他兼容性问题 ([#3060](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3060)) ([c917938](https://github.com/NG-ZORRO/ng-zorro-antd/commit/c917938)), closes [#3076](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3076)
23+
* **cascader:** 修复 column 未收起问题 ([#3037](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3037)) ([72a9e67](https://github.com/NG-ZORRO/ng-zorro-antd/commit/72a9e67)), closes [#3034](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3034)
24+
* **date-picker:** 导出 `year-picker` 组件 ([#3125](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3125)) ([c5b0af9](https://github.com/NG-ZORRO/ng-zorro-antd/commit/c5b0af9))
25+
* **modal:** 修复 `tabs``autosize` 的集成问题 ([#3065](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3065)) ([4cab26f](https://github.com/NG-ZORRO/ng-zorro-antd/commit/4cab26f)), closes [#2286](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2286) [#2713](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2713)
26+
* **modal:** `confirm` 类型不应该有取消按钮 ([#3115](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3115)) ([f0a2b51](https://github.com/NG-ZORRO/ng-zorro-antd/commit/f0a2b51)), closes [#3107](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3107)
27+
* **tooltip:** 修复 `tooltip` 动态更新未渲染问题 ([#3091](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3091)) ([2841a2f](https://github.com/NG-ZORRO/ng-zorro-antd/commit/2841a2f))
28+
29+
30+
### Features
31+
32+
* **message:** 支持 `nzTop` 属性 ([#3047](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3047)) ([351135b](https://github.com/NG-ZORRO/ng-zorro-antd/commit/351135b)), closes [#3041](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3041)
33+
* **message:** 支持 `template` 属性 ([#3102](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3102)) ([d3f6655](https://github.com/NG-ZORRO/ng-zorro-antd/commit/d3f6655)), closes [#3081](https://github.com/NG-ZORRO/ng-zorro-antd/issues/3081)
34+
1635
## 7.0.3
1736
`2019-03-14`
1837

scripts/publish/publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function changeVersion() {
110110
.replace(/currentVersion = '.+';/g, `currentVersion = '${version}';`)
111111
);
112112
fs.writeFileSync(codeBoxPath,
113-
fs.readFileSync(codeBoxPath, 'utf-8').replace(/'ng-zorro-antd' +: '.+'/g, `'ng-zorro-antd' : '^${version}'`)
113+
fs.readFileSync(codeBoxPath, 'utf-8').replace(/'ng-zorro-antd'\s*: '.+'/g, `'ng-zorro-antd': '^${version}'`)
114114
);
115115
fs.writeFileSync(zorroVersionPath,
116116
fs.readFileSync(zorroVersionPath, 'utf-8')

scripts/site/_site/doc/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class AppComponent implements OnInit, AfterViewInit {
3939

4040
language = 'zh';
4141
oldVersionList = ['0.5.x', '0.6.x', '0.7.x', '1.8.x'];
42-
currentVersion = '7.0.3';
42+
currentVersion = '7.1.0';
4343

4444
@ViewChild('searchInput') searchInput: ElementRef<HTMLInputElement>;
4545

0 commit comments

Comments
 (0)