You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 1.x (support Angular 6.x & Ant Design 3.x) will release soon
25
-
- 0.7.x (support Angular 5.x & Ant Design 3.x) current version
26
-
- 0.6.x (support Angular 5.x & Ant Design 2.x) **Not Under Maintenance**
23
+
## Angular Support
24
+
25
+
Now Supports Angular `^6.0.0`.
27
26
27
+
## Design Specification
28
+
29
+
`ng-zorro-antd` synchronizes design specification with [Ant Design](https://ant.design/docs/spec/introduce) on a regular basis, you can check the [log](https://nz-styles-syncer.now.sh/) online.
28
30
29
31
## Features
30
32
@@ -39,20 +41,21 @@ An enterprise-class UI components based on Ant Design and Angular.
39
41
40
42
## Installation
41
43
42
-
### Using npm or yarn
43
-
44
-
**We recommend using npm or yarn to install**,it not only makes development easier,but also allow you to take advantage of the rich ecosystem of Javascript packages and tooling.
44
+
**We recommend using `@angular/cli` to install**,it not only makes development easier,but also allow you to take advantage of the rich ecosystem of angular packages and tooling.
45
45
46
46
```bash
47
-
$ npm install ng-zorro-antd --save
47
+
$ ng new PROJECT_NAME
48
+
$ cd PROJECT_NAME
49
+
$ ng add ng-zorro-antd --i18n=en_US
48
50
```
49
51
50
-
```bash
51
-
$ yarn add ng-zorro-antd
52
-
```
52
+
> More information about `@angular/cli`[here](https://github.com/angular/angular-cli).
53
53
54
-
If you are in a bad network environment,you can try other registries and tools like [cnpm](https://github.com/cnpm/cnpm).
54
+
You can also install `ng-zorro-antd` with npm or yarn
Copy file name to clipboardExpand all lines: components/calendar/doc/index.en-US.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ When data is in the form of dates, such as schedules, timetables, prices calenda
13
13
14
14
## API
15
15
16
-
**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`.
16
+
**Note:** Some of Calendar's locale are coming from [Angular i18n](https://angular.io/guide/i18n), that should be provided in the file of `app.module.ts`.
Copy file name to clipboardExpand all lines: components/date-picker/doc/index.en-US.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ By clicking the input box, you can select a date from a popup calendar.
12
12
13
13
## API
14
14
15
-
**Note:** Some of nz-date-picker's locale are coming from [Angular i18n](https://angular.io/guide/i18n), that should be provided in the file of `main.ts`.
15
+
**Note:** Some of nz-date-picker's locale are coming from [Angular i18n](https://angular.io/guide/i18n), that should be provided in the file of `app.module.ts`.
16
16
17
17
For example:
18
18
```typescript
@@ -44,7 +44,6 @@ The following APIs are shared by nz-date-picker, nz-month-picker, nz-range-picke
44
44
|`[nzDisabledDate]`| specify the date that cannot be selected | (current: Date) => boolean | - |
|`[nzPlaceHolder]`| placeholder of date input | string / string[]| - |
48
47
|`[nzPopupStyle]`| to customize the style of the popup calendar | object | {} |
49
48
|`[nzDropdownClassName]`| to customize the className of the popup calendar | string | - |
50
49
|`[nzSize]`| determine the size of the input box, the height of `large` and `small`, are 40px and 24px respectively, while default size is 32px | string | - |
@@ -61,8 +60,9 @@ The following APIs are shared by nz-date-picker, nz-month-picker, nz-range-picke
61
60
|`[nzRenderExtraFooter]`| render extra footer in panel | TemplateRef / string or () => TemplateRef / string | - |
62
61
|`[nzShowTime]`| to provide an additional time selection | object / boolean |[TimePicker Options](/components/time-picker/en#api)|
63
62
|`[nzShowToday]`| whether to show "Today" button | boolean | true |
63
+
|`[nzPlaceHolder]`| placeholder of date input | string | - |
64
64
|`(nzOnOk)`| callback when click ok button |`EventEmitter<Date>`| - |
65
-
|`[ngModelChange]`| Date change callback |`EventEmitter<Date>`| - |
65
+
|`(ngModelChange)`| Date change callback |`EventEmitter<Date>`| - |
66
66
67
67
### nz-month-picker
68
68
@@ -71,6 +71,7 @@ The following APIs are shared by nz-date-picker, nz-month-picker, nz-range-picke
71
71
|`[ngModel]`| Date | Date | - |
72
72
|`[nzFormat]`| to set the date format, refer to [DatePipe](https://angular.io/api/common/DatePipe)| string | "yyyy-MM" |
73
73
|`[nzRenderExtraFooter]`| render extra footer in panel | TemplateRef / string or () => TemplateRef / string | - |
74
+
|`[nzPlaceHolder]`| placeholder of date input | string | - |
74
75
|`(ngModelChange)`| Date change callback |`EventEmitter<Date>`| - |
75
76
76
77
### nz-week-picker
@@ -79,6 +80,7 @@ The following APIs are shared by nz-date-picker, nz-month-picker, nz-range-picke
79
80
| -------- | ----------- | ---- | ------- |
80
81
|`[ngModel]`| Date | Date | - |
81
82
|`[nzFormat]`| to set the date format, refer to [DatePipe](https://angular.io/api/common/DatePipe)| string | "yyyy-ww" |
83
+
|`[nzPlaceHolder]`| placeholder of date input | string | - |
82
84
|`(ngModelChange)`| Date change callback |`EventEmitter<Date>`| - |
83
85
84
86
### nz-range-picker
@@ -91,6 +93,7 @@ The following APIs are shared by nz-date-picker, nz-month-picker, nz-range-picke
0 commit comments