Skip to content

Commit

Permalink
release(0.7.1): release 0.7.1 (#1520)
Browse files Browse the repository at this point in the history
  • Loading branch information
vthinkxie authored May 24, 2018
1 parent 4f6c266 commit b15d979
Show file tree
Hide file tree
Showing 13 changed files with 69 additions and 19 deletions.
1 change: 0 additions & 1 deletion README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# NG-ZORRO
[![Travis branch](https://img.shields.io/travis/NG-ZORRO/ng-zorro-antd/master.svg?style=flat-square)](https://travis-ci.org/NG-ZORRO/ng-zorro-antd)
[![Codecov](https://img.shields.io/codecov/c/github/NG-ZORRO/ng-zorro-antd/master.svg?style=flat-square)](https://codecov.io/gh/NG-ZORRO/ng-zorro-antd)
[![Gemnasium](https://img.shields.io/gemnasium/NG-ZORRO/ng-zorro-antd.svg?style=flat-square)](https://gemnasium.com/github.com/NG-ZORRO/ng-zorro-antd)
[![npm package](https://img.shields.io/npm/v/ng-zorro-antd.svg?style=flat-square)](https://www.npmjs.org/package/ng-zorro-antd)
[![GitHub Release Date](https://img.shields.io/github/release-date/NG-ZORRO/ng-zorro-antd.svg?style=flat-square)](https://github.com/NG-ZORRO/ng-zorro-antd/releases)
[![Issue Stats](https://img.shields.io/issuestats/i/github/NG-ZORRO/ng-zorro-antd.svg?style=flat-square)](https://github.com/NG-ZORRO/ng-zorro-antd/issues)
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# NG-ZORRO
[![Travis branch](https://img.shields.io/travis/NG-ZORRO/ng-zorro-antd/master.svg?style=flat-square)](https://travis-ci.org/NG-ZORRO/ng-zorro-antd)
[![Codecov](https://img.shields.io/codecov/c/github/NG-ZORRO/ng-zorro-antd/master.svg?style=flat-square)](https://codecov.io/gh/NG-ZORRO/ng-zorro-antd)
[![Gemnasium](https://img.shields.io/gemnasium/NG-ZORRO/ng-zorro-antd.svg?style=flat-square)](https://gemnasium.com/github.com/NG-ZORRO/ng-zorro-antd)
[![npm package](https://img.shields.io/npm/v/ng-zorro-antd.svg?style=flat-square)](https://www.npmjs.org/package/ng-zorro-antd)
[![GitHub Release Date](https://img.shields.io/github/release-date/NG-ZORRO/ng-zorro-antd.svg?style=flat-square)](https://github.com/NG-ZORRO/ng-zorro-antd/releases)
[![Issue Stats](https://img.shields.io/issuestats/i/github/NG-ZORRO/ng-zorro-antd.svg?style=flat-square)](https://github.com/NG-ZORRO/ng-zorro-antd/issues)
Expand Down
6 changes: 3 additions & 3 deletions components/calendar/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ When data is in the form of dates, such as schedules, timetables, prices calenda

## API

**Note:** Some of Calendar's locale are coming from [Angular i18n](https://angular.io/guide/i18n), that should be provided in the file of `main.ts`.
**Note:** Some of Calendar's locale are coming from [Angular i18n](https://angular.io/guide/i18n), that should be provided in the file of `main.ts` or `app.module.ts`.

For example:
```typescript
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
registerLocaleData(zh);
import en from '@angular/common/locales/en';
registerLocaleData(en);
```

```html
Expand Down
2 changes: 1 addition & 1 deletion components/calendar/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ title: Calendar

## API

**注意:**Calendar 的部分 locale 来自于 Angular 自身的[国际化支持](https://angular.io/guide/i18n),需要在 `main.ts`文件中 引入相应的 Angular 语言包。
**注意:**Calendar 的部分 locale 来自于 Angular 自身的[国际化支持](https://angular.io/guide/i18n),需要在 `main.ts` 或者 `app.module.ts` 文件中 引入相应的 Angular 语言包。

例如:
```typescript
Expand Down
4 changes: 2 additions & 2 deletions components/date-picker/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ By clicking the input box, you can select a date from a popup calendar.
For example:
```typescript
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
registerLocaleData(zh);
import en from '@angular/common/locales/en';
registerLocaleData(en);
```

There are four kinds of picker:
Expand Down
34 changes: 34 additions & 0 deletions docs/changelog.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,40 @@ timeline: true

---

## 0.7.1
`2018.05.24`

### Menu
- 修复 `Menu``*ngFor` 使用方式下的问题

### Switch
- 支持用户完全控制 `Switch` 状态

### AutoComplete
- 修复 `nzValue``nzLabel` 并存时未生效的问题
- 修复在 `ReactiveForm` 下未生效的问题

### InputNumber
- 支持自定义 `placeholder` 内容
- 修复 `focus` 样式未被移除的问题

### DatePicker
- 修复贴近边界时的显示问题

### Popconfirm
- 修复 `nzOkType` 未生效的问题

### Message
- 修复 `Modal` 弹出时遮挡 `Message` 的问题

### Modal
- 调整隐藏和显示滚动条的逻辑

### 其他
- 修复部分文档错误
- 修复部分打包问题


### 写给 `0.6.x` 版本用户

#### 我应该升级到最新版本的 `ng-zorro-antd` 吗?
Expand Down
9 changes: 8 additions & 1 deletion docs/getting-started.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ import { HttpClientModule } from '@angular/common/http';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { AppComponent } from './app.component';

/** register language package ** /
import { registerLocaleData } from '@angular/common';
import en from '@angular/common/locales/en';
registerLocaleData(en);
import { NZ_I18N, en_US } from 'ng-zorro-antd';
@NgModule({
declarations: [
AppComponent
Expand All @@ -75,7 +81,8 @@ import { AppComponent } from './app.component';
BrowserAnimationsModule,
NgZorroAntdModule.forRoot()
],
bootstrap: [AppComponent]
bootstrap: [ AppComponent ],
providers : [ { provide: NZ_I18N, useValue: en_US } ]
})
export class AppModule { }
Expand Down
7 changes: 6 additions & 1 deletion docs/getting-started.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ import { HttpClientModule } from '@angular/common/http';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { AppComponent } from './app.component';

/** 注册语言包 ** /
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
registerLocaleData(zh);
@NgModule({
declarations: [
AppComponent
Expand All @@ -78,7 +83,7 @@ import { AppComponent } from './app.component';
BrowserAnimationsModule,
NgZorroAntdModule.forRoot()
],
bootstrap: [AppComponent]
bootstrap: [ AppComponent ]
})
export class AppModule { }
Expand Down
6 changes: 3 additions & 3 deletions docs/i18n.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ export class AppModule { }

```

Besides that,some components of `ng-zorro-antd`'s locale are coming from [Angular i18n](https://angular.io/guide/i18n), that should be provided in the file of `main.ts`.
Besides that,some components of `ng-zorro-antd`'s locale are coming from [Angular i18n](https://angular.io/guide/i18n), that should be provided in the file of `main.ts` or `app.module.ts`.

For example:
```typescript
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
registerLocaleData(zh);
import en from '@angular/common/locales/en';
registerLocaleData(en);
```

## Service
Expand Down
2 changes: 1 addition & 1 deletion docs/i18n.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { NZ_I18N, en_US } from 'ng-zorro-antd';
export class AppModule { }

```
除此之外,`ng-zorro-antd` 的部分组件依赖了 Angular 自身的[国际化支持](https://angular.io/guide/i18n),需要在 `main.ts`文件中 引入相应的 Angular 语言包。
除此之外,`ng-zorro-antd` 的部分组件依赖了 Angular 自身的[国际化支持](https://angular.io/guide/i18n),需要在 `main.ts``app.module.ts` 文件中 引入相应的 Angular 语言包。

例如:
```typescript
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-zorro-antd",
"version": "0.7.0",
"version": "0.7.1",
"license": "MIT",
"description": "An enterprise-class UI components based on Ant Design and Angular",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions site_scripts/_site/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Component, OnInit } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { NavigationEnd, Router } from '@angular/router';
import { en_US, zh_CN, NzI18nService, NzMessageService } from 'ng-zorro-antd';
import { ROUTER_LIST } from './router';
import { environment } from '../environments/environment';
import { ROUTER_LIST } from './router';

@Component({
selector : 'app-root',
Expand All @@ -28,7 +28,6 @@ export class AppComponent implements OnInit {
this.router.navigateByUrl(url.join('/') + '/' + language);
}


toggleHide() {
this.hide = !this.hide;
}
Expand All @@ -53,6 +52,8 @@ export class AppComponent implements OnInit {
}

ngOnInit(): void {
console.log('打开钉钉扫码加入 NG-ZORRO 自助服务群');
console.log('%c', 'padding:100px;background:url(\'https://img.alicdn.com/tfs/TB1XNAjteuSBuNjy1XcXXcYjFXa-200-232.png\') no-repeat;');
this.routerList.components.forEach(group => {
this.componentList = this.componentList.concat([ ...group.children ]);
});
Expand Down Expand Up @@ -132,5 +133,4 @@ export class AppComponent implements OnInit {
});
}
// endregion

}
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,16 @@ import { NgZorroAntdModule } from 'ng-zorro-antd';
import { ${this.nzComponentName} } from './app.component';
import { NZ_I18N, en_US } from 'ng-zorro-antd';
import { registerLocaleData } from '@angular/common';
import en from '@angular/common/locales/en';
registerLocaleData(en);
@NgModule({
imports: [ BrowserModule, FormsModule, HttpClientModule, ReactiveFormsModule, NgZorroAntdModule.forRoot(), BrowserAnimationsModule ],
declarations: [ ${this.nzComponentName} ],
bootstrap: [ ${this.nzComponentName} ]
bootstrap: [ ${this.nzComponentName} ],
providers : [ { provide: NZ_I18N, useValue: en_US } ]
})
export class AppModule { }
`,
Expand Down

0 comments on commit b15d979

Please sign in to comment.