@@ -18,25 +18,25 @@ import { NzIconModule } from 'ng-zorro-antd/icon';
1818
1919## API
2020
21- ### [ nz-icon]
21+ ### [ nz-icon] : standalone
2222
23- | Property | Description | Type | Default | Global Config |
24- | --- | --- | --- | --- | --- |
25- | ` [nzType] ` | Type of the ant design icon | ` string ` | - |
26- | ` [nzTheme] ` | Type of the ant design icon | ` 'fill'\|'outline'\|'twotone' ` | ` 'outline' ` | ✅ |
27- | ` [nzSpin] ` | Rotate icon with animation | ` boolean ` | ` false ` |
28- | ` [nzTwotoneColor] ` | Only support the two-tone icon. Specific the primary color. | ` string (hex color) ` | - | ✅ |
29- | ` [nzIconfont] ` | Type of the icon from iconfont | ` string ` | - |
30- | ` [nzRotate] ` | Rotate degrees | ` number ` | - |
23+ | Property | Description | Type | Default | Global Config |
24+ | ------------------ | ----------------------------------------------------------- | ------------------------------ | ----------- | ---------- --- |
25+ | ` [nzType] ` | Type of the ant design icon | ` string ` | - |
26+ | ` [nzTheme] ` | Type of the ant design icon | ` 'fill'\|'outline'\|'twotone' ` | ` 'outline' ` | ✅ |
27+ | ` [nzSpin] ` | Rotate icon with animation | ` boolean ` | ` false ` |
28+ | ` [nzTwotoneColor] ` | Only support the two-tone icon. Specific the primary color. | ` string (hex color) ` | - | ✅ |
29+ | ` [nzIconfont] ` | Type of the icon from iconfont | ` string ` | - |
30+ | ` [nzRotate] ` | Rotate degrees | ` number ` | - |
3131
3232### NzIconService
3333
34- | Methods/Properties | Description | Parameters |
35- | --- | --- | --- |
36- | ` addIcon() ` | To import icons statically | ` IconDefinition ` |
37- | ` addIconLiteral() ` | To statically import custom icons | ` string ` , ` string (SVG) ` |
38- | ` fetchFromIconfont() ` | To get icon assets from fonticon | ` NzIconfontOption ` |
39- | ` changeAssetsSource() ` | To change the location of your icon assets, so that you can deploy these icons wherever you want | ` string ` |
34+ | Methods/Properties | Description | Parameters |
35+ | ---------------------- | ------------------------------------------------------------------------------------------------ | --------------------- --- |
36+ | ` addIcon() ` | To import icons statically | ` IconDefinition ` |
37+ | ` addIconLiteral() ` | To statically import custom icons | ` string ` , ` string (SVG) ` |
38+ | ` fetchFromIconfont() ` | To get icon assets from fonticon | ` NzIconfontOption ` |
39+ | ` changeAssetsSource() ` | To change the location of your icon assets, so that you can deploy these icons wherever you want | ` string ` |
4040
4141### SVG icons
4242
@@ -127,7 +127,7 @@ Sometimes, you want to import icons in lazy modules to avoid increasing the size
127127
128128``` ts
129129@NgModule ({
130- imports: [CommonModule , NzIconModule .forChild ([QuestionOutline ])],
130+ imports: [CommonModule , NzIconModule .forChild ([QuestionOutline ])]
131131})
132132class ChildModule {}
133133```
@@ -158,9 +158,9 @@ It create a component that uses SVG sprites in essence.
158158
159159The following option are available:
160160
161- | Property | Description | Type | Default |
162- | --- | --- | --- | --- |
163- | ` scriptUrl ` | The URL generated by iconfont.cn project. | ` string ` | - |
161+ | Property | Description | Type | Default |
162+ | ----------- | ----------------------------------------- | -------- | ---- --- |
163+ | ` scriptUrl ` | The URL generated by iconfont.cn project. | ` string ` | - |
164164
165165The property scriptUrl should be set to import the svg sprite symbols.
166166
0 commit comments