Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(module:icon): support rotate #2891

Merged
merged 3 commits into from
Feb 18, 2019
Merged

Conversation

wzhudev
Copy link
Member

@wzhudev wzhudev commented Feb 14, 2019

close #2888

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@netlify
Copy link

netlify bot commented Feb 14, 2019

Deploy preview for ng-zorro-master ready!

Built with commit c56850d

https://deploy-preview-2891--ng-zorro-master.netlify.com

@codecov
Copy link

codecov bot commented Feb 14, 2019

Codecov Report

Merging #2891 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2891      +/-   ##
==========================================
- Coverage   97.38%   97.36%   -0.02%     
==========================================
  Files         526      526              
  Lines       10964    11033      +69     
  Branches      787      786       -1     
==========================================
+ Hits        10677    10742      +65     
- Misses        184      190       +6     
+ Partials      103      101       -2
Impacted Files Coverage Δ
components/icon/nz-icon.directive.ts 98.85% <100%> (+0.1%) ⬆️
components/menu/nz-menu-divider.directive.ts 60% <0%> (-40%) ⬇️
components/form/nz-form-extra.component.ts 60% <0%> (-40%) ⬇️
components/date-picker/week-picker.component.ts 70% <0%> (-7.78%) ⬇️
components/table/nz-table.component.ts 98.27% <0%> (-0.86%) ⬇️
components/tooltip/nz-tooltip.component.ts 92.06% <0%> (-0.13%) ⬇️
components/menu/nz-submenu.component.ts 98.79% <0%> (-0.06%) ⬇️
components/card/nz-card-grid.directive.ts 100% <0%> (ø) ⬆️
components/card/nz-card-loading.component.ts 100% <0%> (ø) ⬆️
components/radio/nz-radio-button.component.ts 100% <0%> (ø) ⬆️
... and 51 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fd0d91c...c56850d. Read the comment docs.

@@ -29,7 +29,9 @@ We are still adding two-tone icons right now, syncing to [antd](https://ant.desi
| `[spin]` | Rotate icon with animation | `boolean` | `false` |
| `[twoToneColor]` | Only support the two-tone icon. Specific the primary color. | `string (hex color)` | - |
| `[iconfont]` | Type of the icon from iconfont | `string` | - |
| `[nzRotate]` | Rotate degrees (since 7.0.0) | `number` | - |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

en and zh doc are not the same

@@ -8,6 +8,7 @@ import { Component } from '@angular/core';
<i nz-icon [type]="'setting'" [theme]="'fill'"></i>
<i nz-icon [type]="'smile'" [theme]="'outline'"></i>
<i nz-icon [type]="'sync'" [spin]="true"></i>
<i nz-icon [type]="'smile'" [theme]="'outline'" [nzRotate]="180"></i>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be [nzType]?

@wzhudev
Copy link
Member Author

wzhudev commented Feb 16, 2019

@vthinkxie I've updated the API in docs, demos, and tests. Please review.

@vthinkxie vthinkxie merged commit 07f76af into NG-ZORRO:master Feb 18, 2019
@wzhudev wzhudev deleted the icon-ro branch February 18, 2019 03:57
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this pull request Apr 9, 2020
* feat(module:icon): support rotate

close NG-ZORRO#2888

* fix: switch to API with prefix

* docs: raname API in demo
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
* feat(module:icon): support rotate

close NG-ZORRO#2888

* fix: switch to API with prefix

* docs: raname API in demo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: icon rotate API
2 participants